Lines Matching refs:Identifier
62 // Set up the identifier as having associated macro history.
77 // Setup the identifier as having associated macro history.
118 // The identifier now has defined macros (that may or may not be visible).
276 /// RegisterBuiltinMacro - Register the specified identifier in the identifier
279 // Get the identifier.
291 /// identifier table.
347 // If the token isn't an identifier, it's always literally expanded.
350 // If the information about this identifier is out of date, update it from
355 // If the identifier is a macro, and if that macro is enabled, it may be
368 // as long as the identifier is not a macro argument.
417 /// HandleMacroExpandedIdentifier - If an identifier token is read that is to be
418 /// expanded as a macro, handle it and return the next token as 'Identifier'.
419 bool Preprocessor::HandleMacroExpandedIdentifier(Token &Identifier,
431 Callbacks->MacroExpands(Identifier, M, Identifier.getLocation(),
433 ExpandBuiltinMacro(Identifier);
443 // macro, this is the identifier. For a function-like macro, this is the ')'.
444 SourceLocation ExpansionEnd = Identifier.getLocation();
452 Args = ReadFunctionLikeMacroArgs(Identifier, MI, ExpansionEnd);
469 SourceLocation ExpandLoc = Identifier.getLocation();
479 MacroExpandsInfo(Identifier, M, ExpansionRange));
481 Callbacks->MacroExpands(Identifier, M, ExpansionRange, Args);
496 Diag(Identifier, diag::warn_pp_ambiguous_macro)
497 << Identifier.getIdentifierInfo();
499 << Identifier.getIdentifierInfo();
503 << Identifier.getIdentifierInfo();
517 Identifier.setFlag(Token::LeadingEmptyMacro);
518 PropagateLineStartLeadingSpaceInfo(Identifier);
522 isTrivialSingleTokenExpansion(MI, Identifier.getIdentifierInfo(),
532 // identifier to the expanded token.
533 bool isAtStartOfLine = Identifier.isAtStartOfLine();
534 bool hasLeadingSpace = Identifier.hasLeadingSpace();
537 Identifier = MI->getReplacementToken(0);
540 Identifier.setFlagValue(Token::StartOfLine , isAtStartOfLine);
541 Identifier.setFlagValue(Token::LeadingSpace, hasLeadingSpace);
546 SourceMgr.createExpansionLoc(Identifier.getLocation(), ExpandLoc,
547 ExpansionEnd,Identifier.getLength());
548 Identifier.setLocation(Loc);
552 if (IdentifierInfo *NewII = Identifier.getIdentifierInfo()) {
555 Identifier.setFlag(Token::DisableExpand);
559 Diag(Identifier, diag::pp_disabled_macro_expansion);
563 // Since this is not an identifier token, it can't be macro expanded, so
570 EnterMacro(Identifier, ExpansionEnd, MI, Args);
1013 /// the identifier tokens inserted.
1048 /// specified by the identifier as a standard language feature.
1226 /// specified by the identifier, either as an extension or a standard language
1288 // Return a valid identifier token.
1289 assert(Tok.is(tok::identifier));
1538 /// ExpandBuiltinMacro - If an identifier token is read that is to be expanded
1705 return Tok.is(tok::identifier);
1733 // available, and the subsequent identifier.
1792 // The argument to this builtin should be an identifier. The
1793 // builtin evaluates to 1 when that identifier names the module we are
1803 // The current module as an identifier.
1811 // We're expecting '__identifier' '(' identifier ')'. Try to recover
1820 Tok.setKind(tok::identifier);
1828 Tok.setKind(tok::identifier);
1847 llvm_unreachable("Unknown identifier!");