From 4b3388172904e629fc6f6f1e3a6323e8fe12b97f Mon Sep 17 00:00:00 2001 From: Wolfgang Beck Date: Tue, 19 Jan 2010 15:26:08 +1000 Subject: Merge ichecker branch changes into the mainline. New project can be found under src/tools/ICheck --- src/shared/cplusplus/ASTMatch0.cpp | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) (limited to 'src/shared/cplusplus/ASTMatch0.cpp') 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()) -- cgit v1.2.1