DiagnosticFrontendKinds.td revision 243830
1//==--- DiagnosticFrontendKinds.td - frontend diagnostics -----------------===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// 9 10let Component = "Frontend" in { 11 12def err_fe_error_opening : Error<"error opening '%0': %1">; 13def err_fe_error_reading : Error<"error reading '%0'">; 14def err_fe_error_reading_stdin : Error<"error reading stdin">; 15def err_fe_error_backend : Error<"error in backend: %0">, DefaultFatal; 16 17// Error generated by the backend. 18def err_fe_inline_asm : Error<"%0">, CatInlineAsm; 19def note_fe_inline_asm_here : Note<"instantiated into assembly here">; 20def err_fe_cannot_link_module : Error<"cannot link module '%0': %1">, 21 DefaultFatal; 22 23 24 25def err_fe_invalid_code_complete_file : Error< 26 "cannot locate code-completion file %0">, DefaultFatal; 27def err_fe_stdout_binary : Error<"unable to change standard output to binary">, 28 DefaultFatal; 29def err_fe_dependency_file_requires_MT : Error< 30 "-dependency-file requires at least one -MT or -MQ option">; 31def err_fe_invalid_plugin_name : Error< 32 "unable to find plugin '%0'">; 33def err_fe_expected_compiler_job : Error< 34 "unable to handle compilation, expected exactly one compiler job in '%0'">; 35def err_fe_expected_clang_command : Error< 36 "expected a clang compiler command">; 37def err_fe_remap_missing_to_file : Error< 38 "could not remap file '%0' to the contents of file '%1'">, DefaultFatal; 39def err_fe_remap_missing_from_file : Error< 40 "could not remap from missing file '%0'">, DefaultFatal; 41def err_fe_unable_to_load_pch : Error< 42 "unable to load PCH file">; 43def err_fe_unable_to_load_plugin : Error< 44 "unable to load plugin '%0': '%1'">; 45def err_fe_unable_to_create_target : Error< 46 "unable to create target: '%0'">; 47def err_fe_unable_to_interface_with_target : Error< 48 "unable to interface with target machine">; 49def err_fe_unable_to_open_output : Error< 50 "unable to open output file '%0': '%1'">; 51def err_fe_unable_to_open_logfile : Error< 52 "unable to open logfile file '%0': '%1'">; 53def err_fe_pth_file_has_no_source_header : Error< 54 "PTH file '%0' does not designate an original source header file for -include-pth">; 55def warn_fe_macro_contains_embedded_newline : Warning< 56 "macro '%0' contains embedded newline; text after the newline is ignored">; 57def warn_fe_cc_print_header_failure : Warning< 58 "unable to open CC_PRINT_HEADERS file: %0 (using stderr)">; 59def warn_fe_cc_log_diagnostics_failure : Warning< 60 "unable to open CC_LOG_DIAGNOSTICS file: %0 (using stderr)">; 61def err_fe_no_pch_in_dir : Error< 62 "no suitable precompiled header file found in directory '%0'">; 63 64def warn_fe_serialized_diag_failure : Warning< 65 "unable to open file %0 for serializing diagnostics (%1)">, 66 InGroup<DiagGroup<"serialized-diagnostics">>; 67 68def err_verify_missing_line : Error< 69 "missing or invalid line number following '@' in expected %0">; 70def err_verify_invalid_range : Error< 71 "invalid range following '-' in expected %0">; 72def err_verify_missing_start : Error< 73 "cannot find start ('{{') of expected %0">; 74def err_verify_missing_end : Error< 75 "cannot find end ('}}') of expected %0">; 76def err_verify_invalid_content : Error< 77 "invalid expected %0: %1">; 78def err_verify_inconsistent_diags : Error< 79 "'%0' diagnostics %select{expected|seen}1 but not %select{seen|expected}1: " 80 "%2">; 81def err_verify_invalid_no_diags : Error< 82 "%select{expected|'expected-no-diagnostics'}0 directive cannot follow " 83 "%select{'expected-no-diagnostics' directive|other expected directives}0">; 84def err_verify_no_directives : Error< 85 "no expected directives found: consider use of 'expected-no-diagnostics'">; 86 87def note_fixit_applied : Note<"FIX-IT applied suggested code changes">; 88def note_fixit_in_macro : Note< 89 "FIX-IT unable to apply suggested code changes in a macro">; 90def note_fixit_failed : Note< 91 "FIX-IT unable to apply suggested code changes">; 92def note_fixit_unfixed_error : Note<"FIX-IT detected an error it cannot fix">; 93def warn_fixit_no_changes : Note< 94 "FIX-IT detected errors it could not fix; no output will be generated">; 95 96// PCH reader 97def err_relocatable_without_isysroot : Error< 98 "must specify system root with -isysroot when building a relocatable " 99 "PCH file">; 100 101def warn_unknown_warning_option : Warning< 102 "unknown warning option '%0'">, 103 InGroup<DiagGroup<"unknown-warning-option"> >; 104def warn_unknown_negative_warning_option : Warning< 105 "unknown warning option '%0'">, 106 InGroup<DiagGroup<"unknown-warning-option"> >; 107def warn_unknown_warning_option_suggest : Warning< 108 "unknown warning option '%0'; did you mean '%1'?">, 109 InGroup<DiagGroup<"unknown-warning-option"> >; 110def warn_unknown_negative_warning_option_suggest : Warning< 111 "unknown warning option '%0'; did you mean '%1'?">, 112 InGroup<DiagGroup<"unknown-warning-option"> >; 113def warn_unknown_warning_specifier : Warning< 114 "unknown %0 warning specifier: '%1'">, 115 InGroup<DiagGroup<"unknown-warning-option"> >; 116 117def err_unknown_analyzer_checker : Error< 118 "no analyzer checkers are associated with '%0'">; 119def warn_incompatible_analyzer_plugin_api : Warning< 120 "checker plugin '%0' is not compatible with this version of the analyzer">, 121 InGroup<DiagGroup<"analyzer-incompatible-plugin"> >; 122def note_incompatible_analyzer_plugin_api : Note< 123 "current API version is '%0', but plugin was compiled with version '%1'">; 124 125def err_module_map_not_found : Error<"module map file '%0' not found">, 126 DefaultFatal; 127def err_missing_module_name : Error< 128 "no module name provided; specify one with -fmodule-name=">, 129 DefaultFatal; 130def err_missing_module : Error< 131 "no module named '%0' declared in module map file '%1'">, DefaultFatal; 132def err_missing_umbrella_header : Error< 133 "cannot open umbrella header '%0': %1">, DefaultFatal; 134def err_no_submodule : Error<"no submodule named %0 in module '%1'">; 135def err_no_submodule_suggest : Error< 136 "no submodule named %0 in module '%1'; did you mean '%2'?">; 137def warn_missing_submodule : Warning<"missing submodule '%0'">, 138 InGroup<IncompleteUmbrella>; 139def err_module_map_temp_file : Error< 140 "unable to write temporary module map file '%0'">, DefaultFatal; 141def err_module_unavailable : Error<"module '%0' requires feature '%1'">; 142 143} 144