Lines Matching refs:PP
42 void EmptyPragmaHandler::HandlePragma(Preprocessor &PP,
79 void PragmaNamespace::HandlePragma(Preprocessor &PP,
84 PP.LexUnexpandedToken(Tok);
92 PP.Diag(Tok, diag::warn_pragma_ignored);
97 Handler->HandlePragma(PP, Introducer, Tok);
129 Preprocessor &PP;
136 LexingFor_PragmaRAII(Preprocessor &PP, bool InMacroArgPreExpansion,
138 : PP(PP), InMacroArgPreExpansion(InMacroArgPreExpansion),
142 PP.EnableBacktrackAtThisPos();
149 PP.CommitBacktrackedTokens();
151 PP.Backtrack();
814 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer,
816 PP.CheckEndOfDirective("pragma once");
817 PP.HandlePragmaOnce(OnceTok);
825 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer,
827 PP.HandlePragmaMark();
834 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer,
836 PP.HandlePragmaPoison(PoisonTok);
844 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer,
846 PP.HandlePragmaSystemHeader(SHToken);
847 PP.CheckEndOfDirective("pragma");
852 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer,
854 PP.HandlePragmaDependency(DepToken);
860 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer,
863 PP.LexUnexpandedToken(Tok);
865 PP.Diag(Tok, diag::warn_pragma_diagnostic_invalid);
877 PP.EnterToken(Crasher);
889 HandleCaptured(PP);
891 PP.Diag(Tok, diag::warn_pragma_debug_unexpected_command)
895 PPCallbacks *Callbacks = PP.getPPCallbacks();
900 void HandleCaptured(Preprocessor &PP) {
902 if (PP.isPreprocessedOutput())
906 PP.LexUnexpandedToken(Tok);
909 PP.Diag(Tok, diag::ext_pp_extra_tokens_at_eol)
915 Token *Toks = PP.getPreprocessorAllocator().Allocate<Token>(1);
920 PP.EnterTokenStream(Toks, 1, /*DisableMacroExpansion=*/true,
945 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer,
949 PP.LexUnexpandedToken(Tok);
951 PP.Diag(Tok, diag::warn_pragma_diagnostic_invalid);
955 PPCallbacks *Callbacks = PP.getPPCallbacks();
958 if (!PP.getDiagnostics().popMappings(DiagLoc))
959 PP.Diag(Tok, diag::warn_pragma_diagnostic_cannot_pop);
964 PP.getDiagnostics().pushMappings(DiagLoc);
978 PP.Diag(Tok, diag::warn_pragma_diagnostic_invalid);
982 PP.LexUnexpandedToken(Tok);
986 if (!PP.FinishLexStringLiteral(Tok, WarningName, "pragma diagnostic",
991 PP.Diag(Tok.getLocation(), diag::warn_pragma_diagnostic_invalid_token);
997 PP.Diag(StringLoc, diag::warn_pragma_diagnostic_invalid_option);
1001 if (PP.getDiagnostics().setSeverityForGroup(WarningName.substr(2), SV,
1003 PP.Diag(StringLoc, diag::warn_pragma_diagnostic_unknown_warning)
1016 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer,
1023 PPCallbacks *Callbacks = PP.getPPCallbacks();
1025 PP.Lex(Tok);
1027 PP.Diag(Tok, diag::warn_pragma_warning_expected) << "(";
1031 PP.Lex(Tok);
1034 PP.Diag(Tok, diag::warn_pragma_warning_spec_invalid);
1041 PP.Lex(Tok);
1043 PP.Lex(Tok);
1046 PP.parseSimpleIntegerLiteral(Tok, Value))
1049 PP.Diag(Tok, diag::warn_pragma_warning_push_level);
1057 PP.Lex(Tok);
1066 PP.Diag(Tok, diag::warn_pragma_warning_spec_invalid);
1078 PP.Diag(Tok, diag::warn_pragma_warning_spec_invalid);
1081 PP.Lex(Tok);
1083 PP.Diag(Tok, diag::warn_pragma_warning_expected) << ":";
1089 PP.Lex(Tok);
1092 if (!PP.parseSimpleIntegerLiteral(Tok, Value) || Value == 0 ||
1094 PP.Diag(Tok, diag::warn_pragma_warning_expected_number);
1105 PP.Lex(Tok);
1110 PP.Diag(Tok, diag::warn_pragma_warning_expected) << ")";
1114 PP.Lex(Tok);
1116 PP.Diag(Tok, diag::ext_pp_extra_tokens_at_eol) << "pragma warning";
1123 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer,
1125 PP.HandlePragmaIncludeAlias(IncludeAliasTok);
1165 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer,
1168 PP.Lex(Tok);
1175 PP.Lex(Tok);
1181 PP.Diag(MessageLoc, diag::err_pragma_message_malformed) << Kind;
1186 if (!PP.FinishLexStringLiteral(Tok, MessageString, PragmaKind(Kind),
1192 PP.Diag(Tok.getLocation(), diag::err_pragma_message_malformed) << Kind;
1195 PP.Lex(Tok); // eat the r_paren.
1199 PP.Diag(Tok.getLocation(), diag::err_pragma_message_malformed) << Kind;
1204 PP.Diag(MessageLoc, (Kind == PPCallbacks::PMK_Error)
1209 if (PPCallbacks *Callbacks = PP.getPPCallbacks())
1218 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer,
1220 PP.HandlePragmaPushMacro(PushMacroTok);
1229 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer,
1231 PP.HandlePragmaPopMacro(PopMacroTok);
1240 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer,
1243 if (PP.LexOnOffSwitch(OOS))
1246 PP.Diag(Tok, diag::warn_stdc_fenv_access_not_supported);
1254 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer,
1257 PP.LexOnOffSwitch(OOS);
1264 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer,
1267 PP.Diag(UnknownTok, diag::ext_stdc_pragma_ignored);
1275 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer,
1283 PP.LexUnexpandedToken(Tok);
1290 PP.Diag(Tok.getLocation(), diag::err_pp_arc_cf_code_audited_syntax);
1295 PP.LexUnexpandedToken(Tok);
1297 PP.Diag(Tok, diag::ext_pp_extra_tokens_at_eol) << "pragma";
1300 SourceLocation BeginLoc = PP.getPragmaARCCFCodeAuditedLoc();
1308 PP.Diag(Loc, diag::err_pp_double_begin_of_arc_cf_code_audited);
1309 PP.Diag(BeginLoc, diag::note_pragma_entered_here);
1315 PP.Diag(Loc, diag::err_pp_unmatched_end_of_arc_cf_code_audited);
1321 PP.setPragmaARCCFCodeAuditedLoc(NewLoc);
1339 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer,