DiagnosticFrontendKinds.td revision 239462
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)">; 61 62def warn_fe_serialized_diag_failure : Warning< 63 "unable to open file %0 for serializing diagnostics (%1)">, 64 InGroup<DiagGroup<"serialized-diagnostics">>; 65 66def err_verify_missing_line : Error< 67 "missing or invalid line number following '@' in expected %0">; 68def err_verify_invalid_range : Error< 69 "invalid range following '-' in expected %0">; 70def err_verify_missing_start : Error< 71 "cannot find start ('{{') of expected %0">; 72def err_verify_missing_end : Error< 73 "cannot find end ('}}') of expected %0">; 74def err_verify_invalid_content : Error< 75 "invalid expected %0: %1">; 76def err_verify_inconsistent_diags : Error< 77 "'%0' diagnostics %select{expected|seen}1 but not %select{seen|expected}1: " 78 "%2">; 79 80def note_fixit_applied : Note<"FIX-IT applied suggested code changes">; 81def note_fixit_in_macro : Note< 82 "FIX-IT unable to apply suggested code changes in a macro">; 83def note_fixit_failed : Note< 84 "FIX-IT unable to apply suggested code changes">; 85def note_fixit_unfixed_error : Note<"FIX-IT detected an error it cannot fix">; 86def warn_fixit_no_changes : Note< 87 "FIX-IT detected errors it could not fix; no output will be generated">; 88 89// PCH reader 90def err_relocatable_without_isysroot : Error< 91 "must specify system root with -isysroot when building a relocatable " 92 "PCH file">; 93 94def warn_unknown_warning_option : Warning< 95 "unknown warning option '%0'">, 96 InGroup<DiagGroup<"unknown-warning-option"> >; 97def warn_unknown_negative_warning_option : Warning< 98 "unknown warning option '%0'">, 99 InGroup<DiagGroup<"unknown-warning-option"> >; 100def warn_unknown_warning_option_suggest : Warning< 101 "unknown warning option '%0'; did you mean '%1'?">, 102 InGroup<DiagGroup<"unknown-warning-option"> >; 103def warn_unknown_negative_warning_option_suggest : Warning< 104 "unknown warning option '%0'; did you mean '%1'?">, 105 InGroup<DiagGroup<"unknown-warning-option"> >; 106def warn_unknown_warning_specifier : Warning< 107 "unknown %0 warning specifier: '%1'">, 108 InGroup<DiagGroup<"unknown-warning-option"> >; 109 110def err_unknown_analyzer_checker : Error< 111 "no analyzer checkers are associated with '%0'">; 112def warn_incompatible_analyzer_plugin_api : Warning< 113 "checker plugin '%0' is not compatible with this version of the analyzer">, 114 InGroup<DiagGroup<"analyzer-incompatible-plugin"> >; 115def note_incompatible_analyzer_plugin_api : Note< 116 "current API version is '%0', but plugin was compiled with version '%1'">; 117 118def err_module_map_not_found : Error<"module map file '%0' not found">, 119 DefaultFatal; 120def err_missing_module_name : Error< 121 "no module name provided; specify one with -fmodule-name=">, 122 DefaultFatal; 123def err_missing_module : Error< 124 "no module named '%0' declared in module map file '%1'">, DefaultFatal; 125def err_missing_umbrella_header : Error< 126 "cannot open umbrella header '%0': %1">, DefaultFatal; 127def err_no_submodule : Error<"no submodule named %0 in module '%1'">; 128def err_no_submodule_suggest : Error< 129 "no submodule named %0 in module '%1'; did you mean '%2'?">; 130def warn_missing_submodule : Warning<"missing submodule '%0'">, 131 InGroup<IncompleteUmbrella>; 132def err_module_map_temp_file : Error< 133 "unable to write temporary module map file '%0'">, DefaultFatal; 134def err_module_unavailable : Error<"module '%0' requires feature '%1'">; 135 136} 137