]> CyberLeo.Net >> Repos - FreeBSD/releng/9.0.git/blob - contrib/llvm/tools/clang/include/clang/Basic/DiagnosticCommonKinds.td
Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release
[FreeBSD/releng/9.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_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_possibility : Note<"one possibility">;
36 def note_also_found : Note<"also found">;
37
38 // Parse && Lex
39 def err_expected_colon : Error<"expected ':'">;
40 def err_expected_colon_after_setter_name : Error<
41   "method name referenced in property setter attribute "
42   "must end with ':'">;
43
44 // Parse && Sema
45 def ext_no_declarators : ExtWarn<"declaration does not declare anything">,
46   InGroup<MissingDeclarations>;
47 def err_param_redefinition : Error<"redefinition of parameter %0">;
48 def warn_method_param_redefinition : Warning<"redefinition of method parameter %0">;
49 def warn_method_param_declaration : Warning<"redeclaration of method parameter %0">,
50   InGroup<DuplicateArgDecl>, DefaultIgnore;
51 def err_invalid_storage_class_in_func_decl : Error<
52   "invalid storage class specifier in function declarator">;
53 def err_expected_namespace_name : Error<"expected namespace name">;
54 def ext_variadic_templates : ExtWarn<
55   "variadic templates are a C++11 extension">, InGroup<CXX11>;
56 def warn_cxx98_compat_variadic_templates :
57   Warning<"variadic templates are incompatible with C++98">,
58   InGroup<CXX98Compat>, DefaultIgnore;
59 def err_default_special_members : Error<
60   "only special member functions may be defaulted">;
61 def err_friends_define_only_namespace_scope : Error<
62   "cannot define a function with non-namespace scope in a friend declaration">;
63 def err_deleted_non_function : Error<
64   "only functions can have deleted definitions">;
65 def err_module_not_found : Error<"module '%0' not found">, DefaultFatal;
66 def err_module_not_built : Error<"could not build module '%0'">, DefaultFatal;
67 def err_module_cycle : Error<"cyclic dependency in module '%0': %1">, 
68   DefaultFatal;
69 def warn_module_build : Warning<"building module '%0' from source">, 
70   InGroup<ModuleBuild>, DefaultIgnore;
71 def note_pragma_entered_here : Note<"#pragma entered here">;  
72
73 // Sema && Lex
74 def ext_longlong : Extension<
75   "'long long' is an extension when C99 mode is not enabled">,
76   InGroup<LongLong>;
77 def warn_cxx98_compat_longlong : Warning<
78   "'long long' is incompatible with C++98">,
79   InGroup<CXX98CompatPedantic>, DefaultIgnore;
80 def warn_integer_too_large : Warning<
81   "integer constant is too large for its type">;
82 def warn_integer_too_large_for_signed : Warning<
83   "integer constant is so large that it is unsigned">;
84
85 // Sema && AST
86 def note_invalid_subexpr_in_ice : Note<
87   "subexpression not valid in an integer constant expression">;
88
89 // Targets
90
91 def err_target_unknown_triple : Error<
92   "unknown target triple '%0', please use -triple or -arch">;
93 def err_target_unknown_cpu : Error<"unknown target CPU '%0'">;
94 def err_target_unknown_abi : Error<"unknown target ABI '%0'">;
95 def err_target_unknown_cxxabi : Error<"unknown C++ ABI '%0'">;
96 def err_target_invalid_feature : Error<"invalid target feature '%0'">;
97
98 // Source manager
99 def err_cannot_open_file : Error<"cannot open file '%0': %1">, DefaultFatal;
100 def err_file_modified : Error<
101   "file '%0' modified since it was first processed">, DefaultFatal;
102 def err_unsupported_bom : Error<"%0 byte order mark detected in '%1', but "
103   "encoding is not supported">, DefaultFatal;
104 }