forked from qt-creator/qt-creator
		
	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:
		@@ -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);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user