summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Smith <martin.smith@qt.io>2018-02-07 11:28:01 +0100
committerMartin Smith <martin.smith@qt.io>2018-02-08 17:22:48 +0000
commit155cb122698225c7ec88b395c99f792536b64240 (patch)
tree64bfbf55d6b38c201e14867abf10410752860120
parent5b35868d810751698070f50d894ec1f0cc969a38 (diff)
downloadqttools-155cb122698225c7ec88b395c99f792536b64240.tar.gz
qdoc: Ensure that override attribute is saved in index files
The ClangCodeParser was not setting the override flag in function nodes for member functions declared with the override attribute. This update fixes that bug. Change-Id: Ib67c106982f83164a862b2181c77798733fc3864 Reviewed-by: Topi Reiniƶ <topi.reinio@qt.io>
-rw-r--r--src/qdoc/clangcodeparser.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qdoc/clangcodeparser.cpp b/src/qdoc/clangcodeparser.cpp
index 9c8a5c2b5..77bd4454b 100644
--- a/src/qdoc/clangcodeparser.cpp
+++ b/src/qdoc/clangcodeparser.cpp
@@ -805,6 +805,8 @@ void ClangVisitor::readParameterNamesAndAttributes(FunctionNode* fn, CXCursor cu
}
if (annotation == QLatin1String("qt_invokable"))
fn->setInvokable(true);
+ } else if (kind == CXCursor_CXXOverrideAttr) {
+ fn->setOverride(true);
} else if (kind == CXCursor_ParmDecl) {
if (i >= pvect.count())
return CXChildVisit_Break; // Attributes comes before parameters so we can break.