]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/blob - contrib/llvm/tools/clang/include/clang/Basic/DiagnosticCommonKinds.td
Copy head to stable/9 as part of 9.0-RELEASE release cycle.
[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_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++0x extension">, InGroup<CXX0x>;
56 def err_default_special_members : Error<
57   "only special member functions may be defaulted">;
58 def err_friends_define_only_namespace_scope : Error<
59   "cannot define a function with non-namespace scope in a friend declaration">;
60 def err_deleted_non_function : Error<
61   "only functions can have deleted definitions">;
62
63 // Sema && Lex
64 def ext_longlong : Extension<
65   "'long long' is an extension when C99 mode is not enabled">,
66   InGroup<LongLong>;
67 def warn_integer_too_large : Warning<
68   "integer constant is too large for its type">;
69 def warn_integer_too_large_for_signed : Warning<
70   "integer constant is so large that it is unsigned">;
71
72 // Sema && AST
73 def note_invalid_subexpr_in_ice : Note<
74   "subexpression not valid in an integer constant expression">;
75
76 // Targets
77
78 def err_target_unknown_triple : Error<
79   "unknown target triple '%0', please use -triple or -arch">;
80 def err_target_unknown_cpu : Error<"unknown target CPU '%0'">;
81 def err_target_unknown_abi : Error<"unknown target ABI '%0'">;
82 def err_target_unknown_cxxabi : Error<"unknown C++ ABI '%0'">;
83 def err_target_invalid_feature : Error<"invalid target feature '%0'">;
84
85 // Source manager
86 def err_cannot_open_file : Error<"cannot open file '%0': %1">, DefaultFatal;
87 def err_file_modified : Error<
88   "file '%0' modified since it was first processed">, DefaultFatal;
89 def err_unsupported_bom : Error<"%0 byte order mark detected in '%1', but "
90   "encoding is not supported">, DefaultFatal;
91 }