forked from qt-creator/qt-creator
C++11: More (expression-list) or brace-init-list.
This time in the 'new' expression. Changed it to make
new C(1, abc...) and new C{1, abc}
work.
Change-Id: I7232798fd083b653ee04ef9ede386d6536133e16
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
8
src/libs/3rdparty/cplusplus/ASTMatch0.cpp
vendored
8
src/libs/3rdparty/cplusplus/ASTMatch0.cpp
vendored
@@ -624,14 +624,6 @@ bool NewExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
|
||||
return false;
|
||||
}
|
||||
|
||||
bool NewInitializerAST::match0(AST *pattern, ASTMatcher *matcher)
|
||||
{
|
||||
if (NewInitializerAST *_other = pattern->asNewInitializer())
|
||||
return matcher->match(this, _other);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool NewTypeIdAST::match0(AST *pattern, ASTMatcher *matcher)
|
||||
{
|
||||
if (NewTypeIdAST *_other = pattern->asNewTypeId())
|
||||
|
||||
Reference in New Issue
Block a user