diff options
author | Wolfgang Beck <wolfgang.beck@nokia.com> | 2010-01-19 15:26:08 +1000 |
---|---|---|
committer | Wolfgang Beck <wolfgang.beck@nokia.com> | 2010-01-19 15:26:08 +1000 |
commit | 4b3388172904e629fc6f6f1e3a6323e8fe12b97f (patch) | |
tree | 098dca6bbe72201050a4d8ec94c008903eb67ed3 /src/shared/cplusplus/ASTMatch0.cpp | |
parent | 29b7594b38f3545bb6a5d5ff08542c0e71a30197 (diff) | |
download | qt-creator-4b3388172904e629fc6f6f1e3a6323e8fe12b97f.tar.gz |
Merge ichecker branch changes into the mainline. New project can be found under src/tools/ICheck
Diffstat (limited to 'src/shared/cplusplus/ASTMatch0.cpp')
-rw-r--r-- | src/shared/cplusplus/ASTMatch0.cpp | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/shared/cplusplus/ASTMatch0.cpp b/src/shared/cplusplus/ASTMatch0.cpp index e16c078808..1d329a856a 100644 --- a/src/shared/cplusplus/ASTMatch0.cpp +++ b/src/shared/cplusplus/ASTMatch0.cpp @@ -96,6 +96,40 @@ bool AccessDeclarationAST::match0(AST *pattern, ASTMatcher *matcher) return false; } +#ifdef ICHECK_BUILD +bool QPropertyDeclarationAST::match0(AST *pattern, ASTMatcher *matcher) +{ + if (QPropertyDeclarationAST *_other = pattern->asQPropertyDeclarationAST()) + return matcher->match(this, _other); + + return false; +} + +bool QEnumDeclarationAST::match0(AST *pattern, ASTMatcher *matcher) +{ + if (QEnumDeclarationAST *_other = pattern->asQEnumDeclarationAST()) + return matcher->match(this, _other); + + return false; +} + +bool QFlagsDeclarationAST::match0(AST *pattern, ASTMatcher *matcher) +{ + if (QFlagsDeclarationAST *_other = pattern->asQFlagsDeclarationAST()) + return matcher->match(this, _other); + + return false; +} + +bool QDeclareFlagsDeclarationAST::match0(AST *pattern, ASTMatcher *matcher) +{ + if (QDeclareFlagsDeclarationAST *_other = pattern->asQDeclareFlagsDeclarationAST()) + return matcher->match(this, _other); + + return false; +} +#endif + bool AsmDefinitionAST::match0(AST *pattern, ASTMatcher *matcher) { if (AsmDefinitionAST *_other = pattern->asAsmDefinition()) |