From 155cb122698225c7ec88b395c99f792536b64240 Mon Sep 17 00:00:00 2001 From: Martin Smith Date: Wed, 7 Feb 2018 11:28:01 +0100 Subject: qdoc: Ensure that override attribute is saved in index files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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ƶ --- src/qdoc/clangcodeparser.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/qdoc/clangcodeparser.cpp') 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. -- cgit v1.2.1