1 //==--- DiagnosticCommonKinds.td - common diagnostics ---------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 //===----------------------------------------------------------------------===//
12 //===----------------------------------------------------------------------===//
14 let Component = "Common" in {
18 def fatal_too_many_errors
19 : Error<"too many errors emitted, stopping now">, DefaultFatal;
21 def note_previous_definition : Note<"previous definition is here">;
22 def note_previous_declaration : Note<"previous declaration is here">;
23 def note_previous_implicit_declaration : Note<
24 "previous implicit declaration is here">;
25 def note_previous_use : Note<"previous use is here">;
26 def note_duplicate_case_prev : Note<"previous case defined here">;
27 def note_forward_declaration : Note<"forward declaration of %0">;
28 def note_type_being_defined : Note<
29 "definition of %0 is not complete until the closing '}'">;
30 /// note_matching - this is used as a continuation of a previous diagnostic,
31 /// e.g. to specify the '(' when we expected a ')'.
32 def note_matching : Note<"to match this '%0'">;
34 def note_using : Note<"using">;
35 def note_also_found : Note<"also found">;
38 def err_expected_colon : Error<"expected ':'">;
39 def err_expected_colon_after_setter_name : Error<
40 "method name referenced in property setter attribute "
44 def ext_no_declarators : ExtWarn<"declaration does not declare anything">,
45 InGroup<MissingDeclarations>;
46 def err_param_redefinition : Error<"redefinition of parameter %0">;
47 def err_invalid_storage_class_in_func_decl : Error<
48 "invalid storage class specifier in function declarator">;
49 def err_expected_namespace_name : Error<"expected namespace name">;
52 def ext_longlong : Extension<
53 "'long long' is an extension when C99 mode is not enabled">,
55 def warn_integer_too_large : Warning<
56 "integer constant is too large for its type">;
57 def warn_integer_too_large_for_signed : Warning<
58 "integer constant is so large that it is unsigned">;
61 def note_invalid_subexpr_in_ice : Note<
62 "subexpression not valid in an integer constant expression">;
66 def err_target_unknown_triple : Error<
67 "unknown target triple '%0', please use -triple or -arch">;
68 def err_target_unknown_cpu : Error<"unknown target CPU '%0'">;
69 def err_target_unknown_abi : Error<"unknown target ABI '%0'">;
70 def err_target_unknown_cxxabi : Error<"unknown C++ ABI '%0'">;
71 def err_target_invalid_feature : Error<"invalid target feature '%0'">;
74 def err_cannot_open_file : Error<"cannot open file '%0': %1">, DefaultFatal;
75 def err_file_modified : Error<
76 "file '%0' modified since it was first processed">, DefaultFatal;
77 def err_unsupported_bom : Error<"%0 byte order mark detected in '%1', but "
78 "encoding is not supported">, DefaultFatal;