forked from qt-creator/qt-creator
Get rid off translationUnit
This commit is contained in:
@@ -33,15 +33,12 @@
|
||||
|
||||
using namespace CPlusPlus;
|
||||
|
||||
ASTMatcher::ASTMatcher(TranslationUnit *translationUnit) : _translationUnit(translationUnit)
|
||||
ASTMatcher::ASTMatcher()
|
||||
{ }
|
||||
|
||||
ASTMatcher::~ASTMatcher()
|
||||
{ }
|
||||
|
||||
TranslationUnit *ASTMatcher::translationUnit() const
|
||||
{ return _translationUnit; }
|
||||
|
||||
bool ASTMatcher::match(SimpleSpecifierAST *node, SimpleSpecifierAST *pattern)
|
||||
{
|
||||
(void) node;
|
||||
|
||||
@@ -36,11 +36,9 @@ namespace CPlusPlus {
|
||||
class CPLUSPLUS_EXPORT ASTMatcher
|
||||
{
|
||||
public:
|
||||
ASTMatcher(TranslationUnit *translationUnit);
|
||||
ASTMatcher();
|
||||
virtual ~ASTMatcher();
|
||||
|
||||
TranslationUnit *translationUnit() const;
|
||||
|
||||
virtual bool match(AccessDeclarationAST *node, AccessDeclarationAST *pattern);
|
||||
virtual bool match(ArrayAccessAST *node, ArrayAccessAST *pattern);
|
||||
virtual bool match(ArrayDeclaratorAST *node, ArrayDeclaratorAST *pattern);
|
||||
@@ -163,9 +161,6 @@ public:
|
||||
virtual bool match(ObjCDynamicPropertiesDeclarationAST *node, ObjCDynamicPropertiesDeclarationAST *pattern);
|
||||
virtual bool match(ObjCFastEnumerationAST *node, ObjCFastEnumerationAST *pattern);
|
||||
virtual bool match(ObjCSynchronizedStatementAST *node, ObjCSynchronizedStatementAST *pattern);
|
||||
|
||||
private:
|
||||
TranslationUnit *_translationUnit;
|
||||
};
|
||||
|
||||
} // end of namespace CPlusPlus
|
||||
|
||||
Reference in New Issue
Block a user