diff options
author | Erik Verbruggen <erik.verbruggen@nokia.com> | 2012-02-02 11:40:01 +0100 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@nokia.com> | 2012-02-02 12:22:20 +0100 |
commit | dd4299073e55a21f593817316f7e013e02f62b4e (patch) | |
tree | 26ffa0c085ba81f16c8fa6071f9873250203902b /src/libs/3rdparty/cplusplus/ASTMatch0.cpp | |
parent | a2f9ee870e6b17d8526f365a56bc7621abda15dc (diff) |
C++11: handle noexcept specifications.
Change-Id: I7da3affea2758b2e01124105e2521e1f2c5f6678
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
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; |