summaryrefslogtreecommitdiff
path: root/src/qdoc/clangcodeparser.cpp
diff options
context:
space:
mode:
authorMartin Smith <martin.smith@qt.io>2018-01-29 14:56:57 +0100
committerMartin Smith <martin.smith@qt.io>2018-01-31 08:05:05 +0000
commitde0db5ed1e7b5d08c2fe018d3ee2aa20d513d5c7 (patch)
treea49c23220f53941805c3f01fadbe80bfd20031d7 /src/qdoc/clangcodeparser.cpp
parentcd61091fc2a43c219987769b72797b6b4fa0d843 (diff)
downloadqttools-de0db5ed1e7b5d08c2fe018d3ee2aa20d513d5c7.tar.gz
qdoc: Delay ignoring of qt_xxx names until output
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ƶ <topi.reinio@qt.io>
Diffstat (limited to 'src/qdoc/clangcodeparser.cpp')
-rw-r--r--src/qdoc/clangcodeparser.cpp2
1 files changed, 0 insertions, 2 deletions
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;