diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2010-08-02 12:04:59 +0200 |
---|---|---|
committer | Roberto Raggi <roberto.raggi@nokia.com> | 2010-08-02 12:52:12 +0200 |
commit | 6324bf4460132225f682a59bc59794610c25924e (patch) | |
tree | 669c452d5867f3caf71a1a53d7eb9fb67a6785ff /src/shared/cplusplus/ASTMatch0.cpp | |
parent | 6226cfe1fcbe33175e62950df656ff144e5276c0 (diff) | |
download | qt-creator-6324bf4460132225f682a59bc59794610c25924e.tar.gz |
Introduced IdExpressionAST.
Diffstat (limited to 'src/shared/cplusplus/ASTMatch0.cpp')
-rw-r--r-- | src/shared/cplusplus/ASTMatch0.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/shared/cplusplus/ASTMatch0.cpp b/src/shared/cplusplus/ASTMatch0.cpp index 1ab0b0c077..d955b69971 100644 --- a/src/shared/cplusplus/ASTMatch0.cpp +++ b/src/shared/cplusplus/ASTMatch0.cpp @@ -201,6 +201,14 @@ bool BaseSpecifierAST::match0(AST *pattern, ASTMatcher *matcher) return false; } +bool IdExpressionAST::match0(AST *pattern, ASTMatcher *matcher) +{ + if (IdExpressionAST *_other = pattern->asIdExpression()) + return matcher->match(this, _other); + + return false; +} + bool CompoundExpressionAST::match0(AST *pattern, ASTMatcher *matcher) { if (CompoundExpressionAST *_other = pattern->asCompoundExpression()) |