]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/tools/clang/include/clang/Basic/DiagnosticCommonKinds.td
Upgrade xz to git snapshot as of 20101010
[FreeBSD/FreeBSD.git] / contrib / llvm / tools / clang / include / clang / Basic / DiagnosticCommonKinds.td
1 //==--- DiagnosticCommonKinds.td - common 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
10 //===----------------------------------------------------------------------===//
11 // Common Helpers
12 //===----------------------------------------------------------------------===//
13
14 let Component = "Common" in {
15
16 // Basic.
17
18 def fatal_too_many_errors
19   : Error<"too many errors emitted, stopping now">, DefaultFatal; 
20
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'">;
33
34 def note_using : Note<"using">;
35 def note_also_found : Note<"also found">;
36
37 // Parse && Lex
38 def err_expected_colon : Error<"expected ':'">;
39 def err_expected_colon_after_setter_name : Error<
40   "method name referenced in property setter attribute "
41   "must end with ':'">;
42
43 // Parse && Sema
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">;
50
51 // Sema && Lex
52 def ext_longlong : Extension<
53   "'long long' is an extension when C99 mode is not enabled">,
54   InGroup<LongLong>;
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">;
59
60 // Sema && AST
61 def note_invalid_subexpr_in_ice : Note<
62   "subexpression not valid in an integer constant expression">;
63
64 // Targets
65
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'">;
72
73 // Source manager
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;
79 }