Lines Matching refs:diag

155     return Diag(MacroNameTok, diag::err_pp_missing_macro_name);  in CheckMacroName()
162 return Diag(MacroNameTok, diag::err_pp_macro_not_identifier); in CheckMacroName()
166 return Diag(MacroNameTok, diag::err_pp_macro_not_identifier); in CheckMacroName()
171 ? diag::ext_pp_operator_used_as_macro_name in CheckMacroName()
172 : diag::err_pp_operator_used_as_macro_name) in CheckMacroName()
182 return Diag(MacroNameTok, diag::err_defined_macro_name); in CheckMacroName()
189 Diag(MacroNameTok, diag::ext_pp_undef_builtin_macro); in CheckMacroName()
213 Diag(MacroNameTok, diag::warn_pp_macro_is_reserved_id); in CheckMacroName()
280 Diag(Tmp, diag::ext_pp_extra_tokens_at_eol) << DirType << Hint; in CheckEndOfDirective()
331 diag::err_pp_unterminated_conditional); in SkipExcludedConditionalBlock()
439 if (CondInfo.FoundElse) Diag(Tok, diag::pp_err_else_after_else); in SkipExcludedConditionalBlock()
463 if (CondInfo.FoundElse) Diag(Tok, diag::pp_err_elif_after_else); in SkipExcludedConditionalBlock()
564 Diag(Tok, diag::pp_err_elif_after_else); in PTHSkipExcludedConditionalBlock()
802 Diag(Result, diag::err_embedded_directive) << II->getName(); in HandleDirective()
809 Diag(Result, diag::ext_embedded_directive); in HandleDirective()
883 Diag(Result, diag::ext_pp_warning_directive); in HandleDirective()
932 Diag(Result, diag::err_pp_invalid_directive); in HandleDirective()
973 diag::err_pp_line_digit_sequence) << IsGNULineDirective; in GetLineValue()
988 PP.Diag(DigitTok.getLocation(), diag::warn_pp_line_decimal) in GetLineValue()
1009 if (GetLineValue(DigitTok, LineNo, diag::err_pp_line_requires_integer,*this)) in HandleLineDirective()
1013 Diag(DigitTok, diag::ext_pp_line_zero); in HandleLineDirective()
1021 Diag(DigitTok, diag::ext_pp_line_too_big) << LineLimit; in HandleLineDirective()
1023 Diag(DigitTok, diag::warn_cxx98_compat_pp_line_too_big); in HandleLineDirective()
1034 Diag(StrTok, diag::err_pp_line_invalid_filename); in HandleLineDirective()
1037 Diag(StrTok, diag::err_invalid_string_udl); in HandleLineDirective()
1046 Diag(StrTok, diag::err_pp_linemarker_invalid_filename); in HandleLineDirective()
1073 if (GetLineValue(FlagTok, FlagVal, diag::err_pp_linemarker_invalid_flag, PP)) in ReadLineMarkerFlags()
1081 if (GetLineValue(FlagTok, FlagVal, diag::err_pp_linemarker_invalid_flag,PP)) in ReadLineMarkerFlags()
1100 PP.Diag(FlagTok, diag::err_pp_linemarker_invalid_pop); in ReadLineMarkerFlags()
1107 if (GetLineValue(FlagTok, FlagVal, diag::err_pp_linemarker_invalid_flag,PP)) in ReadLineMarkerFlags()
1113 PP.Diag(FlagTok, diag::err_pp_linemarker_invalid_flag); in ReadLineMarkerFlags()
1122 if (GetLineValue(FlagTok, FlagVal, diag::err_pp_linemarker_invalid_flag, PP)) in ReadLineMarkerFlags()
1127 PP.Diag(FlagTok, diag::err_pp_linemarker_invalid_flag); in ReadLineMarkerFlags()
1138 PP.Diag(FlagTok, diag::err_pp_linemarker_invalid_flag); in ReadLineMarkerFlags()
1154 if (GetLineValue(DigitTok, LineNo, diag::err_pp_linemarker_requires_integer, in HandleDigitDirective()
1170 Diag(StrTok, diag::err_pp_linemarker_invalid_filename); in HandleDigitDirective()
1173 Diag(StrTok, diag::err_invalid_string_udl); in HandleDigitDirective()
1182 Diag(StrTok, diag::err_pp_linemarker_invalid_filename); in HandleDigitDirective()
1239 Diag(Tok, diag::pp_hash_warning) << Msg; in HandleUserDiagnosticDirective()
1241 Diag(Tok, diag::err_pp_hash_error) << Msg; in HandleUserDiagnosticDirective()
1248 Diag(Tok, diag::ext_pp_ident_directive); in HandleIdentSCCSDirective()
1257 Diag(StrTok, diag::err_pp_malformed_ident); in HandleIdentSCCSDirective()
1264 Diag(StrTok, diag::err_invalid_string_udl); in HandleIdentSCCSDirective()
1297 Diag(MacroNameTok, diag::err_pp_visibility_non_macro) << II; in HandleMacroPublicDirective()
1324 Diag(MacroNameTok, diag::err_pp_visibility_non_macro) << II; in HandleMacroPrivateDirective()
1352 Diag(Loc, diag::err_pp_expects_filename); in GetIncludeFilenameSpelling()
1359 Diag(Loc, diag::err_pp_expects_filename); in GetIncludeFilenameSpelling()
1365 Diag(Loc, diag::err_pp_expects_filename); in GetIncludeFilenameSpelling()
1372 Diag(Loc, diag::err_pp_empty_filename); in GetIncludeFilenameSpelling()
1439 Diag(CurTok.getLocation(), diag::err_pp_expects_filename); in ConcatenateIncludeName()
1498 Diag(FilenameTok.getLocation(), diag::err_pp_expects_filename); in HandleIncludeDirective()
1523 Diag(FilenameTok, diag::err_pp_include_too_deep); in HandleIncludeDirective()
1529 Diag(HashLoc, diag::err_pp_include_in_arc_cf_code_audited); in HandleIncludeDirective()
1530 Diag(PragmaARCCFCodeAuditedLoc, diag::note_pragma_entered_here); in HandleIncludeDirective()
1614 Diag(FilenameTok, diag::err_pp_file_not_found_not_fatal) << in HandleIncludeDirective()
1621 Diag(FilenameTok, diag::err_pp_file_not_found) << Filename; in HandleIncludeDirective()
1682 Diag(HashLoc, diag::warn_auto_module_import) in HandleIncludeDirective()
1799 Diag(IncludeNextTok, diag::ext_pp_include_next_directive); in HandleIncludeNextDirective()
1808 Diag(IncludeNextTok, diag::pp_include_next_in_primary); in HandleIncludeNextDirective()
1816 Diag(IncludeNextTok, diag::pp_include_next_absolute_path); in HandleIncludeNextDirective()
1833 Diag(Tok, diag::err_pp_import_directive_ms ); in HandleMicrosoftImportDirective()
1847 Diag(ImportTok, diag::ext_pp_import_directive); in HandleImportDirective()
1863 diag::pp_include_macros_out_of_predefines); in HandleIncludeMacrosDirective()
1898 Diag(Tok, diag::err_pp_expected_ident_in_arg_list); in ReadMacroDefinitionArgList()
1903 diag::warn_cxx98_compat_variadic_macro : in ReadMacroDefinitionArgList()
1904 diag::ext_variadic_macro); in ReadMacroDefinitionArgList()
1908 Diag(Tok, diag::err_pp_opencl_variadic_macros); in ReadMacroDefinitionArgList()
1915 Diag(Tok, diag::err_pp_missing_rparen_in_macro_def); in ReadMacroDefinitionArgList()
1924 Diag(Tok, diag::err_pp_missing_rparen_in_macro_def); in ReadMacroDefinitionArgList()
1932 Diag(Tok, diag::err_pp_invalid_tok_in_arg_list); in ReadMacroDefinitionArgList()
1940 Diag(Tok, diag::err_pp_duplicate_name_in_arg_list) << II; in ReadMacroDefinitionArgList()
1952 Diag(Tok, diag::err_pp_expected_comma_in_arg_list); in ReadMacroDefinitionArgList()
1961 Diag(Tok, diag::ext_named_variadic_macro); in ReadMacroDefinitionArgList()
1966 Diag(Tok, diag::err_pp_missing_rparen_in_macro_def); in ReadMacroDefinitionArgList()
2088 Diag(Tok, diag::ext_c99_whitespace_required_after_macro_name); in HandleDefineDirective()
2106 Diag(Tok, diag::ext_missing_whitespace_after_macro_name); in HandleDefineDirective()
2108 Diag(Tok, diag::warn_missing_whitespace_after_macro_name); in HandleDefineDirective()
2191 Diag(Tok, diag::err_pp_stringize_not_parameter); in HandleDefineDirective()
2211 Diag(MacroNameTok, diag::warn_pp_macro_hides_keyword); in HandleDefineDirective()
2222 Diag(MI->getReplacementToken(0), diag::err_paste_at_start); in HandleDefineDirective()
2226 Diag(MI->getReplacementToken(NumTokens-1), diag::err_paste_at_end); in HandleDefineDirective()
2242 Diag(OtherMI->getDefinitionLoc(), diag::pp_macro_not_used); in HandleDefineDirective()
2247 Diag(MacroNameTok, diag::ext_pp_redef_builtin_macro); in HandleDefineDirective()
2252 Diag(MI->getDefinitionLoc(), diag::ext_pp_macro_redef) in HandleDefineDirective()
2254 Diag(OtherMI->getDefinitionLoc(), diag::note_previous_definition); in HandleDefineDirective()
2268 !Diags->isIgnored(diag::pp_macro_not_used, MI->getDefinitionLoc())) { in HandleDefineDirective()
2307 Diag(MI->getDefinitionLoc(), diag::pp_macro_not_used); in HandleUndefDirective()
2437 Diag(EndifToken, diag::err_pp_endif_without_if); in HandleEndifDirective()
2462 Diag(Result, diag::pp_err_else_without_if); in HandleElseDirective()
2471 if (CI.FoundElse) Diag(Result, diag::pp_err_else_after_else); in HandleElseDirective()
2495 Diag(ElifToken, diag::pp_err_elif_without_if); in HandleElifDirective()
2504 if (CI.FoundElse) Diag(ElifToken, diag::pp_err_elif_after_else); in HandleElifDirective()