Introduced MacroResolver.

This commit is contained in:
Roberto Raggi
2009-09-30 16:25:20 +02:00
parent 913b1bf02f
commit e50d60ac97
6 changed files with 42 additions and 1 deletions

View File

@@ -244,6 +244,14 @@ 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) {