From b7ccfd3c107e2edc3823cd79cf67d8e4e34f668b Mon Sep 17 00:00:00 2001 From: Rainer Keller Date: Wed, 11 Jan 2017 13:39:15 +0100 Subject: qdoc: Implement C++11 'override' specifier support Change-Id: Iad837dbdaf492eff77ced4d93dc05095e1d89400 Reviewed-by: Simon Hausmann Reviewed-by: Michael Winkelmann Reviewed-by: Karsten Heimrich --- src/qdoc/cppcodemarker.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/qdoc/cppcodemarker.cpp') diff --git a/src/qdoc/cppcodemarker.cpp b/src/qdoc/cppcodemarker.cpp index bdc369612..8eac38629 100644 --- a/src/qdoc/cppcodemarker.cpp +++ b/src/qdoc/cppcodemarker.cpp @@ -178,6 +178,8 @@ QString CppCodeMarker::markedUpSynopsis(const Node *node, synopsis.prepend("virtual "); if (func->isFinal()) synopsis.append(" final"); + if (func->isOverride()) + synopsis.append(" override"); if (func->isPureVirtual()) synopsis.append(" = 0"); else if (func->isDeleted()) @@ -200,6 +202,8 @@ QString CppCodeMarker::markedUpSynopsis(const Node *node, } else if (!func->isNonvirtual()) { if (func->isFinal()) bracketed += "final"; + if (func->isOverride()) + bracketed += "override"; if (func->isPureVirtual()) bracketed += "pure"; bracketed += "virtual"; -- cgit v1.2.1