diff options
author | Erik Verbruggen <erik.verbruggen@nokia.com> | 2012-02-10 14:41:58 +0100 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@nokia.com> | 2012-02-10 16:29:04 +0100 |
commit | 3f5dc36a5361c9c7e515e6213bf5c6e64e4dd7bd (patch) | |
tree | a53e577c56cdfda1ee4151084e8b82ec3540d778 /src/libs/3rdparty/cplusplus/ASTMatch0.cpp | |
parent | 07d335b21525be20d36cb9a1fe017497184016e0 (diff) |
C++11: first set of changes for decltype.
Change-Id: I49d6ff7eb1805cd07bdfcb27bb37d4c6cadc9115
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 127993ea2a..e94a5eec60 100644 --- a/src/libs/3rdparty/cplusplus/ASTMatch0.cpp +++ b/src/libs/3rdparty/cplusplus/ASTMatch0.cpp @@ -80,6 +80,14 @@ bool TypeofSpecifierAST::match0(AST *pattern, ASTMatcher *matcher) return false; } +bool DecltypeSpecifierAST::match0(AST *pattern, ASTMatcher *matcher) +{ + if (DecltypeSpecifierAST *_other = pattern->asDecltypeSpecifier()) + return matcher->match(this, _other); + + return false; +} + bool DeclaratorAST::match0(AST *pattern, ASTMatcher *matcher) { if (DeclaratorAST *_other = pattern->asDeclarator()) |