• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/contrib/llvm-project/clang/lib/Lex/

Lines Matching refs:Identifier

5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
469 /// expanded as a macro, handle it and return the next token as 'Identifier'.
470 bool Preprocessor::HandleMacroExpandedIdentifier(Token &Identifier,
482 Callbacks->MacroExpands(Identifier, M, Identifier.getLocation(),
484 ExpandBuiltinMacro(Identifier);
495 SourceLocation ExpansionEnd = Identifier.getLocation();
503 ArgMacro = &Identifier;
505 Args = ReadMacroCallArgumentList(Identifier, MI, ExpansionEnd);
523 SourceLocation ExpandLoc = Identifier.getLocation();
533 MacroExpandsInfo(Identifier, M, ExpansionRange));
535 Callbacks->MacroExpands(Identifier, M, ExpansionRange, Args);
549 Diag(Identifier, diag::warn_pp_ambiguous_macro)
550 << Identifier.getIdentifierInfo();
552 << Identifier.getIdentifierInfo();
556 << Identifier.getIdentifierInfo();
570 Identifier.setFlag(Token::LeadingEmptyMacro);
571 PropagateLineStartLeadingSpaceInfo(Identifier);
575 isTrivialSingleTokenExpansion(MI, Identifier.getIdentifierInfo(),
586 bool isAtStartOfLine = Identifier.isAtStartOfLine();
587 bool hasLeadingSpace = Identifier.hasLeadingSpace();
590 Identifier = MI->getReplacementToken(0);
593 Identifier.setFlagValue(Token::StartOfLine , isAtStartOfLine);
594 Identifier.setFlagValue(Token::LeadingSpace, hasLeadingSpace);
599 SourceMgr.createExpansionLoc(Identifier.getLocation(), ExpandLoc,
600 ExpansionEnd,Identifier.getLength());
601 Identifier.setLocation(Loc);
605 if (IdentifierInfo *NewII = Identifier.getIdentifierInfo()) {
608 Identifier.setFlag(Token::DisableExpand);
612 Diag(Identifier, diag::pp_disabled_macro_expansion);
623 EnterMacro(Identifier, ExpansionEnd, MI, Args);