From 18f1a903781614c5a64c1d52bd1d4d36f2371491 Mon Sep 17 00:00:00 2001 From: Karsten Heimrich Date: Mon, 8 Feb 2016 23:27:51 +0100 Subject: qdoc: Implement support for C++11 default member initialization. Task-number: QTBUG-49732 Change-Id: Ic30a748359e956affbfddc2162c0f29af1458c31 Reviewed-by: Martin Smith --- src/qdoc/cppcodeparser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/qdoc/cppcodeparser.cpp') 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) { -- cgit v1.2.1