• Home
  • Raw
  • Download

Lines Matching refs:PP

42 void EmptyPragmaHandler::HandlePragma(Preprocessor &PP,   in HandlePragma()  argument
77 void PragmaNamespace::HandlePragma(Preprocessor &PP, in HandlePragma() argument
82 PP.LexUnexpandedToken(Tok); in HandlePragma()
90 PP.Diag(Tok, diag::warn_pragma_ignored); in HandlePragma()
95 Handler->HandlePragma(PP, Introducer, Tok); in HandlePragma()
127 Preprocessor &PP; member in __anon996c56cc0111::LexingFor_PragmaRAII
134 LexingFor_PragmaRAII(Preprocessor &PP, bool InMacroArgPreExpansion, in LexingFor_PragmaRAII() argument
136 : PP(PP), InMacroArgPreExpansion(InMacroArgPreExpansion), in LexingFor_PragmaRAII()
140 PP.EnableBacktrackAtThisPos(); in LexingFor_PragmaRAII()
147 PP.CommitBacktrackedTokens(); in ~LexingFor_PragmaRAII()
149 PP.Backtrack(); in ~LexingFor_PragmaRAII()
811 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, in HandlePragma()
813 PP.CheckEndOfDirective("pragma once"); in HandlePragma()
814 PP.HandlePragmaOnce(OnceTok); in HandlePragma()
822 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, in HandlePragma()
824 PP.HandlePragmaMark(); in HandlePragma()
831 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, in HandlePragma()
833 PP.HandlePragmaPoison(PoisonTok); in HandlePragma()
841 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, in HandlePragma()
843 PP.HandlePragmaSystemHeader(SHToken); in HandlePragma()
844 PP.CheckEndOfDirective("pragma"); in HandlePragma()
849 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, in HandlePragma()
851 PP.HandlePragmaDependency(DepToken); in HandlePragma()
857 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, in HandlePragma()
860 PP.LexUnexpandedToken(Tok); in HandlePragma()
862 PP.Diag(Tok, diag::warn_pragma_diagnostic_invalid); in HandlePragma()
876 PP.EnterToken(Crasher); in HandlePragma()
888 HandleCaptured(PP); in HandlePragma()
890 PP.Diag(Tok, diag::warn_pragma_debug_unexpected_command) in HandlePragma()
894 PPCallbacks *Callbacks = PP.getPPCallbacks(); in HandlePragma()
899 void HandleCaptured(Preprocessor &PP) { in HandleCaptured()
901 if (PP.isPreprocessedOutput()) in HandleCaptured()
905 PP.LexUnexpandedToken(Tok); in HandleCaptured()
908 PP.Diag(Tok, diag::ext_pp_extra_tokens_at_eol) in HandleCaptured()
914 Token *Toks = PP.getPreprocessorAllocator().Allocate<Token>(1); in HandleCaptured()
919 PP.EnterTokenStream(Toks, 1, /*DisableMacroExpansion=*/true, in HandleCaptured()
944 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, in HandlePragma()
948 PP.LexUnexpandedToken(Tok); in HandlePragma()
950 PP.Diag(Tok, diag::warn_pragma_diagnostic_invalid); in HandlePragma()
954 PPCallbacks *Callbacks = PP.getPPCallbacks(); in HandlePragma()
957 if (!PP.getDiagnostics().popMappings(DiagLoc)) in HandlePragma()
958 PP.Diag(Tok, diag::warn_pragma_diagnostic_cannot_pop); in HandlePragma()
963 PP.getDiagnostics().pushMappings(DiagLoc); in HandlePragma()
977 PP.Diag(Tok, diag::warn_pragma_diagnostic_invalid); in HandlePragma()
981 PP.LexUnexpandedToken(Tok); in HandlePragma()
985 if (!PP.FinishLexStringLiteral(Tok, WarningName, "pragma diagnostic", in HandlePragma()
990 PP.Diag(Tok.getLocation(), diag::warn_pragma_diagnostic_invalid_token); in HandlePragma()
996 PP.Diag(StringLoc, diag::warn_pragma_diagnostic_invalid_option); in HandlePragma()
1000 if (PP.getDiagnostics().setSeverityForGroup( in HandlePragma()
1004 PP.Diag(StringLoc, diag::warn_pragma_diagnostic_unknown_warning) in HandlePragma()
1017 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, in HandlePragma()
1024 PPCallbacks *Callbacks = PP.getPPCallbacks(); in HandlePragma()
1026 PP.Lex(Tok); in HandlePragma()
1028 PP.Diag(Tok, diag::warn_pragma_warning_expected) << "("; in HandlePragma()
1032 PP.Lex(Tok); in HandlePragma()
1035 PP.Diag(Tok, diag::warn_pragma_warning_spec_invalid); in HandlePragma()
1042 PP.Lex(Tok); in HandlePragma()
1044 PP.Lex(Tok); in HandlePragma()
1047 PP.parseSimpleIntegerLiteral(Tok, Value)) in HandlePragma()
1050 PP.Diag(Tok, diag::warn_pragma_warning_push_level); in HandlePragma()
1058 PP.Lex(Tok); in HandlePragma()
1067 PP.Diag(Tok, diag::warn_pragma_warning_spec_invalid); in HandlePragma()
1079 PP.Diag(Tok, diag::warn_pragma_warning_spec_invalid); in HandlePragma()
1082 PP.Lex(Tok); in HandlePragma()
1084 PP.Diag(Tok, diag::warn_pragma_warning_expected) << ":"; in HandlePragma()
1090 PP.Lex(Tok); in HandlePragma()
1093 if (!PP.parseSimpleIntegerLiteral(Tok, Value) || Value == 0 || in HandlePragma()
1095 PP.Diag(Tok, diag::warn_pragma_warning_expected_number); in HandlePragma()
1106 PP.Lex(Tok); in HandlePragma()
1111 PP.Diag(Tok, diag::warn_pragma_warning_expected) << ")"; in HandlePragma()
1115 PP.Lex(Tok); in HandlePragma()
1117 PP.Diag(Tok, diag::ext_pp_extra_tokens_at_eol) << "pragma warning"; in HandlePragma()
1124 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, in HandlePragma()
1126 PP.HandlePragmaIncludeAlias(IncludeAliasTok); in HandlePragma()
1166 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, in HandlePragma()
1169 PP.Lex(Tok); in HandlePragma()
1176 PP.Lex(Tok); in HandlePragma()
1182 PP.Diag(MessageLoc, diag::err_pragma_message_malformed) << Kind; in HandlePragma()
1187 if (!PP.FinishLexStringLiteral(Tok, MessageString, PragmaKind(Kind), in HandlePragma()
1193 PP.Diag(Tok.getLocation(), diag::err_pragma_message_malformed) << Kind; in HandlePragma()
1196 PP.Lex(Tok); // eat the r_paren. in HandlePragma()
1200 PP.Diag(Tok.getLocation(), diag::err_pragma_message_malformed) << Kind; in HandlePragma()
1205 PP.Diag(MessageLoc, (Kind == PPCallbacks::PMK_Error) in HandlePragma()
1210 if (PPCallbacks *Callbacks = PP.getPPCallbacks()) in HandlePragma()
1219 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, in HandlePragma()
1221 PP.HandlePragmaPushMacro(PushMacroTok); in HandlePragma()
1230 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, in HandlePragma()
1232 PP.HandlePragmaPopMacro(PopMacroTok); in HandlePragma()
1241 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, in HandlePragma()
1244 if (PP.LexOnOffSwitch(OOS)) in HandlePragma()
1247 PP.Diag(Tok, diag::warn_stdc_fenv_access_not_supported); in HandlePragma()
1255 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, in HandlePragma()
1258 PP.LexOnOffSwitch(OOS); in HandlePragma()
1265 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, in HandlePragma()
1268 PP.Diag(UnknownTok, diag::ext_stdc_pragma_ignored); in HandlePragma()
1276 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, in HandlePragma()
1284 PP.LexUnexpandedToken(Tok); in HandlePragma()
1291 PP.Diag(Tok.getLocation(), diag::err_pp_arc_cf_code_audited_syntax); in HandlePragma()
1296 PP.LexUnexpandedToken(Tok); in HandlePragma()
1298 PP.Diag(Tok, diag::ext_pp_extra_tokens_at_eol) << "pragma"; in HandlePragma()
1301 SourceLocation BeginLoc = PP.getPragmaARCCFCodeAuditedLoc(); in HandlePragma()
1309 PP.Diag(Loc, diag::err_pp_double_begin_of_arc_cf_code_audited); in HandlePragma()
1310 PP.Diag(BeginLoc, diag::note_pragma_entered_here); in HandlePragma()
1316 PP.Diag(Loc, diag::err_pp_unmatched_end_of_arc_cf_code_audited); in HandlePragma()
1322 PP.setPragmaARCCFCodeAuditedLoc(NewLoc); in HandlePragma()
1340 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, in HandlePragma()