diff options
Diffstat (limited to 'src/libs/3rdparty/cplusplus/ASTMatch0.cpp')
-rw-r--r-- | src/libs/3rdparty/cplusplus/ASTMatch0.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/libs/3rdparty/cplusplus/ASTMatch0.cpp b/src/libs/3rdparty/cplusplus/ASTMatch0.cpp index 67d29dee5a..9694be4b4d 100644 --- a/src/libs/3rdparty/cplusplus/ASTMatch0.cpp +++ b/src/libs/3rdparty/cplusplus/ASTMatch0.cpp @@ -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; |