summaryrefslogtreecommitdiff
path: root/src/qdoc/cppcodeparser.cpp
diff options
context:
space:
mode:
authorKarsten Heimrich <karsten.heimrich@theqtcompany.com>2016-02-08 23:27:51 +0100
committerKarsten Heimrich <karsten.heimrich@theqtcompany.com>2016-02-09 07:00:06 +0000
commit18f1a903781614c5a64c1d52bd1d4d36f2371491 (patch)
tree6af78b8bcc51d3f6029536ef01634a34250016b7 /src/qdoc/cppcodeparser.cpp
parentff6f4f09361e50211b431979f4a9271812c57f0b (diff)
downloadqttools-18f1a903781614c5a64c1d52bd1d4d36f2371491.tar.gz
qdoc: Implement support for C++11 default member initialization.
Task-number: QTBUG-49732 Change-Id: Ic30a748359e956affbfddc2162c0f29af1458c31 Reviewed-by: Martin Smith <martin.smith@theqtcompany.com>
Diffstat (limited to 'src/qdoc/cppcodeparser.cpp')
-rw-r--r--src/qdoc/cppcodeparser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qdoc/cppcodeparser.cpp b/src/qdoc/cppcodeparser.cpp
index 8bd8f1461..588417644 100644
--- a/src/qdoc/cppcodeparser.cpp
+++ b/src/qdoc/cppcodeparser.cpp
@@ -1512,7 +1512,7 @@ bool CppCodeParser::matchFunctionDecl(Aggregate *parent,
}
if (parent && (tok == Tok_Semicolon ||
tok == Tok_LeftBracket ||
- tok == Tok_Colon)
+ tok == Tok_Colon || tok == Tok_Equal)
&& access != Node::Private) {
if (tok == Tok_LeftBracket) {
returnType.appendHotspot();
@@ -1528,7 +1528,7 @@ bool CppCodeParser::matchFunctionDecl(Aggregate *parent,
return false;
}
}
- else if (tok == Tok_Colon) {
+ else if (tok == Tok_Colon || tok == Tok_Equal) {
returnType.appendHotspot();
while (tok != Tok_Semicolon && tok != Tok_Eoi) {