From de0db5ed1e7b5d08c2fe018d3ee2aa20d513d5c7 Mon Sep 17 00:00:00 2001 From: Martin Smith Date: Mon, 29 Jan 2018 14:56:57 +0100 Subject: qdoc: Delay ignoring of qt_xxx names until output MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The ignoreSymbol() function in class ClangVisitor was told to return true for every name that starts with "qt_". This was too aggressive, so the test is now done at output time. If a function name that starts with "qt_" has no documentation, qdoc does not warn with "No documentation for qt_..." because almost all such names are not to be documented. But they can be documented, so that's why the test is performed at the last moment. Change-Id: I2f322bed32dcae43336ead0735490560190d8095 Reviewed-by: Topi Reiniƶ --- src/qdoc/clangcodeparser.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/qdoc/clangcodeparser.cpp') diff --git a/src/qdoc/clangcodeparser.cpp b/src/qdoc/clangcodeparser.cpp index ea4ffb18e..9cc3a7466 100644 --- a/src/qdoc/clangcodeparser.cpp +++ b/src/qdoc/clangcodeparser.cpp @@ -414,8 +414,6 @@ private: Returns true if the symbol should be ignored for the documentation. */ bool ignoredSymbol(const QString &symbolName) { - if (symbolName.startsWith(QLatin1String("qt_"))) - return true; if (symbolName == QLatin1String("QPrivateSignal")) return true; return false; -- cgit v1.2.1