forked from qt-creator/qt-creator
C++11: handle noexcept specifications.
Change-Id: I7da3affea2758b2e01124105e2521e1f2c5f6678 Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
This commit is contained in:
12
src/libs/3rdparty/cplusplus/ASTMatch0.cpp
vendored
12
src/libs/3rdparty/cplusplus/ASTMatch0.cpp
vendored
@@ -400,9 +400,17 @@ bool ExceptionDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
|
||||
return false;
|
||||
}
|
||||
|
||||
bool ExceptionSpecificationAST::match0(AST *pattern, ASTMatcher *matcher)
|
||||
bool DynamicExceptionSpecificationAST::match0(AST *pattern, ASTMatcher *matcher)
|
||||
{
|
||||
if (ExceptionSpecificationAST *_other = pattern->asExceptionSpecification())
|
||||
if (DynamicExceptionSpecificationAST *_other = pattern->asDynamicExceptionSpecification())
|
||||
return matcher->match(this, _other);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool NoExceptSpecificationAST::match0(AST *pattern, ASTMatcher *matcher)
|
||||
{
|
||||
if (NoExceptSpecificationAST *_other = pattern->asNoExceptSpecification())
|
||||
return matcher->match(this, _other);
|
||||
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user