]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - contrib/llvm/tools/clang/include/clang/Basic/DiagnosticCommonKinds.td
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.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_expected_string_literal : Error<"expected string literal "
45   "%select{in %1|for diagnostic message in static_assert|"
46           "for optional message in 'availability' attribute}0">;
47 def err_invalid_string_udl : Error<
48   "string literal with user-defined suffix cannot be used here">;
49 def err_invalid_character_udl : Error<
50   "character literal with user-defined suffix cannot be used here">;
51 def err_invalid_numeric_udl : Error<
52   "numeric literal with user-defined suffix cannot be used here">;
53
54 // Parse && Sema
55 def err_param_redefinition : Error<"redefinition of parameter %0">;
56 def warn_method_param_redefinition : Warning<"redefinition of method parameter %0">;
57 def warn_method_param_declaration : Warning<"redeclaration of method parameter %0">,
58   InGroup<DuplicateArgDecl>, DefaultIgnore;
59 def err_invalid_storage_class_in_func_decl : Error<
60   "invalid storage class specifier in function declarator">;
61 def err_expected_namespace_name : Error<"expected namespace name">;
62 def ext_variadic_templates : ExtWarn<
63   "variadic templates are a C++11 extension">, InGroup<CXX11>;
64 def warn_cxx98_compat_variadic_templates :
65   Warning<"variadic templates are incompatible with C++98">,
66   InGroup<CXX98Compat>, DefaultIgnore;
67 def err_default_special_members : Error<
68   "only special member functions may be defaulted">;
69 def err_deleted_non_function : Error<
70   "only functions can have deleted definitions">;
71 def err_module_not_found : Error<"module '%0' not found">, DefaultFatal;
72 def err_module_not_built : Error<"could not build module '%0'">, DefaultFatal;
73 def err_module_cycle : Error<"cyclic dependency in module '%0': %1">, 
74   DefaultFatal;
75 def note_pragma_entered_here : Note<"#pragma entered here">;  
76 def note_decl_hiding_tag_type : Note<
77   "%1 %0 is hidden by a non-type declaration of %0 here">;
78 def err_attribute_not_type_attr : Error<
79   "%0 attribute cannot be applied to types">;
80 def err_enum_template : Error<"enumeration cannot be a template">;
81
82 // Sema && Lex
83 def ext_c99_longlong : Extension<
84   "'long long' is an extension when C99 mode is not enabled">,
85   InGroup<LongLong>;
86 def ext_cxx11_longlong : Extension<
87   "'long long' is a C++11 extension">,
88   InGroup<CXX11LongLong>;
89 def warn_cxx98_compat_longlong : Warning<
90   "'long long' is incompatible with C++98">,
91   InGroup<CXX98CompatPedantic>, DefaultIgnore;
92 def warn_integer_too_large : Warning<
93   "integer constant is too large for its type">;
94 def warn_integer_too_large_for_signed : Warning<
95   "integer constant is so large that it is unsigned">;
96
97 // Sema && AST
98 def note_invalid_subexpr_in_const_expr : Note<
99   "subexpression not valid in a constant expression">;
100
101 // Targets
102
103 def err_target_unknown_triple : Error<
104   "unknown target triple '%0', please use -triple or -arch">;
105 def err_target_unknown_cpu : Error<"unknown target CPU '%0'">;
106 def err_target_unknown_abi : Error<"unknown target ABI '%0'">;
107 def err_target_unknown_cxxabi : Error<"unknown C++ ABI '%0'">;
108 def err_target_invalid_feature : Error<"invalid target feature '%0'">;
109
110 // Source manager
111 def err_cannot_open_file : Error<"cannot open file '%0': %1">, DefaultFatal;
112 def err_file_modified : Error<
113   "file '%0' modified since it was first processed">, DefaultFatal;
114 def err_unsupported_bom : Error<"%0 byte order mark detected in '%1', but "
115   "encoding is not supported">, DefaultFatal;
116 def err_unable_to_rename_temp : Error<
117   "unable to rename temporary '%0' to output file '%1': '%2'">;
118 def err_unable_to_make_temp : Error<
119   "unable to make temporary file: %0">;
120   
121 // Modules
122 def err_module_file_conflict : Error<"module '%0' found in both '%1' and '%2'">;
123
124 }