]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/blob - contrib/llvm/tools/clang/include/clang/Basic/DiagnosticCommonKinds.td
MFC r234353:
[FreeBSD/stable/9.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_declared_at : Note<"declared here">;
22 def note_previous_definition : Note<"previous definition is here">;
23 def note_previous_declaration : Note<"previous declaration is here">;
24 def note_previous_implicit_declaration : Note<
25   "previous implicit declaration is here">;
26 def note_previous_use : Note<"previous use is here">;
27 def note_duplicate_case_prev : Note<"previous case defined here">;
28 def note_forward_declaration : Note<"forward declaration of %0">;
29 def note_type_being_defined : Note<
30   "definition of %0 is not complete until the closing '}'">;
31 /// note_matching - this is used as a continuation of a previous diagnostic,
32 /// e.g. to specify the '(' when we expected a ')'.
33 def note_matching : Note<"to match this '%0'">;
34
35 def note_using : Note<"using">;
36 def note_possibility : Note<"one possibility">;
37 def note_also_found : Note<"also found">;
38
39 // Parse && Lex
40 def err_expected_colon : Error<"expected ':'">;
41 def err_expected_colon_after_setter_name : Error<
42   "method name referenced in property setter attribute "
43   "must end with ':'">;
44 def err_invalid_string_udl : Error<
45   "string literal with user-defined suffix cannot be used here">;
46 def err_invalid_character_udl : Error<
47   "character literal with user-defined suffix cannot be used here">;
48 def err_invalid_numeric_udl : Error<
49   "numeric literal with user-defined suffix cannot be used here">;
50
51 // Parse && Sema
52 def ext_no_declarators : ExtWarn<"declaration does not declare anything">,
53   InGroup<MissingDeclarations>;
54 def err_param_redefinition : Error<"redefinition of parameter %0">;
55 def warn_method_param_redefinition : Warning<"redefinition of method parameter %0">;
56 def warn_method_param_declaration : Warning<"redeclaration of method parameter %0">,
57   InGroup<DuplicateArgDecl>, DefaultIgnore;
58 def err_invalid_storage_class_in_func_decl : Error<
59   "invalid storage class specifier in function declarator">;
60 def err_expected_namespace_name : Error<"expected namespace name">;
61 def ext_variadic_templates : ExtWarn<
62   "variadic templates are a C++11 extension">, InGroup<CXX11>;
63 def warn_cxx98_compat_variadic_templates :
64   Warning<"variadic templates are incompatible with C++98">,
65   InGroup<CXX98Compat>, DefaultIgnore;
66 def err_default_special_members : Error<
67   "only special member functions may be defaulted">;
68 def err_deleted_non_function : Error<
69   "only functions can have deleted definitions">;
70 def err_module_not_found : Error<"module '%0' not found">, DefaultFatal;
71 def err_module_not_built : Error<"could not build module '%0'">, DefaultFatal;
72 def err_module_cycle : Error<"cyclic dependency in module '%0': %1">, 
73   DefaultFatal;
74 def warn_module_build : Warning<"building module '%0' from source">, 
75   InGroup<ModuleBuild>, DefaultIgnore;
76 def note_pragma_entered_here : Note<"#pragma entered here">;  
77
78 // Sema && Lex
79 def ext_longlong : Extension<
80   "'long long' is an extension when C99 mode is not enabled">,
81   InGroup<LongLong>;
82 def warn_cxx98_compat_longlong : Warning<
83   "'long long' is incompatible with C++98">,
84   InGroup<CXX98CompatPedantic>, DefaultIgnore;
85 def warn_integer_too_large : Warning<
86   "integer constant is too large for its type">;
87 def warn_integer_too_large_for_signed : Warning<
88   "integer constant is so large that it is unsigned">;
89
90 // Sema && AST
91 def note_invalid_subexpr_in_const_expr : Note<
92   "subexpression not valid in a constant expression">;
93
94 // Targets
95
96 def err_target_unknown_triple : Error<
97   "unknown target triple '%0', please use -triple or -arch">;
98 def err_target_unknown_cpu : Error<"unknown target CPU '%0'">;
99 def err_target_unknown_abi : Error<"unknown target ABI '%0'">;
100 def err_target_unknown_cxxabi : Error<"unknown C++ ABI '%0'">;
101 def err_target_invalid_feature : Error<"invalid target feature '%0'">;
102
103 // Source manager
104 def err_cannot_open_file : Error<"cannot open file '%0': %1">, DefaultFatal;
105 def err_file_modified : Error<
106   "file '%0' modified since it was first processed">, DefaultFatal;
107 def err_unsupported_bom : Error<"%0 byte order mark detected in '%1', but "
108   "encoding is not supported">, DefaultFatal;
109 }