reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/clang/include/clang/Parse/Parser.h
  403   const LangOptions &getLangOpts() const { return PP.getLangOpts(); }
  404   const TargetInfo &getTargetInfo() const { return PP.getTargetInfo(); }
  405   Preprocessor &getPreprocessor() const { return PP; }
  452     PP.Lex(Tok);
  462     PP.Lex(Tok);
  495     return PP.getLocForEndOfToken(PrevTokLocation);
  539       PP.EnterToken(Consumed, /*IsReinject*/true);
  540       PP.Lex(Tok);
  541       PP.EnterToken(Next, /*IsReinject*/true);
  548     PP.Lex(Tok);
  563     PP.Lex(Tok);
  579     PP.Lex(Tok);
  595     PP.Lex(Tok);
  607     PP.Lex(Tok);
  619     PP.Lex(Tok);
  633     if (PP.isCodeCompletionEnabled())
  634       PP.setCodeCompletionReached();
  749     return PP.LookAhead(N-1);
  756     return PP.LookAhead(0);
  862       Ident_instancetype = PP.getIdentifierInfo("instancetype");
  904       P.PP.EnableBacktrackAtThisPos();
  911       P.PP.CommitBacktrackedTokens();
  916       P.PP.Backtrack();
tools/clang/lib/Parse/ParseCXXInlineMethods.cpp
  326       PP.EnterTokenStream(*Toks, true, /*IsReinject*/ true);
  399     PP.EnterTokenStream(*Toks, true, /*IsReinject*/true);
  506   PP.EnterTokenStream(LM.Toks, true, /*IsReinject*/true);
  620   PP.EnterTokenStream(MI.Toks, true, /*IsReinject*/true);
  638       SourceLocation EndLoc = PP.getLocForEndOfToken(PrevTokLocation);
  992       Self.PP.EnterTokenStream(std::move(Buffer), Toks.size(), true,
tools/clang/lib/Parse/ParseDecl.cpp
  227     auto &SM = PP.getSourceManager();
  229         FindLocsWithCommonFileID(PP, AttrTokLoc, Loc)) {
  232           Lexer::getSourceText(ExpansionRange, SM, PP.getLangOpts());
  233       IdentifierInfo *MacroII = PP.getIdentifierInfo(FoundName);
  699         StringRef Str = PP.getSpelling(Tok, StrBuffer, &Invalid);
  704         AttrName = PP.getIdentifierInfo(Str);
  875   unsigned ActualLength = PP.getSpelling(Tok, ThisTokBegin, &Invalid);
 1019       Platform->Ident = PP.getIdentifierInfo("macos");
 1023       Platform->Ident = PP.getIdentifierInfo("macos_app_extension");
 1025       Platform->Ident = PP.getIdentifierInfo(
 1038     Ident_introduced = PP.getIdentifierInfo("introduced");
 1039     Ident_deprecated = PP.getIdentifierInfo("deprecated");
 1040     Ident_obsoleted = PP.getIdentifierInfo("obsoleted");
 1041     Ident_unavailable = PP.getIdentifierInfo("unavailable");
 1042     Ident_message = PP.getIdentifierInfo("message");
 1043     Ident_strict = PP.getIdentifierInfo("strict");
 1044     Ident_replacement = PP.getIdentifierInfo("replacement");
 1237     Ident_language = PP.getIdentifierInfo("language");
 1238     Ident_defined_in = PP.getIdentifierInfo("defined_in");
 1239     Ident_generated_declaration = PP.getIdentifierInfo("generated_declaration");
 1490   PP.EnterTokenStream(LA.Toks, true, /*IsReinject=*/true);
 2316             PP.getLocForEndOfToken(TemplateInfo.TemplateLoc);
 2424       if (ThisVarDecl && PP.isCodeCompletionReached() && !CalledSignatureHelp) {
 2966   Diag(PP.getLocForEndOfToken(DS.getRepAsDecl()->getEndLoc()),
 4490       PP.EnterToken(Tok, /*IsReinject=*/true);
 4770     PP.EnterToken(Tok, /*IsReinject=*/true);
 5860       Diag(PP.getLocForEndOfToken(D.getCXXScopeSpec().getEndLoc()),
 5944       Diag(PP.getLocForEndOfToken(D.getEllipsisLoc()),
 5977           Diag(PP.getLocForEndOfToken(Loc), diag::err_expected_unqualified_id)
 6899     SourceLocation EndLoc = PP.getLocForEndOfToken(D.getEndLoc());
 6919   SourceLocation EndLoc = PP.getLocForEndOfToken(D.getEndLoc());
tools/clang/lib/Parse/ParseDeclCXX.cpp
  990           if (PP.isBacktrackEnabled() && Tok.is(tok::semi)) {
  992             PP.RevertCachedTokens(2);
 1043   if (PP.isBacktrackEnabled())
 1044     PP.RevertCachedTokens(1);
 1046     PP.EnterToken(Tok, /*IsReinject*/true);
 1055   PP.AnnotateCachedTokens(Tok);
 1744       PP.EnterToken(Tok, /*IsReinject*/true);
 1860               PP.getLocForEndOfToken(TemplateInfo.TemplateLoc);
 2021       PP.EnterToken(Tok, /*IsReinject=*/true);
 2216     Ident_final = &PP.getIdentifierTable().get("final");
 2218       Ident_GNU_final = &PP.getIdentifierTable().get("__final");
 2220       Ident_sealed = &PP.getIdentifierTable().get("sealed");
 2221     Ident_override = &PP.getIdentifierTable().get("override");
 2656         PP.getSpelling(Zero, Buffer) != "0")
 3033       Diag(PP.getLocForEndOfToken(PrevTokLocation),
 3268       SourceLocation BraceLoc = PP.getLocForEndOfToken(PrevTokLocation);
 3296         PP.EnterToken(Tok, /*IsReinject*/true);
 3392   PP.EnterToken(Tok, /*IsReinject*/ true);
 3395   Tok.setLocation(PP.getLocForEndOfToken(PrevTokLocation));
 3397   PP.EnterToken(Tok, /*IsReinject*/ true);
 3456       SourceLocation Loc = PP.getLocForEndOfToken(PrevTokLocation);
 3563       if (PP.isCodeCompletionReached() && !CalledSignatureHelp)
 3881           PP.getSourceManager().getExpansionLoc(Tok.getLocation());
 3882       StringRef Spelling = PP.getSpelling(ExpansionLoc, ExpansionBuf);
 3886             PP.getSourceManager().getExpansionLoc(Tok.getEndLoc()));
 3890         return &PP.getIdentifierTable().get("_Clang");
 3911         PP.getSourceManager().getSpellingLoc(Tok.getLocation());
 3912     StringRef Spelling = PP.getSpelling(SpellingLoc, SpellingBuf);
 3915       return &PP.getIdentifierTable().get(Spelling);
 4251       StringRef TokSpelling = PP.getSpelling(Tok, SpellingBuffer, &Invalid);
tools/clang/lib/Parse/ParseExpr.cpp
  304       PP.EnterToken(Tok, /*IsReinject*/true);
  314       PP.EnterToken(Tok, /*IsReinject*/true);
  327       PP.EnterToken(Tok, /*IsReinject*/true);
  341               << /*RHS*/ 1 << PP.getSpelling(OpToken)
  374         const SourceManager &SM = PP.getSourceManager();
  375         if (FILoc.isFileID() || PP.isAtStartOfMacroExpansion(FILoc, &FILoc)) {
  444           << /*LHS*/0 << PP.getSpelling(Tok) << Actions.getExprRange(RHS.get());
  480           << /*RHS*/1 << PP.getSpelling(OpToken)
  890           REVERTIBLE_TYPE_TRAIT(__is_abstract);
  891           REVERTIBLE_TYPE_TRAIT(__is_aggregate);
  892           REVERTIBLE_TYPE_TRAIT(__is_arithmetic);
  893           REVERTIBLE_TYPE_TRAIT(__is_array);
  894           REVERTIBLE_TYPE_TRAIT(__is_assignable);
  895           REVERTIBLE_TYPE_TRAIT(__is_base_of);
  896           REVERTIBLE_TYPE_TRAIT(__is_class);
  897           REVERTIBLE_TYPE_TRAIT(__is_complete_type);
  898           REVERTIBLE_TYPE_TRAIT(__is_compound);
  899           REVERTIBLE_TYPE_TRAIT(__is_const);
  900           REVERTIBLE_TYPE_TRAIT(__is_constructible);
  901           REVERTIBLE_TYPE_TRAIT(__is_convertible);
  902           REVERTIBLE_TYPE_TRAIT(__is_convertible_to);
  903           REVERTIBLE_TYPE_TRAIT(__is_destructible);
  904           REVERTIBLE_TYPE_TRAIT(__is_empty);
  905           REVERTIBLE_TYPE_TRAIT(__is_enum);
  906           REVERTIBLE_TYPE_TRAIT(__is_floating_point);
  907           REVERTIBLE_TYPE_TRAIT(__is_final);
  908           REVERTIBLE_TYPE_TRAIT(__is_function);
  909           REVERTIBLE_TYPE_TRAIT(__is_fundamental);
  910           REVERTIBLE_TYPE_TRAIT(__is_integral);
  911           REVERTIBLE_TYPE_TRAIT(__is_interface_class);
  912           REVERTIBLE_TYPE_TRAIT(__is_literal);
  913           REVERTIBLE_TYPE_TRAIT(__is_lvalue_expr);
  914           REVERTIBLE_TYPE_TRAIT(__is_lvalue_reference);
  915           REVERTIBLE_TYPE_TRAIT(__is_member_function_pointer);
  916           REVERTIBLE_TYPE_TRAIT(__is_member_object_pointer);
  917           REVERTIBLE_TYPE_TRAIT(__is_member_pointer);
  918           REVERTIBLE_TYPE_TRAIT(__is_nothrow_assignable);
  919           REVERTIBLE_TYPE_TRAIT(__is_nothrow_constructible);
  920           REVERTIBLE_TYPE_TRAIT(__is_nothrow_destructible);
  921           REVERTIBLE_TYPE_TRAIT(__is_object);
  922           REVERTIBLE_TYPE_TRAIT(__is_pod);
  923           REVERTIBLE_TYPE_TRAIT(__is_pointer);
  924           REVERTIBLE_TYPE_TRAIT(__is_polymorphic);
  925           REVERTIBLE_TYPE_TRAIT(__is_reference);
  926           REVERTIBLE_TYPE_TRAIT(__is_rvalue_expr);
  927           REVERTIBLE_TYPE_TRAIT(__is_rvalue_reference);
  928           REVERTIBLE_TYPE_TRAIT(__is_same);
  929           REVERTIBLE_TYPE_TRAIT(__is_scalar);
  930           REVERTIBLE_TYPE_TRAIT(__is_sealed);
  931           REVERTIBLE_TYPE_TRAIT(__is_signed);
  932           REVERTIBLE_TYPE_TRAIT(__is_standard_layout);
  933           REVERTIBLE_TYPE_TRAIT(__is_trivial);
  934           REVERTIBLE_TYPE_TRAIT(__is_trivially_assignable);
  935           REVERTIBLE_TYPE_TRAIT(__is_trivially_constructible);
  936           REVERTIBLE_TYPE_TRAIT(__is_trivially_copyable);
  937           REVERTIBLE_TYPE_TRAIT(__is_union);
  938           REVERTIBLE_TYPE_TRAIT(__is_unsigned);
  939           REVERTIBLE_TYPE_TRAIT(__is_void);
  940           REVERTIBLE_TYPE_TRAIT(__is_volatile);
 1699             if (PP.isCodeCompletionReached() && !CalledSignatureHelp)
 1914         SourceLocation LParenLoc = PP.getLocForEndOfToken(OpTok.getLocation());
 1915         SourceLocation RParenLoc = PP.getLocForEndOfToken(PrevTokLocation);
 2004           RParenLoc = PP.getLocForEndOfToken(NameLoc);
 2012       LParenLoc = PP.getLocForEndOfToken(EllipsisLoc);
 2013       RParenLoc = PP.getLocForEndOfToken(NameLoc);
 2409       if (!PP.getSourceManager().isInSystemHeader(BridgeKeywordLoc))
 2465       if (!PP.getSourceManager().isInSystemHeader(BridgeKeywordLoc))
 3012   PrettyStackTraceLoc CrashInfo(PP.getSourceManager(), CaretLoc,
tools/clang/lib/Parse/ParseExprCXX.cpp
   43   SourceManager &SM = PP.getSourceManager();
   98   FixDigraph(*this, PP, Next, SecondToken, tok::unknown,
  401           PP.LookAhead(1).is(tok::identifier)) {
  414       Diag(PP.getLocForEndOfToken(ConsumeToken()), diag::err_expected)
  435           PP.Lex(ColonColon);
  437           PP.EnterToken(ColonColon, /*IsReinject*/ true);
  463           PP.EnterToken(Tok, /*IsReinject*/ true);
  464           PP.EnterToken(ColonColon, /*IsReinject*/ true);
 1026             PP.RevertCachedTokens(1);
 1032             Tok.setAnnotationEndLoc(PP.getLastCachedTokenLocation());
 1033             PP.AnnotateCachedTokens(Tok);
 1098                                   Loc, 0, PP.getSourceManager(), getLangOpts());
 1222   PrettyStackTraceLoc CrashInfo(PP.getSourceManager(), LambdaBeginLoc,
 1508       FixDigraph(*this, PP, Tok, Next, Kind, /*AtDigraph*/true);
 1863         if (PP.isCodeCompletionReached() && !CalledSignatureHelp)
 2559     StringLiteralParser Literal(Toks, PP);
 2568       II = &PP.getIdentifierTable().get(Literal.getUDSuffix());
 2572                                        PP.getSourceManager(), getLangOpts());
 3037         if (PP.isCodeCompletionReached() && !CalledSignatureHelp)
 3479   PP.EnterTokenStream(Toks, /*DisableMacroExpansion*/ true,
tools/clang/lib/Parse/ParseInit.cpp
   34     if (!PP.getLangOpts().CPlusPlus11)
   40     switch (PP.LookAhead(0).getKind()) {
   65     return PP.LookAhead(0).is(tok::colon);
tools/clang/lib/Parse/ParseObjc.cpp
  752         Selector GetterSel = PP.getSelectorTable().getNullarySelector(SelName);
  756           SetterSel = PP.getSelectorTable().getSelector(1, &SetterName);
  759               PP.getIdentifierTable(), PP.getSelectorTable(),
  759               PP.getIdentifierTable(), PP.getSelectorTable(),
 1023     std::string ThisTok(PP.getSpelling(Tok));
 1025       IdentifierInfo *II = &PP.getIdentifierTable().get(ThisTok);
 1380     Selector Sel = PP.getSelectorTable().getNullarySelector(SelIdent);
 1458       if (PP.getLocForEndOfToken(ArgInfo.NameLoc) == ColonLoc) {
 1503   Selector Sel = PP.getSelectorTable().getSelector(KeyIdents.size(),
 1942         PP.EnterToken(Tok, /*IsReinject*/true);
 3299   Selector Sel = PP.getSelectorTable().getSelector(nKeys, &KeyIdents[0]);
 3622   Selector Sel = PP.getSelectorTable().getSelector(nColons, &KeyIdents[0]);
 3653   PP.EnterTokenStream(LM.Toks, true, /*IsReinject*/true);
 3687     if (PP.getSourceManager().isBeforeInTranslationUnit(Tok.getLocation(),
tools/clang/lib/Parse/ParseOpenMP.cpp
  449       if (PP.isCodeCompletionReached() && !CalledSignatureHelp)
  506   if (PP.LookAhead(0).is(tok::colon)) {
  567                                  : getOpenMPClauseKind(PP.getSpelling(Tok));
  759   PP.EnterToken(Tok, /*IsReinject*/ true);
  760   PP.EnterTokenStream(Toks, /*DisableMacroExpansion=*/true,
  925     StringRef CtxSelectorSetName = PP.getSpelling(Tok, Buffer);
  973                                          : PP.getSpelling(PrevTok));
  989   PP.EnterToken(Tok, /*IsReinject*/ true);
  990   PP.EnterTokenStream(Toks, /*DisableMacroExpansion=*/true,
 1019                                : getOpenMPClauseKind(PP.getSpelling(Tok));
 1289                                  : getOpenMPClauseKind(PP.getSpelling(Tok));
 1335                                    : getOpenMPClauseKind(PP.getSpelling(Tok));
 1643                                  : getOpenMPClauseKind(PP.getSpelling(Tok));
 1707     if (PP.LookAhead(0).is(tok::l_paren)) {
 1711       PP.EnterToken(Tok, /*IsReinject*/ true);
 1804                                : getOpenMPClauseKind(PP.getSpelling(Tok));
 2016     if (CKind == OMPC_ordered && PP.LookAhead(/*N=*/0).isNot(tok::l_paren))
 2287         Kind, Tok.isAnnotation() ? "" : PP.getSpelling(Tok));
 2299             Kind, Tok.isAnnotation() ? "" : PP.getSpelling(Tok));
 2314           Kind, Tok.isAnnotation() ? "" : PP.getSpelling(Tok));
 2328         Kind, Tok.isAnnotation() ? "" : PP.getSpelling(Tok)));
 2338         Kind, Tok.isAnnotation() ? "" : PP.getSpelling(Tok)));
 2350         Kind, Tok.isAnnotation() ? "" : PP.getSpelling(Tok)));
 2512       if (PP.LookAhead(0).is(tok::colon))
 2594             Kind, Tok.is(tok::identifier) ? PP.getSpelling(Tok) : ""));
 2618     if (Tok.is(tok::identifier) && PP.LookAhead(0).is(tok::l_paren)) {
 2620           getOpenMPSimpleClauseType(Kind, PP.getSpelling(Tok)));
 2664             getOpenMPSimpleClauseType(Kind, PP.getSpelling(Tok)));
 2669             getOpenMPSimpleClauseType(Kind, PP.getSpelling(Tok)));
tools/clang/lib/Parse/ParsePragma.cpp
  269   PP.AddPragmaHandler(AlignHandler.get());
  272   PP.AddPragmaHandler("GCC", GCCVisibilityHandler.get());
  275   PP.AddPragmaHandler(OptionsHandler.get());
  278   PP.AddPragmaHandler(PackHandler.get());
  281   PP.AddPragmaHandler(MSStructHandler.get());
  284   PP.AddPragmaHandler(UnusedHandler.get());
  287   PP.AddPragmaHandler(WeakHandler.get());
  290   PP.AddPragmaHandler(RedefineExtnameHandler.get());
  293   PP.AddPragmaHandler("STDC", FPContractHandler.get());
  296   PP.AddPragmaHandler("STDC", STDCFENVHandler.get());
  299   PP.AddPragmaHandler("STDC", STDCCXLIMITHandler.get());
  302   PP.AddPragmaHandler("STDC", STDCUnknownHandler.get());
  305   PP.AddPragmaHandler("clang", PCSectionHandler.get());
  309     PP.AddPragmaHandler("OPENCL", OpenCLExtensionHandler.get());
  311     PP.AddPragmaHandler("OPENCL", FPContractHandler.get());
  317   PP.AddPragmaHandler(OpenMPHandler.get());
  322     PP.AddPragmaHandler(MSCommentHandler.get());
  328     PP.AddPragmaHandler(MSDetectMismatchHandler.get());
  330     PP.AddPragmaHandler(MSPointersToMembers.get());
  332     PP.AddPragmaHandler(MSVtorDisp.get());
  334     PP.AddPragmaHandler(MSInitSeg.get());
  336     PP.AddPragmaHandler(MSDataSeg.get());
  338     PP.AddPragmaHandler(MSBSSSeg.get());
  340     PP.AddPragmaHandler(MSConstSeg.get());
  342     PP.AddPragmaHandler(MSCodeSeg.get());
  344     PP.AddPragmaHandler(MSSection.get());
  346     PP.AddPragmaHandler(MSRuntimeChecks.get());
  348     PP.AddPragmaHandler(MSIntrinsic.get());
  350     PP.AddPragmaHandler(MSOptimize.get());
  356     PP.AddPragmaHandler("clang", CUDAForceHostDeviceHandler.get());
  360   PP.AddPragmaHandler("clang", OptimizeHandler.get());
  363   PP.AddPragmaHandler("clang", LoopHintHandler.get());
  366   PP.AddPragmaHandler(UnrollHintHandler.get());
  369   PP.AddPragmaHandler(NoUnrollHintHandler.get());
  373   PP.AddPragmaHandler(UnrollAndJamHintHandler.get());
  377   PP.AddPragmaHandler(NoUnrollAndJamHintHandler.get());
  380   PP.AddPragmaHandler("clang", FPHandler.get());
  384   PP.AddPragmaHandler("clang", AttributePragmaHandler.get());
  389   PP.RemovePragmaHandler(AlignHandler.get());
  391   PP.RemovePragmaHandler("GCC", GCCVisibilityHandler.get());
  393   PP.RemovePragmaHandler(OptionsHandler.get());
  395   PP.RemovePragmaHandler(PackHandler.get());
  397   PP.RemovePragmaHandler(MSStructHandler.get());
  399   PP.RemovePragmaHandler(UnusedHandler.get());
  401   PP.RemovePragmaHandler(WeakHandler.get());
  403   PP.RemovePragmaHandler(RedefineExtnameHandler.get());
  407     PP.RemovePragmaHandler("OPENCL", OpenCLExtensionHandler.get());
  409     PP.RemovePragmaHandler("OPENCL", FPContractHandler.get());
  411   PP.RemovePragmaHandler(OpenMPHandler.get());
  416     PP.RemovePragmaHandler(MSCommentHandler.get());
  420   PP.RemovePragmaHandler("clang", PCSectionHandler.get());
  424     PP.RemovePragmaHandler(MSDetectMismatchHandler.get());
  426     PP.RemovePragmaHandler(MSPointersToMembers.get());
  428     PP.RemovePragmaHandler(MSVtorDisp.get());
  430     PP.RemovePragmaHandler(MSInitSeg.get());
  432     PP.RemovePragmaHandler(MSDataSeg.get());
  434     PP.RemovePragmaHandler(MSBSSSeg.get());
  436     PP.RemovePragmaHandler(MSConstSeg.get());
  438     PP.RemovePragmaHandler(MSCodeSeg.get());
  440     PP.RemovePragmaHandler(MSSection.get());
  442     PP.RemovePragmaHandler(MSRuntimeChecks.get());
  444     PP.RemovePragmaHandler(MSIntrinsic.get());
  446     PP.RemovePragmaHandler(MSOptimize.get());
  451     PP.RemovePragmaHandler("clang", CUDAForceHostDeviceHandler.get());
  455   PP.RemovePragmaHandler("STDC", FPContractHandler.get());
  458   PP.RemovePragmaHandler("STDC", STDCFENVHandler.get());
  461   PP.RemovePragmaHandler("STDC", STDCCXLIMITHandler.get());
  464   PP.RemovePragmaHandler("STDC", STDCUnknownHandler.get());
  467   PP.RemovePragmaHandler("clang", OptimizeHandler.get());
  470   PP.RemovePragmaHandler("clang", LoopHintHandler.get());
  473   PP.RemovePragmaHandler(UnrollHintHandler.get());
  476   PP.RemovePragmaHandler(NoUnrollHintHandler.get());
  479   PP.RemovePragmaHandler(UnrollAndJamHintHandler.get());
  482   PP.RemovePragmaHandler(NoUnrollAndJamHintHandler.get());
  485   PP.RemovePragmaHandler("clang", FPHandler.get());
  488   PP.RemovePragmaHandler("clang", AttributePragmaHandler.get());
  655     PP.Diag(Tok, diag::err_expected) << tok::l_brace;
  702       PP.Diag(NameLoc, diag::warn_pragma_expected_predicate) << 1;
  711       PP.Diag(NameLoc, diag::warn_pragma_begin_end_mismatch);
  714     PP.Diag(NameLoc, diag::warn_pragma_unknown_extension) << Ident;
  718     PP.Diag(NameLoc, diag::warn_pragma_extension_is_core) << Ident;
  720     PP.Diag(NameLoc, diag::warn_pragma_unsupported_extension) << Ident;
  747   PP.EnterTokenStream(std::move(TheTokens->first), TheTokens->second, true,
  752   PP.Lex(Tok); // pragma kind
  769       PP.Lex(Tok);
  770     PP.Lex(Tok);
  777     PP.Diag(PragmaLocation, diag::warn_pragma_expected_lparen) << PragmaName;
  780   PP.Lex(Tok); // (
  783     PP.Diag(PragmaLocation, diag::warn_pragma_expected_section_name)
  792     PP.Diag(PragmaLocation, diag::warn_pragma_expected_non_wide_string)
  799     PP.Lex(Tok); // ,
  804       PP.Lex(Tok); // long/short
  809       PP.Diag(PragmaLocation, diag::warn_pragma_expected_action_or_r_paren)
  826       PP.Diag(PragmaLocation, Flag == ASTContext::PSF_None
  834     PP.Lex(Tok); // Identifier
  841     PP.Diag(PragmaLocation, diag::warn_pragma_expected_rparen) << PragmaName;
  844   PP.Lex(Tok); // )
  846     PP.Diag(PragmaLocation, diag::warn_pragma_extra_tokens_at_eol)
  850   PP.Lex(Tok); // eof
  858     PP.Diag(PragmaLocation, diag::warn_pragma_expected_lparen) << PragmaName;
  861   PP.Lex(Tok); // (
  871       PP.Diag(PragmaLocation,
  877       PP.Lex(Tok); // push | pop
  879         PP.Lex(Tok); // ,
  883           PP.Lex(Tok); // identifier
  885             PP.Lex(Tok);
  887             PP.Diag(PragmaLocation, diag::warn_pragma_expected_punc)
  893         PP.Diag(PragmaLocation, diag::warn_pragma_expected_punc) << PragmaName;
  906       PP.Diag(PragmaLocation, DiagID) << PragmaName;
  914       PP.Diag(PragmaLocation, diag::warn_pragma_expected_non_wide_string)
  923     PP.Diag(PragmaLocation, diag::warn_pragma_expected_rparen) << PragmaName;
  926   PP.Lex(Tok); // )
  928     PP.Diag(PragmaLocation, diag::warn_pragma_extra_tokens_at_eol)
  932   PP.Lex(Tok); // eof
  942     PP.Diag(PragmaLocation, diag::warn_pragma_init_seg_unsupported_target);
  970       PP.Lex(Tok);
  978       PP.Diag(PragmaLocation, diag::warn_pragma_expected_non_wide_string)
  986     PP.Diag(PragmaLocation, diag::warn_pragma_expected_init_seg) << PragmaName;
 1116     PP.EnterTokenStream(Toks, /*DisableMacroExpansion=*/false,
 1420   PP.EnterTokenStream(Info->Tokens, /*DisableMacroExpansion=*/false,
tools/clang/lib/Parse/ParseStmt.cpp
  751       SourceLocation ExpectedLoc = PP.getLocForEndOfToken(PrevTokLocation);
  791       SourceLocation AfterColonLoc = PP.getLocForEndOfToken(ColonLoc);
  832     SourceLocation ExpectedLoc = PP.getLocForEndOfToken(PrevTokLocation);
  846     SourceLocation AfterColonLoc = PP.getLocForEndOfToken(ColonLoc);
 1013   PrettyStackTraceLoc CrashInfo(PP.getSourceManager(),
 2144   if (!PP.isCodeCompletionEnabled()) {
tools/clang/lib/Parse/ParseStmtAsm.cpp
  215   PP.EnterTokenStream(LineToks, /*DisableMacroExpansions*/ true,
  250     Token IdTok = PP.LookAhead(0);
  395   SourceManager &SrcMgr = PP.getSourceManager();
  470           if (PP.LookAhead(0).is(tok::l_brace))
  515       PP.Lex(Tok);
  577   if (buildMSAsmString(PP, AsmLoc, AsmToks, TokOffsets, AsmString))
tools/clang/lib/Parse/ParseTemplate.cpp
  291           = PP.getLocForEndOfToken(TemplateInfo.TemplateLoc);
  942         TokLoc, Lexer::AdvanceToTokenCharacter(TokLoc, 2, PP.getSourceManager(),
  969       TokLoc, 1, PP.getSourceManager(), getLangOpts());
  974   RAngleLoc = PP.SplitToken(TokLoc, GreaterLength);
  977   bool CachingTokens = PP.IsPreviousCachedToken(Tok);
  997     AfterGreaterLoc = PP.SplitToken(AfterGreaterLoc, Tok.getLength());
 1004       PP.ReplacePreviousCachedToken({});
 1007       PP.ReplacePreviousCachedToken({Greater, Tok});
 1009       PP.ReplacePreviousCachedToken({Greater});
 1016     PP.EnterToken(Tok, /*IsReinject=*/true);
 1189   PP.AnnotateCachedTokens(Tok);
 1237   PP.AnnotateCachedTokens(Tok);
 1499   PP.EnterTokenStream(LPT.Toks, true, /*IsReinject*/true);
tools/clang/lib/Parse/Parser.cpp
   45     Ident__except = PP.getIdentifierInfo("__except");
   51   : PP(pp), Actions(actions), Diags(PP.getDiagnostics()),
   67   PP.addCommentHandler(CommentSemaHandler.get());
   69   PP.setCodeCompletionHandler(*this);
   88   SourceLocation EndLoc = PP.getLocForEndOfToken(ParenRange.getEnd());
  136   SourceLocation EndLoc = PP.getLocForEndOfToken(PrevTokLocation);
  167       << PP.getSpelling(Tok)
  427   PP.removeCommentHandler(CommentSemaHandler.get());
  429   PP.clearCodeCompletionHandler();
  432       !PP.isIncrementalProcessingEnabled() && !TemplateIds.empty()) {
  454     ObjCTypeQuals[objc_in] = &PP.getIdentifierTable().get("in");
  455     ObjCTypeQuals[objc_out] = &PP.getIdentifierTable().get("out");
  456     ObjCTypeQuals[objc_inout] = &PP.getIdentifierTable().get("inout");
  457     ObjCTypeQuals[objc_oneway] = &PP.getIdentifierTable().get("oneway");
  458     ObjCTypeQuals[objc_bycopy] = &PP.getIdentifierTable().get("bycopy");
  459     ObjCTypeQuals[objc_byref] = &PP.getIdentifierTable().get("byref");
  460     ObjCTypeQuals[objc_nonnull] = &PP.getIdentifierTable().get("nonnull");
  461     ObjCTypeQuals[objc_nullable] = &PP.getIdentifierTable().get("nullable");
  463       = &PP.getIdentifierTable().get("null_unspecified");
  474   Ident_super = &PP.getIdentifierTable().get("super");
  480     Ident_vector = &PP.getIdentifierTable().get("vector");
  481     Ident_bool = &PP.getIdentifierTable().get("bool");
  484     Ident_pixel = &PP.getIdentifierTable().get("pixel");
  504     Ident__exception_info        = PP.getIdentifierInfo("_exception_info");
  505     Ident___exception_info       = PP.getIdentifierInfo("__exception_info");
  506     Ident_GetExceptionInfo       = PP.getIdentifierInfo("GetExceptionInformation");
  507     Ident__exception_code        = PP.getIdentifierInfo("_exception_code");
  508     Ident___exception_code       = PP.getIdentifierInfo("__exception_code");
  509     Ident_GetExceptionCode       = PP.getIdentifierInfo("GetExceptionCode");
  510     Ident__abnormal_termination  = PP.getIdentifierInfo("_abnormal_termination");
  511     Ident___abnormal_termination = PP.getIdentifierInfo("__abnormal_termination");
  512     Ident_AbnormalTermination    = PP.getIdentifierInfo("AbnormalTermination");
  514     PP.SetPoisonReason(Ident__exception_code,diag::err_seh___except_block);
  515     PP.SetPoisonReason(Ident___exception_code,diag::err_seh___except_block);
  516     PP.SetPoisonReason(Ident_GetExceptionCode,diag::err_seh___except_block);
  517     PP.SetPoisonReason(Ident__exception_info,diag::err_seh___except_filter);
  518     PP.SetPoisonReason(Ident___exception_info,diag::err_seh___except_filter);
  519     PP.SetPoisonReason(Ident_GetExceptionInfo,diag::err_seh___except_filter);
  520     PP.SetPoisonReason(Ident__abnormal_termination,diag::err_seh___finally_block);
  521     PP.SetPoisonReason(Ident___abnormal_termination,diag::err_seh___finally_block);
  522     PP.SetPoisonReason(Ident_AbnormalTermination,diag::err_seh___finally_block);
  526     Ident_import = PP.getIdentifierInfo("import");
  527     Ident_module = PP.getIdentifierInfo("module");
  579   if (PP.isIncrementalProcessingEnabled() && Tok.is(tok::eof))
  652                                     PP.isIncrementalProcessingEnabled() ?
  655     if (!PP.isIncrementalProcessingEnabled())
  718   if (PP.isCodeCompletionReached()) {
 1501     SourceRange RemovalRange(PP.getLocForEndOfToken(Loc),
 1502                              PP.getLocForEndOfToken(Tok.getLocation()));
 1544   if (PP.isBacktrackEnabled())
 1545     PP.RevertCachedTokens(1);
 1547     PP.EnterToken(Tok, /*IsReinject=*/true);
 1556     PP.AnnotateCachedTokens(Tok);
 1628     PP.TypoCorrectToken(Tok);
 1666     PP.AnnotateCachedTokens(Tok);
 1676     PP.AnnotateCachedTokens(Tok);
 1684     PP.AnnotateCachedTokens(Tok);
 1697     PP.AnnotateCachedTokens(Tok);
 1734     << PP.getSpelling(Tok)
 1780       PP.Lex(TypedefToken);
 1782       PP.EnterToken(Tok, /*IsReinject=*/true);
 1861     PP.AnnotateCachedTokens(Tok);
 1920       PP.AnnotateCachedTokens(Tok);
 2336   if (PP.hadModuleLoaderFatalFailure()) {
 2355     auto &SrcMgr = PP.getSourceManager();