forked from qt-creator/qt-creator
Removed the MacroResolver
Unfortunately, the MacroResolver does not scale and we get pretty bad performances when parsing big projects.
This commit is contained in:
@@ -244,14 +244,6 @@ void Parser::match(int kind, unsigned *token)
|
||||
}
|
||||
}
|
||||
|
||||
bool Parser::isMacro(unsigned tokenIndex) const
|
||||
{
|
||||
if (MacroResolver *r = _control->macroResolver())
|
||||
return r->isMacro(_translationUnit, tokenIndex);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool Parser::parseClassOrNamespaceName(NameAST *&node)
|
||||
{
|
||||
if (LA() == T_IDENTIFIER) {
|
||||
@@ -2561,10 +2553,6 @@ bool Parser::parseBuiltinTypeSpecifier(SpecifierAST *&node)
|
||||
bool Parser::parseSimpleDeclaration(DeclarationAST *&node,
|
||||
bool acceptStructDeclarator)
|
||||
{
|
||||
if (LA() == T_IDENTIFIER && isMacro(cursor())) {
|
||||
// printf("***** found macro reference `%s'\n", tok().identifier->chars());
|
||||
}
|
||||
|
||||
unsigned qt_invokable_token = 0;
|
||||
if (acceptStructDeclarator && (LA() == T_Q_SIGNAL || LA() == T_Q_SLOT))
|
||||
qt_invokable_token = consumeToken();
|
||||
|
Reference in New Issue
Block a user