diff options
author | Erik Verbruggen <erik.verbruggen@nokia.com> | 2012-02-02 13:39:24 +0100 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@nokia.com> | 2012-02-02 13:49:22 +0100 |
commit | 1d3dc3015343a9ec55d58115390f5dcf9ba92297 (patch) | |
tree | d9c752f44f4374ae445267e25f5e6433d99c9327 /src/libs/3rdparty/cplusplus/ASTMatch0.cpp | |
parent | 3afd3a37d30f6ca46054812a3e142eb9d683cccc (diff) |
C++11: add support for static_assert.
Change-Id: I82d8d60acaa9265fd25e0a3734855b19bdef9c06
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 | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libs/3rdparty/cplusplus/ASTMatch0.cpp b/src/libs/3rdparty/cplusplus/ASTMatch0.cpp index 9694be4b4d..127993ea2a 100644 --- a/src/libs/3rdparty/cplusplus/ASTMatch0.cpp +++ b/src/libs/3rdparty/cplusplus/ASTMatch0.cpp @@ -800,6 +800,14 @@ bool NestedExpressionAST::match0(AST *pattern, ASTMatcher *matcher) return false; } +bool StaticAssertDeclarationAST::match0(AST *pattern, ASTMatcher *matcher) +{ + if (StaticAssertDeclarationAST *_other = pattern->asStaticAssertDeclaration()) + return matcher->match(this, _other); + + return false; +} + bool StringLiteralAST::match0(AST *pattern, ASTMatcher *matcher) { if (StringLiteralAST *_other = pattern->asStringLiteral()) |