From 527a9bd526d854d3f43b633a94af6dea642297db Mon Sep 17 00:00:00 2001 From: Roberto Raggi Date: Mon, 30 Nov 2009 16:30:21 +0100 Subject: Inital support for Q_D/Q_Q declarations. --- src/shared/cplusplus/ASTMatch0.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/shared/cplusplus/ASTMatch0.cpp') diff --git a/src/shared/cplusplus/ASTMatch0.cpp b/src/shared/cplusplus/ASTMatch0.cpp index 7c4ff19ae6..e16c078808 100644 --- a/src/shared/cplusplus/ASTMatch0.cpp +++ b/src/shared/cplusplus/ASTMatch0.cpp @@ -128,6 +128,14 @@ bool QtMethodAST::match0(AST *pattern, ASTMatcher *matcher) return false; } +bool QtMemberDeclarationAST::match0(AST *pattern, ASTMatcher *matcher) +{ + if (QtMemberDeclarationAST *_other = pattern->asQtMemberDeclaration()) + return matcher->match(this, _other); + + return false; +} + bool BinaryExpressionAST::match0(AST *pattern, ASTMatcher *matcher) { if (BinaryExpressionAST *_other = pattern->asBinaryExpression()) -- cgit v1.2.1