Lines Matching refs:diag
90 PP.Diag(Tok, diag::warn_pragma_ignored); in HandlePragma()
185 Diag(PragmaLoc, diag::err__Pragma_malformed); in Handle_Pragma()
192 Diag(PragmaLoc, diag::err__Pragma_malformed); in Handle_Pragma()
202 Diag(Tok, diag::err_invalid_string_udl); in Handle_Pragma()
216 Diag(PragmaLoc, diag::err__Pragma_malformed); in Handle_Pragma()
309 Diag(PragmaLoc, diag::err__Pragma_malformed); in HandleMicrosoft__pragma()
327 Diag(PragmaLoc, diag::err_unterminated___pragma); in HandleMicrosoft__pragma()
353 Diag(OnceTok, diag::pp_pragma_once_in_main_file); in HandlePragmaOnce()
391 Diag(Tok, diag::err_pp_invalid_poison); in HandlePragmaPoison()
404 Diag(Tok, diag::pp_poisoning_existing_macro); in HandlePragmaPoison()
417 Diag(SysHeaderTok, diag::pp_pragma_sysheader_in_main_file); in HandlePragmaSystemHeader()
478 Diag(FilenameTok, diag::err_pp_file_not_found) << Filename; in HandlePragmaDependency()
497 Diag(FilenameTok, diag::pp_out_of_date_dependency) << Message; in HandlePragmaDependency()
510 Diag(PragmaTok.getLocation(), diag::err_pragma_push_pop_macro_malformed) in ParsePragmaPushOrPopMacro()
518 Diag(PragmaTok.getLocation(), diag::err_pragma_push_pop_macro_malformed) in ParsePragmaPushOrPopMacro()
524 Diag(Tok, diag::err_invalid_string_udl); in ParsePragmaPushOrPopMacro()
534 Diag(PragmaTok.getLocation(), diag::err_pragma_push_pop_macro_malformed) in ParsePragmaPushOrPopMacro()
614 Diag(MessageLoc, diag::warn_pragma_pop_macro_no_push) in HandlePragmaPopMacro()
628 Diag(Tok, diag::warn_pragma_include_alias_expected) << "("; in HandlePragmaIncludeAlias()
653 Diag(Tok, diag::warn_pragma_include_alias_expected_filename); in HandlePragmaIncludeAlias()
661 Diag(Tok, diag::warn_pragma_include_alias_expected) << ","; in HandlePragmaIncludeAlias()
684 Diag(Tok, diag::warn_pragma_include_alias_expected_filename); in HandlePragmaIncludeAlias()
691 Diag(Tok, diag::warn_pragma_include_alias_expected) << ")"; in HandlePragmaIncludeAlias()
709 DiagID = diag::warn_pragma_include_alias_mismatch_angle; in HandlePragmaIncludeAlias()
711 DiagID = diag::warn_pragma_include_alias_mismatch_quote; in HandlePragmaIncludeAlias()
785 Diag(Tok, diag::ext_on_off_switch_syntax); in LexOnOffSwitch()
796 Diag(Tok, diag::ext_on_off_switch_syntax); in LexOnOffSwitch()
803 Diag(Tok, diag::ext_pragma_syntax_eod); in LexOnOffSwitch()
862 PP.Diag(Tok, diag::warn_pragma_diagnostic_invalid); in HandlePragma()
890 PP.Diag(Tok, diag::warn_pragma_debug_unexpected_command) in HandlePragma()
908 PP.Diag(Tok, diag::ext_pp_extra_tokens_at_eol) in HandleCaptured()
950 PP.Diag(Tok, diag::warn_pragma_diagnostic_invalid); in HandlePragma()
958 PP.Diag(Tok, diag::warn_pragma_diagnostic_cannot_pop); in HandlePragma()
969 diag::Severity SV = llvm::StringSwitch<diag::Severity>(II->getName()) in HandlePragma()
970 .Case("ignored", diag::Severity::Ignored) in HandlePragma()
971 .Case("warning", diag::Severity::Warning) in HandlePragma()
972 .Case("error", diag::Severity::Error) in HandlePragma()
973 .Case("fatal", diag::Severity::Fatal) in HandlePragma()
974 .Default(diag::Severity()); in HandlePragma()
976 if (SV == diag::Severity()) { in HandlePragma()
977 PP.Diag(Tok, diag::warn_pragma_diagnostic_invalid); 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()
1001 WarningName[1] == 'W' ? diag::Flavor::WarningOrError in HandlePragma()
1002 : diag::Flavor::Remark, in HandlePragma()
1004 PP.Diag(StringLoc, diag::warn_pragma_diagnostic_unknown_warning) in HandlePragma()
1028 PP.Diag(Tok, diag::warn_pragma_warning_expected) << "("; in HandlePragma()
1035 PP.Diag(Tok, diag::warn_pragma_warning_spec_invalid); in HandlePragma()
1050 PP.Diag(Tok, diag::warn_pragma_warning_push_level); 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()
1084 PP.Diag(Tok, diag::warn_pragma_warning_expected) << ":"; in HandlePragma()
1095 PP.Diag(Tok, diag::warn_pragma_warning_expected_number); in HandlePragma()
1111 PP.Diag(Tok, diag::warn_pragma_warning_expected) << ")"; in HandlePragma()
1117 PP.Diag(Tok, diag::ext_pp_extra_tokens_at_eol) << "pragma warning"; in HandlePragma()
1182 PP.Diag(MessageLoc, diag::err_pragma_message_malformed) << Kind; in HandlePragma()
1193 PP.Diag(Tok.getLocation(), diag::err_pragma_message_malformed) << Kind; in HandlePragma()
1200 PP.Diag(Tok.getLocation(), diag::err_pragma_message_malformed) << Kind; in HandlePragma()
1206 ? diag::err_pragma_message in HandlePragma()
1207 : diag::warn_pragma_message) << MessageString; in HandlePragma()
1247 PP.Diag(Tok, diag::warn_stdc_fenv_access_not_supported); in HandlePragma()
1268 PP.Diag(UnknownTok, diag::ext_stdc_pragma_ignored); in HandlePragma()
1291 PP.Diag(Tok.getLocation(), diag::err_pp_arc_cf_code_audited_syntax); in HandlePragma()
1298 PP.Diag(Tok, diag::ext_pp_extra_tokens_at_eol) << "pragma"; 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()