Removed #ifdefs so all AST nodes are always there.

Also removed the (conditional) invoke_token from DeclarationAST and use
the qt_invokable_token to store the Q_INVOKABLE, and fixed the ASTMatch
code generation.
This commit is contained in:
Erik Verbruggen
2010-02-04 12:03:34 +01:00
parent 1b5168c19e
commit ae0ee18a77
13 changed files with 87 additions and 68 deletions

View File

@@ -465,19 +465,14 @@ public:
<< generatedHeader
<< "#include \"AST.h\"" << endl
<< "#include \"ASTMatcher.h\"" << endl
<< "#include \"TranslationUnit.h\"" << endl
<< endl
<< "using namespace CPlusPlus;" << endl
<< endl
<< "ASTMatcher::ASTMatcher(TranslationUnit *translationUnit)"
<< " : _translationUnit(translationUnit)" << endl
<< "ASTMatcher::ASTMatcher()" << endl
<< "{ }" << endl
<< endl
<< "ASTMatcher::~ASTMatcher()" << endl
<< "{ }" << endl
<< endl
<< "TranslationUnit *ASTMatcher::translationUnit() const" << endl
<< "{ return _translationUnit; }" << endl
<< endl;
accept(ast);