• Home
  • Raw
  • Download

Lines Matching refs:PP

43 void EmptyPragmaHandler::HandlePragma(Preprocessor &PP,   in HandlePragma()  argument
78 void PragmaNamespace::HandlePragma(Preprocessor &PP, in HandlePragma() argument
83 PP.LexUnexpandedToken(Tok); in HandlePragma()
91 PP.Diag(Tok, diag::warn_pragma_ignored); in HandlePragma()
96 Handler->HandlePragma(PP, Introducer, Tok); in HandlePragma()
128 Preprocessor &PP; member in __anon8425c0510111::LexingFor_PragmaRAII
135 LexingFor_PragmaRAII(Preprocessor &PP, bool InMacroArgPreExpansion, in LexingFor_PragmaRAII() argument
137 : PP(PP), InMacroArgPreExpansion(InMacroArgPreExpansion), in LexingFor_PragmaRAII()
141 PP.EnableBacktrackAtThisPos(); in LexingFor_PragmaRAII()
148 PP.CommitBacktrackedTokens(); in ~LexingFor_PragmaRAII()
150 PP.Backtrack(); in ~LexingFor_PragmaRAII()
813 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, in HandlePragma()
815 PP.CheckEndOfDirective("pragma once"); in HandlePragma()
816 PP.HandlePragmaOnce(OnceTok); in HandlePragma()
824 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, in HandlePragma()
826 PP.HandlePragmaMark(); in HandlePragma()
833 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, in HandlePragma()
835 PP.HandlePragmaPoison(PoisonTok); in HandlePragma()
843 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, in HandlePragma()
845 PP.HandlePragmaSystemHeader(SHToken); in HandlePragma()
846 PP.CheckEndOfDirective("pragma"); in HandlePragma()
851 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, in HandlePragma()
853 PP.HandlePragmaDependency(DepToken); in HandlePragma()
859 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, in HandlePragma()
862 PP.LexUnexpandedToken(Tok); in HandlePragma()
864 PP.Diag(Tok, diag::warn_pragma_diagnostic_invalid); in HandlePragma()
878 PP.EnterToken(Crasher); in HandlePragma()
881 PP.LexUnexpandedToken(Identifier); in HandlePragma()
889 PP.DiscardUntilEndOfDirective(); in HandlePragma()
890 PP.EnterToken(DumpAnnot); in HandlePragma()
892 PP.Diag(Identifier, diag::warn_pragma_debug_missing_argument) in HandlePragma()
901 PP.LexUnexpandedToken(MacroName); in HandlePragma()
904 PP.dumpMacroInfo(MacroII); in HandlePragma()
906 PP.Diag(MacroName, diag::warn_pragma_debug_missing_argument) in HandlePragma()
915 HandleCaptured(PP); in HandlePragma()
917 PP.Diag(Tok, diag::warn_pragma_debug_unexpected_command) in HandlePragma()
921 PPCallbacks *Callbacks = PP.getPPCallbacks(); in HandlePragma()
926 void HandleCaptured(Preprocessor &PP) { in HandleCaptured()
928 if (PP.isPreprocessedOutput()) in HandleCaptured()
932 PP.LexUnexpandedToken(Tok); in HandleCaptured()
935 PP.Diag(Tok, diag::ext_pp_extra_tokens_at_eol) in HandleCaptured()
942 PP.getPreprocessorAllocator().Allocate<Token>(1), 1); in HandleCaptured()
947 PP.EnterTokenStream(Toks, /*DisableMacroExpansion=*/true); in HandleCaptured()
971 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, in HandlePragma()
975 PP.LexUnexpandedToken(Tok); in HandlePragma()
977 PP.Diag(Tok, diag::warn_pragma_diagnostic_invalid); in HandlePragma()
981 PPCallbacks *Callbacks = PP.getPPCallbacks(); in HandlePragma()
984 if (!PP.getDiagnostics().popMappings(DiagLoc)) in HandlePragma()
985 PP.Diag(Tok, diag::warn_pragma_diagnostic_cannot_pop); in HandlePragma()
990 PP.getDiagnostics().pushMappings(DiagLoc); in HandlePragma()
1004 PP.Diag(Tok, diag::warn_pragma_diagnostic_invalid); in HandlePragma()
1008 PP.LexUnexpandedToken(Tok); in HandlePragma()
1012 if (!PP.FinishLexStringLiteral(Tok, WarningName, "pragma diagnostic", in HandlePragma()
1017 PP.Diag(Tok.getLocation(), diag::warn_pragma_diagnostic_invalid_token); in HandlePragma()
1023 PP.Diag(StringLoc, diag::warn_pragma_diagnostic_invalid_option); in HandlePragma()
1035 PP.getDiagnostics().setSeverityForAll(Flavor, SV, DiagLoc); in HandlePragma()
1037 unknownDiag = PP.getDiagnostics().setSeverityForGroup(Flavor, Group, SV, in HandlePragma()
1040 PP.Diag(StringLoc, diag::warn_pragma_diagnostic_unknown_warning) in HandlePragma()
1053 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, in HandlePragma()
1060 PPCallbacks *Callbacks = PP.getPPCallbacks(); in HandlePragma()
1062 PP.Lex(Tok); in HandlePragma()
1064 PP.Diag(Tok, diag::warn_pragma_warning_expected) << "("; in HandlePragma()
1068 PP.Lex(Tok); in HandlePragma()
1074 PP.Lex(Tok); in HandlePragma()
1076 PP.Lex(Tok); in HandlePragma()
1079 PP.parseSimpleIntegerLiteral(Tok, Value)) in HandlePragma()
1082 PP.Diag(Tok, diag::warn_pragma_warning_push_level); in HandlePragma()
1090 PP.Lex(Tok); in HandlePragma()
1099 PP.Diag(Tok, diag::warn_pragma_warning_spec_invalid); in HandlePragma()
1116 PP.Lex(Tok); in HandlePragma()
1120 Specifier = PP.getSpelling(Tok, SpecifierBuf); in HandlePragma()
1121 if (PP.parseSimpleIntegerLiteral(Tok, Value)) { in HandlePragma()
1129 PP.Diag(Tok, diag::warn_pragma_warning_spec_invalid); in HandlePragma()
1133 PP.Diag(Tok, diag::warn_pragma_warning_expected) << ":"; in HandlePragma()
1139 PP.Lex(Tok); in HandlePragma()
1142 if (!PP.parseSimpleIntegerLiteral(Tok, Value) || Value == 0 || in HandlePragma()
1144 PP.Diag(Tok, diag::warn_pragma_warning_expected_number); in HandlePragma()
1155 PP.Lex(Tok); in HandlePragma()
1160 PP.Diag(Tok, diag::warn_pragma_warning_expected) << ")"; in HandlePragma()
1164 PP.Lex(Tok); in HandlePragma()
1166 PP.Diag(Tok, diag::ext_pp_extra_tokens_at_eol) << "pragma warning"; in HandlePragma()
1173 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, in HandlePragma()
1175 PP.HandlePragmaIncludeAlias(IncludeAliasTok); in HandlePragma()
1215 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, in HandlePragma()
1218 PP.Lex(Tok); in HandlePragma()
1225 PP.Lex(Tok); in HandlePragma()
1231 PP.Diag(MessageLoc, diag::err_pragma_message_malformed) << Kind; in HandlePragma()
1236 if (!PP.FinishLexStringLiteral(Tok, MessageString, PragmaKind(Kind), in HandlePragma()
1242 PP.Diag(Tok.getLocation(), diag::err_pragma_message_malformed) << Kind; in HandlePragma()
1245 PP.Lex(Tok); // eat the r_paren. in HandlePragma()
1249 PP.Diag(Tok.getLocation(), diag::err_pragma_message_malformed) << Kind; in HandlePragma()
1254 PP.Diag(MessageLoc, (Kind == PPCallbacks::PMK_Error) in HandlePragma()
1259 if (PPCallbacks *Callbacks = PP.getPPCallbacks()) in HandlePragma()
1268 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, in HandlePragma()
1270 PP.HandlePragmaPushMacro(PushMacroTok); in HandlePragma()
1279 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, in HandlePragma()
1281 PP.HandlePragmaPopMacro(PopMacroTok); in HandlePragma()
1290 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, in HandlePragma()
1293 if (PP.LexOnOffSwitch(OOS)) in HandlePragma()
1296 PP.Diag(Tok, diag::warn_stdc_fenv_access_not_supported); in HandlePragma()
1304 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, in HandlePragma()
1307 PP.LexOnOffSwitch(OOS); in HandlePragma()
1314 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, in HandlePragma()
1317 PP.Diag(UnknownTok, diag::ext_stdc_pragma_ignored); in HandlePragma()
1325 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, in HandlePragma()
1333 PP.LexUnexpandedToken(Tok); in HandlePragma()
1340 PP.Diag(Tok.getLocation(), diag::err_pp_arc_cf_code_audited_syntax); in HandlePragma()
1345 PP.LexUnexpandedToken(Tok); in HandlePragma()
1347 PP.Diag(Tok, diag::ext_pp_extra_tokens_at_eol) << "pragma"; in HandlePragma()
1350 SourceLocation BeginLoc = PP.getPragmaARCCFCodeAuditedLoc(); in HandlePragma()
1358 PP.Diag(Loc, diag::err_pp_double_begin_of_arc_cf_code_audited); in HandlePragma()
1359 PP.Diag(BeginLoc, diag::note_pragma_entered_here); in HandlePragma()
1365 PP.Diag(Loc, diag::err_pp_unmatched_end_of_arc_cf_code_audited); in HandlePragma()
1371 PP.setPragmaARCCFCodeAuditedLoc(NewLoc); in HandlePragma()
1379 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, in HandlePragma()
1387 PP.LexUnexpandedToken(Tok); in HandlePragma()
1394 PP.Diag(Tok.getLocation(), diag::err_pp_assume_nonnull_syntax); in HandlePragma()
1399 PP.LexUnexpandedToken(Tok); in HandlePragma()
1401 PP.Diag(Tok, diag::ext_pp_extra_tokens_at_eol) << "pragma"; in HandlePragma()
1404 SourceLocation BeginLoc = PP.getPragmaAssumeNonNullLoc(); in HandlePragma()
1412 PP.Diag(Loc, diag::err_pp_double_begin_of_assume_nonnull); in HandlePragma()
1413 PP.Diag(BeginLoc, diag::note_pragma_entered_here); in HandlePragma()
1419 PP.Diag(Loc, diag::err_pp_unmatched_end_of_assume_nonnull); in HandlePragma()
1425 PP.setPragmaAssumeNonNullLoc(NewLoc); in HandlePragma()
1443 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, in HandlePragma()