diff options
author | Karsten Heimrich <karsten.heimrich@theqtcompany.com> | 2016-02-08 16:39:18 +0100 |
---|---|---|
committer | Karsten Heimrich <karsten.heimrich@theqtcompany.com> | 2016-02-08 20:09:14 +0000 |
commit | ff6f4f09361e50211b431979f4a9271812c57f0b (patch) | |
tree | d395cce9047295ac20d862d0ecb82a5ea26acfb4 /src/qdoc/cppcodemarker.cpp | |
parent | b29665d0c3531a6b7acdc02fae2278eb139560ef (diff) | |
download | qttools-ff6f4f09361e50211b431979f4a9271812c57f0b.tar.gz |
qdoc: Implement C++11 'final' specifier support.
Change-Id: I9248c0481c44f9ebbbe9df86cad182689288f810
Reviewed-by: Martin Smith <martin.smith@theqtcompany.com>
Diffstat (limited to 'src/qdoc/cppcodemarker.cpp')
-rw-r--r-- | src/qdoc/cppcodemarker.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/qdoc/cppcodemarker.cpp b/src/qdoc/cppcodemarker.cpp index ff3579b08..0f413c7f5 100644 --- a/src/qdoc/cppcodemarker.cpp +++ b/src/qdoc/cppcodemarker.cpp @@ -179,6 +179,8 @@ QString CppCodeMarker::markedUpSynopsis(const Node *node, if (style == Summary || style == Accessors) { if (func->virtualness() != FunctionNode::NonVirtual) synopsis.prepend("virtual "); + if (func->isFinal()) + synopsis.append(" final"); if (func->virtualness() == FunctionNode::PureVirtual) synopsis.append(" = 0"); else if (func->isDeleted()) @@ -199,6 +201,8 @@ QString CppCodeMarker::markedUpSynopsis(const Node *node, } else if (func->isDefaulted()) { bracketed += "default"; } else if (func->virtualness() != FunctionNode::NonVirtual) { + if (func->isFinal()) + bracketed += "final"; if (func->virtualness() == FunctionNode::PureVirtual) bracketed += "pure"; bracketed += "virtual"; |