PageRenderTime 46ms CodeModel.GetById 5ms app.highlight 26ms RepoModel.GetById 1ms app.codeStats 1ms

/include/clang/Basic/DiagnosticSemaKinds.td

https://bitbucket.org/danchr/clang
Unknown | 3166 lines | 2969 code | 197 blank | 0 comment | 0 complexity | 843804699b53431aec84986d4b94b16e MD5 | raw file

Large files files are truncated, but you can click here to view the full file

   1//==--- DiagnosticSemaKinds.td - libsema 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// Semantic Analysis
  12//===----------------------------------------------------------------------===//
  13
  14let Component = "Sema" in {
  15let CategoryName = "Semantic Issue" in {
  16
  17// Constant expressions
  18def err_expr_not_ice : Error<
  19  "expression is not an integer constant expression">;
  20def ext_expr_not_ice : Extension<
  21  "expression is not integer constant expression "
  22  "(but is allowed as an extension)">;
  23
  24def ext_null_pointer_expr_not_ice : Extension<
  25  "null pointer expression is not an integer constant expression "
  26  "(but is allowed as an extension)">;
  27
  28
  29
  30// Semantic analysis of constant literals.
  31def ext_predef_outside_function : Warning<
  32  "predefined identifier is only valid inside function">;
  33def warn_float_overflow : Warning<
  34  "magnitude of floating-point constant too large for type %0; maximum is %1">,
  35   InGroup<LiteralRange>;
  36def warn_float_underflow : Warning<
  37  "magnitude of floating-point constant too small for type %0; minimum is %1">,
  38  InGroup<LiteralRange>;
  39
  40// C99 variable-length arrays
  41def ext_vla : Extension<
  42  "variable length arrays are a C99 feature, accepted as an extension">,
  43  InGroup<VLA>;
  44def err_vla_non_pod : Error<"variable length array of non-POD element type %0">;
  45def err_vla_in_sfinae : Error<
  46  "variable length array cannot be formed during template argument deduction">;
  47def err_array_star_in_function_definition : Error<
  48  "variable length array must be bound in function definition">;
  49def err_vla_decl_in_file_scope : Error<
  50  "variable length array declaration not allowed at file scope">;
  51def err_vla_decl_has_static_storage : Error<
  52  "variable length array declaration can not have 'static' storage duration">;
  53def err_vla_decl_has_extern_linkage : Error<
  54  "variable length array declaration can not have 'extern' linkage">;
  55  
  56// C99 variably modified types
  57def err_variably_modified_template_arg : Error<
  58  "variably modified type %0 cannot be used as a template argument">;
  59def err_variably_modified_nontype_template_param : Error<
  60  "non-type template parameter of variably modified type %0">;
  61
  62// C99 Designated Initializers
  63def err_array_designator_negative : Error<
  64  "array designator value '%0' is negative">;
  65def err_array_designator_empty_range : Error<
  66  "array designator range [%0, %1] is empty">;
  67def err_array_designator_non_array : Error<
  68  "array designator cannot initialize non-array type %0">;
  69def err_array_designator_too_large : Error<
  70  "array designator index (%0) exceeds array bounds (%1)">;
  71def err_field_designator_non_aggr : Error<
  72  "field designator cannot initialize a "
  73  "%select{non-struct, non-union|non-class}0 type %1">;
  74def err_field_designator_unknown : Error<
  75  "field designator %0 does not refer to any field in type %1">;
  76def err_field_designator_nonfield : Error<
  77  "field designator %0 does not refer to a non-static data member">;
  78def note_field_designator_found : Note<"field designator refers here">;
  79def err_designator_for_scalar_init : Error<
  80  "designator in initializer for scalar type %0">;
  81def warn_subobject_initializer_overrides : Warning<
  82  "subobject initialization overrides initialization of other fields "
  83  "within its enclosing subobject">, InGroup<InitializerOverrides>;
  84def warn_initializer_overrides : Warning<
  85  "initializer overrides prior initialization of this subobject">,
  86  InGroup<InitializerOverrides>;
  87def note_previous_initializer : Note<
  88  "previous initialization %select{|with side effects }0is here"
  89  "%select{| (side effects may not occur at run time)}0">;
  90def err_designator_into_flexible_array_member : Error<
  91  "designator into flexible array member subobject">;
  92def note_flexible_array_member : Note<
  93  "initialized flexible array member %0 is here">;
  94def ext_flexible_array_init : Extension<
  95  "flexible array initialization is a GNU extension">, InGroup<GNU>;
  96
  97// Declarations.
  98def ext_anon_param_requires_type_specifier : Extension<
  99  "type specifier required for unnamed parameter, defaults to int">;
 100def err_bad_variable_name : Error<
 101  "'%0' cannot be the name of a variable or data member">;
 102def err_parameter_name_omitted : Error<"parameter name omitted">;
 103def warn_unused_parameter : Warning<"unused parameter %0">,
 104  InGroup<UnusedParameter>, DefaultIgnore;
 105def warn_unused_variable : Warning<"unused variable %0">,
 106  InGroup<UnusedVariable>, DefaultIgnore;
 107def warn_unused_exception_param : Warning<"unused exception parameter %0">,
 108  InGroup<UnusedExceptionParameter>, DefaultIgnore;
 109def warn_decl_in_param_list : Warning<
 110  "declaration of %0 will not be visible outside of this function">;
 111def warn_unused_function : Warning<"unused function %0">,
 112  InGroup<UnusedFunction>, DefaultIgnore;
 113  
 114def warn_implicit_function_decl : Warning<
 115  "implicit declaration of function %0">,
 116  InGroup<ImplicitFunctionDeclare>, DefaultIgnore;
 117def ext_implicit_function_decl : ExtWarn<
 118  "implicit declaration of function %0 is invalid in C99">,
 119  InGroup<ImplicitFunctionDeclare>;
 120
 121def err_ellipsis_first_arg : Error<
 122  "ISO C requires a named argument before '...'">;
 123def err_declarator_need_ident : Error<"declarator requires an identifier">;
 124def err_bad_language : Error<"unknown linkage language">;
 125def warn_use_out_of_scope_declaration : Warning<
 126  "use of out-of-scope declaration of %0">;
 127def err_inline_non_function : Error<
 128  "'inline' can only appear on functions">;
 129
 130def warn_decl_shadow :
 131  Warning<"declaration shadows a %select{"
 132          "local variable|"
 133          "variable in %2|"
 134          "static data member of %2|"
 135          "field of %2}1">,
 136  InGroup<Shadow>, DefaultIgnore;
 137
 138// C++ using declarations
 139def err_using_requires_qualname : Error<
 140  "using declaration requires a qualified name">;
 141def err_using_typename_non_type : Error<
 142  "'typename' keyword used on a non-type">;
 143def err_using_dependent_value_is_type : Error<
 144  "dependent using declaration resolved to type without 'typename'">;
 145def err_using_decl_nested_name_specifier_is_not_class : Error<
 146  "using declaration in class refers into '%0', which is not a class">;
 147def err_using_decl_nested_name_specifier_is_current_class : Error<
 148  "using declaration refers to its own class">;
 149def err_using_decl_nested_name_specifier_is_not_base_class : Error<
 150  "using declaration refers into '%0', which is not a base class of %1">;
 151def err_using_decl_can_not_refer_to_class_member : Error<
 152  "using declaration can not refer to class member">;
 153def err_using_decl_can_not_refer_to_namespace : Error<
 154  "using declaration can not refer to namespace">;
 155def err_using_decl_constructor : Error<
 156  "using declaration can not refer to a constructor">;
 157def err_using_decl_destructor : Error<
 158  "using declaration can not refer to a destructor">;
 159def err_using_decl_template_id : Error<
 160  "using declaration can not refer to a template specialization">;
 161def note_using_decl_target : Note<"target of using declaration">;
 162def note_using_decl_conflict : Note<"conflicting declaration">;
 163def err_using_decl_redeclaration : Error<"redeclaration of using decl">;
 164def err_using_decl_conflict : Error<
 165  "target of using declaration conflicts with declaration already in scope">;
 166def err_using_decl_conflict_reverse : Error<
 167  "declaration conflicts with target of using declaration already in scope">;
 168def note_using_decl : Note<"%select{|previous }0using declaration">;
 169
 170def warn_access_decl_deprecated : Warning<
 171  "access declarations are deprecated; use using declarations instead">,
 172  InGroup<Deprecated>;
 173
 174def err_invalid_thread : Error<
 175  "'__thread' is only allowed on variable declarations">;
 176def err_thread_non_global : Error<
 177  "'__thread' variables must have global storage">;
 178def err_thread_unsupported : Error<
 179  "thread-local storage is unsupported for the current target">;
 180
 181def warn_maybe_falloff_nonvoid_function : Warning<
 182  "control may reach end of non-void function">,
 183  InGroup<ReturnType>;
 184def warn_falloff_nonvoid_function : Warning<
 185  "control reaches end of non-void function">,
 186  InGroup<ReturnType>;
 187def err_maybe_falloff_nonvoid_block : Error<
 188  "control may reach end of non-void block">;
 189def err_falloff_nonvoid_block : Error<
 190  "control reaches end of non-void block">;
 191def warn_suggest_noreturn_function : Warning<
 192  "function could be attribute 'noreturn'">,
 193  InGroup<DiagGroup<"missing-noreturn">>, DefaultIgnore;
 194def warn_suggest_noreturn_block : Warning<
 195  "block could be attribute 'noreturn'">,
 196  InGroup<DiagGroup<"missing-noreturn">>, DefaultIgnore;
 197def warn_unreachable : Warning<"will never be executed">,
 198  InGroup<DiagGroup<"unreachable-code">>, DefaultIgnore;
 199
 200/// Built-in functions.
 201def ext_implicit_lib_function_decl : ExtWarn<
 202  "implicitly declaring C library function '%0' with type %1">;
 203def note_please_include_header : Note<
 204  "please include the header <%0> or explicitly provide a "
 205  "declaration for '%1'">;
 206def note_previous_builtin_declaration : Note<"%0 is a builtin with type %1">;
 207def err_implicit_decl_requires_stdio : Error<
 208  "implicit declaration of '%0' requires inclusion of the header <stdio.h>">;
 209def err_implicit_decl_requires_setjmp : Error<
 210  "implicit declaration of '%0' requires inclusion of the header <setjmp.h>">;
 211def warn_redecl_library_builtin : Warning<
 212  "incompatible redeclaration of library function %0">;
 213def err_builtin_definition : Error<"definition of builtin function %0">;
 214def err_types_compatible_p_in_cplusplus : Error<
 215  "__builtin_types_compatible_p is not valid in C++">;
 216def warn_builtin_unknown : Warning<"use of unknown builtin %0">, DefaultError;
 217
 218/// main()
 219// static/inline main() are not errors in C, just in C++.
 220def warn_unusual_main_decl : Warning<"'main' should not be declared "
 221    "%select{static|inline|static or inline}0">;
 222def err_unusual_main_decl : Error<"'main' is not allowed to be declared "
 223    "%select{static|inline|static or inline}0">;
 224def err_main_returns_nonint : Error<"'main' must return 'int'">;
 225def err_main_surplus_args : Error<"too many parameters (%0) for 'main': "
 226    "must be 0, 2, or 3">;
 227def warn_main_one_arg : Warning<"only one parameter on 'main' declaration">;
 228def err_main_arg_wrong : Error<"%select{first|second|third|fourth}0 "
 229    "parameter of 'main' (%select{argument count|argument array|environment|"
 230    "platform-specific data}0) must be of type %1">;
 231
 232/// parser diagnostics
 233def ext_typedef_without_a_name : ExtWarn<"typedef requires a name">;
 234def err_statically_allocated_object : Error<
 235  "interface type cannot be statically allocated">;
 236def err_object_cannot_be_passed_returned_by_value : Error<
 237  "interface type %1 cannot be %select{returned|passed}0 by value"
 238  "; did you forget * in %1">;
 239def warn_enum_value_overflow : Warning<"overflow in enumeration value">;
 240def warn_pragma_options_align_unsupported_option : Warning<
 241  "unsupported alignment option in '#pragma options align'">;
 242def warn_pragma_options_align_reset_failed : Warning<
 243  "#pragma options align=reset failed: %0">;
 244def err_pragma_options_align_mac68k_target_unsupported : Error<
 245  "mac68k alignment pragma is not supported on this target">;
 246def warn_pragma_pack_invalid_alignment : Warning<
 247  "expected #pragma pack parameter to be '1', '2', '4', '8', or '16'">;
 248// Follow the MSVC implementation.
 249def warn_pragma_pack_show : Warning<"value of #pragma pack(show) == %0">;
 250def warn_pragma_pack_pop_identifer_and_alignment : Warning<
 251  "specifying both a name and alignment to 'pop' is undefined">;
 252def warn_pragma_pack_pop_failed : Warning<"#pragma pack(pop, ...) failed: %0">;
 253
 254def warn_pragma_unused_undeclared_var : Warning<
 255  "undeclared variable %0 used as an argument for '#pragma unused'">;
 256def warn_pragma_unused_expected_localvar : Warning<
 257  "only local variables can be arguments to '#pragma unused'">;
 258def err_unsupported_pragma_weak : Error<
 259  "using '#pragma weak' to refer to an undeclared identifier is not yet supported">;
 260
 261/// Objective-C parser diagnostics
 262def err_duplicate_class_def : Error<
 263  "duplicate interface definition for class %0">;
 264def err_undef_superclass : Error<
 265  "cannot find interface declaration for %0, superclass of %1">;
 266def err_no_nsconstant_string_class : Error<
 267  "cannot find interface declaration for %0">;
 268def err_recursive_superclass : Error<
 269  "trying to recursively use %0 as superclass of %1">;
 270def warn_previous_alias_decl : Warning<"previously declared alias is ignored">;
 271def err_conflicting_aliasing_type : Error<"conflicting types for alias %0">;
 272def warn_undef_interface : Warning<"cannot find interface declaration for %0">;
 273def warn_duplicate_protocol_def : Warning<"duplicate protocol definition of %0 is ignored">;
 274def err_protocol_has_circular_dependency : Error<
 275  "protocol has circular dependency">;
 276def err_undeclared_protocol : Error<"cannot find protocol declaration for %0">;
 277def warn_undef_protocolref : Warning<"cannot find protocol definition for %0">;
 278def warn_readonly_property : Warning<
 279  "attribute 'readonly' of property %0 restricts attribute "
 280  "'readwrite' of property inherited from %1">;
 281
 282def warn_property_attribute : Warning<
 283  "property %0 '%1' attribute does not match the property inherited from %2">;
 284def warn_property_types_are_incompatible : Warning<
 285  "property type %0 is incompatible with type %1 inherited from %2">;
 286def err_undef_interface : Error<"cannot find interface declaration for %0">;
 287def err_class_extension_after_impl : Error<
 288  "cannot declare class extension for %0 after class implementation">;
 289def note_implementation_declared : Note<
 290  "class implementation is declared here">;
 291def warn_dup_category_def : Warning<
 292  "duplicate definition of category %1 on interface %0">;
 293def err_conflicting_super_class : Error<"conflicting super class name %0">;
 294def err_dup_implementation_class : Error<"reimplementation of class %0">;
 295def err_dup_implementation_category : Error<
 296  "reimplementation of category %1 for class %0">;
 297def err_conflicting_ivar_type : Error<
 298  "instance variable %0 has conflicting type: %1 vs %2">;
 299def err_duplicate_ivar_declaration : Error<
 300  "instance variable is already declared">;
 301def warn_on_superclass_use : Warning<
 302  "class implementation may not have super class">;
 303def err_conflicting_ivar_bitwidth : Error<
 304  "instance variable %0 has conflicting bit-field width">;
 305def err_conflicting_ivar_name : Error<
 306  "conflicting instance variable names: %0 vs %1">;
 307def err_inconsistant_ivar_count : Error<
 308  "inconsistent number of instance variables specified">;
 309def warn_incomplete_impl : Warning<"incomplete implementation">;
 310def note_undef_method_impl : Note<"method definition for %0 not found">;
 311def note_required_for_protocol_at : 
 312  Note<"required for direct or indirect protocol %0">;
 313
 314def warn_conflicting_ret_types : Warning<
 315  "conflicting return type in implementation of %0: %1 vs %2">;
 316
 317def warn_conflicting_param_types : Warning<
 318  "conflicting parameter types in implementation of %0: %1 vs %2">;
 319def warn_conflicting_variadic :Warning<
 320  "conflicting variadic declaration of method and its implementation">;
 321
 322def warn_implements_nscopying : Warning<
 323"default assign attribute on property %0 which implements "
 324"NSCopying protocol is not appropriate with -fobjc-gc[-only]">;
 325
 326def warn_multiple_method_decl : Warning<"multiple methods named %0 found">;
 327def warn_accessor_property_type_mismatch : Warning<
 328  "type of property %0 does not match type of accessor %1">;
 329def note_declared_at : Note<"declared here">;
 330def err_setter_type_void : Error<"type of setter must be void">;
 331def err_duplicate_method_decl : Error<"duplicate declaration of method %0">;
 332def warn_missing_atend : Warning<"'@end' is missing in implementation context">;
 333def err_objc_var_decl_inclass : 
 334    Error<"cannot declare variable inside @interface or @protocol">;
 335def error_missing_method_context : Error<
 336  "missing context for method declaration">;
 337def err_objc_property_attr_mutually_exclusive : Error<
 338  "property attributes '%0' and '%1' are mutually exclusive">;
 339def err_objc_property_requires_object : Error<
 340  "property with '%0' attribute must be of object type">;
 341def warn_objc_property_no_assignment_attribute : Warning<
 342  "no 'assign', 'retain', or 'copy' attribute is specified - "
 343  "'assign' is assumed">;
 344def warn_objc_property_default_assign_on_object : Warning<
 345  "default property attribute 'assign' not appropriate for non-gc object">;
 346def warn_property_attr_mismatch : Warning<
 347  "property attribute in continuation class does not match the primary class">;
 348def warn_objc_property_copy_missing_on_block : Warning<
 349    "'copy' attribute must be specified for the block property "
 350    "when -fobjc-gc-only is specified">;
 351def warn_atomic_property_rule : Warning<
 352  "writable atomic property %0 cannot pair a synthesized setter/getter "
 353  "with a user defined setter/getter">;
 354def err_use_continuation_class : Error<
 355  "illegal declaration of property in continuation class %0"
 356  ": attribute must be readwrite, while its primary must be readonly">;
 357def err_continuation_class : Error<"continuation class has no primary class">;
 358def err_property_type : Error<"property cannot have array or function type %0">;
 359def error_missing_property_context : Error<
 360  "missing context for property implementation declaration">;
 361def error_bad_property_decl : Error<
 362  "property implementation must have its declaration in interface %0">;
 363def error_category_property : Error<
 364  "property declared in category %0 cannot be implemented in "
 365  "class implementation">;
 366def note_property_declare : Note<
 367  "property declared here">;
 368def error_synthesize_category_decl : Error<
 369  "@synthesize not allowed in a category's implementation">;
 370def error_reference_property : Error<
 371  "property of reference type is not supported">;
 372def error_missing_property_interface : Error<
 373  "property implementation in a category with no category declaration">;
 374def error_bad_category_property_decl : Error<
 375  "property implementation must have its declaration in the category %0">;
 376def error_bad_property_context : Error<
 377  "property implementation must be in a class or category implementation">;
 378def error_missing_property_ivar_decl : Error<
 379  "synthesized property %0 must either be named the same as a compatible"
 380  " ivar or must explicitly name an ivar">;
 381
 382def error_synthesized_ivar_yet_not_supported : Error<
 383  "instance variable synthesis not yet supported"
 384  " (need to declare %0 explicitly)">;
 385
 386def error_property_ivar_type : Error<
 387  "type of property %0 (%1) does not match type of ivar %2 (%3)">;
 388def error_ivar_in_superclass_use : Error<
 389  "property %0 attempting to use ivar %1 declared in super class %2">;
 390def error_weak_property : Error<
 391  "existing ivar %1 for __weak property %0 must be __weak">;
 392def error_strong_property : Error<
 393  "existing ivar %1 for a __strong property %0 must be garbage collectable">;
 394def error_dynamic_property_ivar_decl : Error<
 395  "dynamic property can not have ivar specification">;
 396def error_duplicate_ivar_use : Error<
 397  "synthesized properties %0 and %1 both claim ivar %2">;
 398def error_property_implemented : Error<"property %0 is already implemented">;
 399def warn_objc_property_attr_mutually_exclusive : Warning<
 400  "property attributes '%0' and '%1' are mutually exclusive">,
 401  InGroup<ReadOnlySetterAttrs>, DefaultIgnore;
 402def warn_undeclared_selector : Warning<
 403  "undeclared selector %0">, InGroup<UndeclaredSelector>, DefaultIgnore;
 404def warn_unimplemented_protocol_method : Warning<
 405  "method in protocol not implemented">, InGroup<Protocol>;
 406
 407// C++ declarations
 408def err_static_assert_expression_is_not_constant : Error<
 409  "static_assert expression is not an integral constant expression">;
 410def err_static_assert_failed : Error<"static_assert failed \"%0\"">;
 411
 412def err_unexpected_friend : Error<
 413  "friends can only be classes or functions">;
 414def ext_enum_friend : ExtWarn<
 415  "enumeration type %0 cannot be a friend">;
 416def ext_nonclass_type_friend : ExtWarn<
 417  "non-class type %0 cannot be a friend">;
 418def err_friend_is_member : Error<
 419  "friends cannot be members of the declaring class">;
 420def ext_unelaborated_friend_type : ExtWarn<
 421  "must specify '%select{struct|union|class|enum}0' to befriend %1">;
 422def err_qualified_friend_not_found : Error<
 423  "no function named %0 with type %1 was found in the specified scope">;
 424def err_introducing_special_friend : Error<
 425  "must use a qualified name when declaring a %select{constructor|"
 426  "destructor|conversion operator}0 as a friend">;
 427def err_tagless_friend_type_template : Error<
 428  "friend type templates must use an elaborated type">;
 429
 430def err_abstract_type_in_decl : Error<
 431  "%select{return|parameter|variable|field}0 type %1 is an abstract class">;
 432def err_allocation_of_abstract_type : Error<
 433  "allocation of an object of abstract type %0">;
 434def err_throw_abstract_type : Error<
 435  "cannot throw an object of abstract type %0">;
 436def err_array_of_abstract_type : Error<"array of abstract class type %0">;
 437
 438def err_multiple_final_overriders : Error<
 439  "virtual function %q0 has more than one final overrider in %1">; 
 440def note_final_overrider : Note<"final overrider of %q0 in %1">;
 441
 442def err_type_defined_in_type_specifier : Error<
 443  "%0 can not be defined in a type specifier">;
 444def err_type_defined_in_result_type : Error<
 445  "%0 can not be defined in the result type of a function">;
 446def err_type_defined_in_param_type : Error<
 447  "%0 can not be defined in a parameter type">;
 448
 449def note_pure_virtual_function : Note<
 450  "pure virtual function %0">;
 451
 452def err_deleted_non_function : Error<
 453  "only functions can have deleted definitions">;
 454def err_deleted_decl_not_first : Error<
 455  "deleted definition must be first declaration">;
 456
 457def warn_weak_vtable : Warning<
 458  "%0 has no out-of-line virtual method definitions; its vtable will be "
 459  "emitted in every translation unit">,
 460  InGroup<DiagGroup<"weak-vtables">>, DefaultIgnore;
 461
 462// C++ exception specifications
 463def err_exception_spec_in_typedef : Error<
 464  "exception specifications are not allowed in typedefs">;
 465def err_distant_exception_spec : Error<
 466  "exception specifications are not allowed beyond a single level "
 467  "of indirection">;
 468def err_incomplete_in_exception_spec : Error<
 469  "%select{|pointer to |reference to }0incomplete type %1 is not allowed "
 470  "in exception specification">;
 471def err_mismatched_exception_spec : Error<
 472  "exception specification in declaration does not match previous declaration">;
 473def err_override_exception_spec : Error<
 474  "exception specification of overriding function is more lax than "
 475  "base version">;
 476def err_incompatible_exception_specs : Error<
 477  "target exception specification is not superset of source">;
 478def err_deep_exception_specs_differ : Error<
 479  "exception specifications of %select{return|argument}0 types differ">;
 480def warn_missing_exception_specification : Warning<
 481  "%0 is missing exception specification '%1'">;
 482
 483// C++ access checking
 484def err_class_redeclared_with_different_access : Error<
 485  "%0 redeclared with '%1' access">;
 486def err_access : Error<
 487  "%1 is a %select{private|protected}0 member of %3">, NoSFINAE;
 488def err_access_ctor : Error<
 489  "calling a %select{private|protected}0 constructor of class %2">, NoSFINAE;
 490def ext_rvalue_to_reference_access_ctor : ExtWarn<
 491  "C++98 requires an accessible copy constructor for class %2 when binding "
 492  "a reference to a temporary; was %select{private|protected}0">,
 493  NoSFINAE, InGroup<BindToTemporaryCopy>;
 494def err_access_base : Error<
 495  "%select{base class|inherited virtual base class}0 %1 has %select{private|"
 496  "protected}3 %select{constructor|copy constructor|copy assignment operator|"
 497  "destructor}2">, NoSFINAE;
 498def err_access_field: Error<
 499  "field of type %0 has %select{private|protected}2 %select{constructor|copy "
 500  "constructor|copy assignment operator|destructor}1">, NoSFINAE;
 501
 502def err_access_ctor_field :
 503    Error<"field of type %1 has %select{private|protected}2 constructor">,
 504    NoSFINAE;
 505def err_access_dtor_base :
 506    Error<"base class %0 has %select{private|protected}1 destructor">,
 507    NoSFINAE;
 508def err_access_dtor_vbase :
 509    Error<"inherited virtual base class %0 has "
 510    "%select{private|protected}1 destructor">,
 511    NoSFINAE;
 512def err_access_dtor_temp :
 513    Error<"temporary of type %0 has %select{private|protected}1 destructor">,
 514    NoSFINAE;
 515def err_access_dtor_field :
 516    Error<"field of type %1 has %select{private|protected}2 destructor">,
 517    NoSFINAE;
 518def err_access_dtor_var :
 519    Error<"variable of type %1 has %select{private|protected}2 destructor">,
 520    NoSFINAE;
 521def err_access_assign_field :
 522    Error<"field of type %1 has %select{private|protected}2 copy assignment"
 523          " operator">,
 524    NoSFINAE;
 525def err_access_assign_base :
 526    Error<"base class %0 has %select{private|protected}1 copy assignment"
 527          " operator">,
 528    NoSFINAE;
 529def err_access_copy_field :
 530    Error<"field of type %1 has %select{private|protected}2 copy constructor">,
 531    NoSFINAE;
 532def err_access_copy_base :
 533    Error<"base class %0 has %select{private|protected}1 copy constructor">,
 534    NoSFINAE;
 535def err_access_dtor_ivar :
 536    Error<"instance variable of type %0 has %select{private|protected}1 "
 537          "destructor">,
 538    NoSFINAE;
 539def note_previous_access_declaration : Note<
 540  "previously declared '%1' here">;
 541def err_access_outside_class : Error<
 542  "access to %select{private|protected}0 member outside any class context">;
 543def note_access_natural : Note<
 544  "%select{|implicitly }1declared %select{private|protected}0 here">;
 545def note_access_constrained_by_path : Note<
 546  "constrained by %select{|implicitly }1%select{private|protected}0"
 547  " inheritance here">;
 548  
 549// C++ name lookup
 550def err_incomplete_nested_name_spec : Error<
 551  "incomplete type %0 named in nested name specifier">;
 552def err_dependent_nested_name_spec : Error<
 553  "nested name specifier for a declaration cannot depend on a template "
 554  "parameter">;
 555def err_nested_name_member_ref_lookup_ambiguous : Error<
 556  "lookup of %0 in member access expression is ambiguous">;
 557def ext_nested_name_member_ref_lookup_ambiguous : ExtWarn<
 558  "lookup of %0 in member access expression is ambiguous; using member of %1">,
 559  InGroup<AmbigMemberTemplate>;
 560def note_ambig_member_ref_object_type : Note<
 561  "lookup in the object type %0 refers here">;
 562def note_ambig_member_ref_scope : Note<
 563  "lookup from the current scope refers here">;
 564def err_qualified_member_nonclass : Error<
 565  "qualified member access refers to a member in %0">;
 566def err_incomplete_member_access : Error<
 567  "member access into incomplete type %0">;
 568def err_incomplete_type : Error<
 569  "incomplete type %0 where a complete type is required">;
 570  
 571// C++ class members
 572def err_storageclass_invalid_for_member : Error<
 573  "storage class specified for a member declaration">;
 574def err_mutable_function : Error<"'mutable' cannot be applied to functions">;
 575def err_mutable_reference : Error<"'mutable' cannot be applied to references">;
 576def err_mutable_const : Error<"'mutable' and 'const' cannot be mixed">;
 577def err_mutable_nonmember : Error<
 578  "'mutable' can only be applied to member variables">;
 579def err_virtual_non_function : Error<
 580  "'virtual' can only appear on non-static member functions">;
 581def err_virtual_out_of_class : Error<
 582  "'virtual' can only be specified inside the class definition">;
 583def err_explicit_non_function : Error<
 584  "'explicit' can only appear on non-static member functions">;
 585def err_explicit_out_of_class : Error<
 586  "'explicit' can only be specified inside the class definition">;
 587def err_explicit_non_ctor_or_conv_function : Error<
 588  "'explicit' can only be applied to a constructor or conversion function">;
 589def err_static_not_bitfield : Error<"static member %0 cannot be a bit-field">;
 590def err_static_out_of_line : Error<
 591  "'static' can only be specified inside the class definition">;
 592def err_typedef_not_bitfield : Error<"typedef member %0 cannot be a bit-field">;
 593def err_not_integral_type_bitfield : Error<
 594  "bit-field %0 has non-integral type %1">;
 595def err_not_integral_type_anon_bitfield : Error<
 596  "anonymous bit-field has non-integral type %0">;
 597def err_member_initialization : Error<
 598  "%0 can only be initialized if it is a static const integral data member">;
 599def err_member_function_initialization : Error<
 600  "initializer on function does not look like a pure-specifier">;
 601def err_non_virtual_pure : Error<
 602  "%0 is not virtual and cannot be declared pure">;
 603def err_implicit_object_parameter_init : Error<
 604  "cannot initialize object parameter of type %0 with an expression "
 605  "of type %1">;
 606def err_qualified_member_of_unrelated : Error<
 607  "%q0 is not a member of class %1">;
 608
 609def note_field_decl : Note<"member is declared here">;
 610def note_ivar_decl : Note<"ivar is declared here">;
 611def note_bitfield_decl : Note<"bit-field is declared here">;
 612def note_previous_decl : Note<"%0 declared here">;
 613def note_member_synthesized_at : Note<
 614  "implicit default %select{constructor|copy constructor|"
 615  "copy assignment operator|destructor}0 for %1 first required here">;
 616def err_missing_default_ctor : Error<
 617  "%select{|implicit default }0constructor for %1 must explicitly initialize "
 618  "the %select{base class|member}2 %3 which does not have a default "
 619  "constructor">;
 620def err_illegal_union_member : Error<
 621  "union member %0 has a non-trivial %select{constructor|"
 622  "copy constructor|copy assignment operator|destructor}1">;
 623def note_nontrivial_has_virtual : Note<
 624  "because type %0 has a virtual %select{member function|base class}1">;
 625def note_nontrivial_has_nontrivial : Note<
 626  "because type %0 has a %select{member|base class}1 with a non-trivial "
 627  "%select{constructor|copy constructor|copy assignment operator|destructor}2">;
 628def note_nontrivial_user_defined : Note<
 629  "because type %0 has a user-declared %select{constructor|copy constructor|"
 630  "copy assignment operator|destructor}1">;
 631
 632def err_different_return_type_for_overriding_virtual_function : Error<
 633  "virtual function %0 has a different return type (%1) than the "
 634  "function it overrides (which has return type %2)">;
 635def note_overridden_virtual_function : Note<
 636  "overridden virtual function is here">;
 637
 638def err_covariant_return_inaccessible_base : Error<
 639  "invalid covariant return for virtual function: %1 is a "
 640  "%select{private|protected}2 base class of %0">, NoSFINAE;
 641def err_covariant_return_ambiguous_derived_to_base_conv : Error<
 642  "return type of virtual function %3 is not covariant with the return type of "
 643  "the function it overrides (ambiguous conversion from derived class "
 644  "%0 to base class %1:%2)">;
 645def err_covariant_return_not_derived : Error<
 646  "return type of virtual function %0 is not covariant with the return type of "
 647  "the function it overrides (%1 is not derived from %2)">;
 648def err_covariant_return_incomplete : Error<
 649  "return type of virtual function %0 is not covariant with the return type of "
 650  "the function it overrides (%1 is incomplete)">;
 651def err_covariant_return_type_different_qualifications : Error<
 652  "return type of virtual function %0 is not covariant with the return type of "
 653  "the function it overrides (%1 has different qualifiers than %2)">;
 654def err_covariant_return_type_class_type_more_qualified : Error<
 655  "return type of virtual function %0 is not covariant with the return type of "
 656  "the function it overrides (class type %1 is more qualified than class "
 657  "type %2">;
 658  
 659// C++ constructors
 660def err_constructor_cannot_be : Error<"constructor cannot be declared '%0'">;
 661def err_invalid_qualified_constructor : Error<
 662  "'%0' qualifier is not allowed on a constructor">;
 663def err_constructor_return_type : Error<
 664  "constructor cannot have a return type">;
 665def err_constructor_redeclared : Error<"constructor cannot be redeclared">;
 666def err_constructor_byvalue_arg : Error<
 667  "copy constructor must pass its first argument by reference">;
 668def warn_no_constructor_for_refconst : Warning<
 669  "%select{struct|union|class|enum}0 %1 does not declare any constructor to "
 670  "initialize its non-modifiable members">;
 671def note_refconst_member_not_initialized : Note<
 672  "%select{const|reference}0 member %1 will never be initialized">;
 673
 674// C++ destructors
 675def err_destructor_not_member : Error<
 676  "destructor must be a non-static member function">;
 677def err_destructor_cannot_be : Error<"destructor cannot be declared '%0'">;
 678def err_invalid_qualified_destructor : Error<
 679  "'%0' qualifier is not allowed on a destructor">;
 680def err_destructor_return_type : Error<"destructor cannot have a return type">;
 681def err_destructor_redeclared : Error<"destructor cannot be redeclared">;
 682def err_destructor_with_params : Error<"destructor cannot have any parameters">;
 683def err_destructor_variadic : Error<"destructor cannot be variadic">;
 684def err_destructor_typedef_name : Error<
 685  "destructor cannot be declared using a typedef %0 of the class name">;
 686def err_destructor_name : Error<
 687  "expected the class name after '~' to name the enclosing class">;
 688def err_destructor_class_name : Error<
 689  "expected the class name after '~' to name a destructor">;
 690def err_ident_in_pseudo_dtor_not_a_type : Error<
 691  "identifier %0 in pseudo-destructor expression does not name a type">;
 692
 693// C++ initialization
 694def err_init_conversion_failed : Error<
 695  "cannot initialize %select{a variable|a parameter|return object|an "
 696  "exception object|a member subobject|an array element|a new value|a value|a "
 697  "base class|a vector element}0 of type %1 with an %select{rvalue|lvalue}2 of "
 698  "type %3">;
 699
 700def err_lvalue_to_rvalue_ref : Error<"rvalue reference cannot bind to lvalue">;
 701def err_invalid_initialization : Error<
 702"invalid initialization of reference of type %0 from expression of type %1">;
 703def err_lvalue_to_rvalue_ambig_ref : Error<"rvalue reference cannot bind to lvalue "
 704                                           "due to multiple conversion functions">;
 705def err_not_reference_to_const_init : Error<
 706  "%select{non-const|volatile}0 lvalue reference to type %1 cannot be "
 707  "initialized with a %select{value|temporary}2 of type %3">;
 708def err_lvalue_reference_bind_to_temporary : Error<
 709  "%select{non-const|volatile}0 lvalue reference to type %1 cannot bind to a "
 710  "temporary of type %2">;
 711def err_lvalue_reference_bind_to_unrelated : Error<
 712  "%select{non-const|volatile}0 lvalue reference to type %1 cannot bind to a "
 713  "value of unrelated type %2">;
 714def err_reference_bind_drops_quals : Error<
 715  "binding of reference to type %0 to a value of type %1 drops qualifiers">;
 716def err_reference_bind_failed : Error<
 717  "reference to type %0 could not bind to an %select{rvalue|lvalue}1 of type "
 718  "%2">;
 719def err_reference_bind_init_list : Error<
 720  "reference to type %0 cannot bind to an initializer list">;
 721def err_init_list_bad_dest_type : Error<
 722  "%select{|non-aggregate }0type %1 cannot be initialized with an initializer "
 723  "list">;
 724
 725def err_reference_init_drops_quals : Error<
 726  "initialization of reference to type %0 with a %select{value|temporary}1 of type %2 drops "
 727  "qualifiers">;
 728def err_reference_bind_to_bitfield : Error<
 729  "%select{non-const|volatile}0 reference cannot bind to bit-field %1">;
 730def err_reference_bind_to_vector_element : Error<
 731  "%select{non-const|volatile}0 reference cannot bind to vector element">;
 732def err_reference_var_requires_init : Error<
 733  "declaration of reference variable %0 requires an initializer">;
 734def err_const_var_requires_init : Error<
 735  "declaration of const variable '%0' requires an initializer">;
 736def err_reference_without_init : Error<
 737  "reference to type %0 requires an initializer">;
 738def err_reference_has_multiple_inits : Error<
 739  "reference cannot be initialized with multiple values">;
 740def err_init_non_aggr_init_list : Error<
 741  "initialization of non-aggregate type %0 with an initializer list">;
 742def err_init_reference_member_uninitialized : Error<
 743  "reference member of type %0 uninitialized">;
 744def note_uninit_reference_member : Note<
 745  "uninitialized reference member is here">;
 746def warn_field_is_uninit : Warning<"field is uninitialized when used here">,
 747  InGroup<DiagGroup<"uninitialized">>;
 748def err_init_incomplete_type : Error<"initialization of incomplete type %0">;
 749
 750def err_temp_copy_no_viable : Error<
 751  "no viable constructor %select{copying variable|copying parameter|"
 752  "returning object|throwing object|copying member subobject|copying array "
 753  "element|allocating object|copying temporary|initializing base subobject|"
 754  "initializing vector element}0 of type %1">;
 755def ext_rvalue_to_reference_temp_copy_no_viable : ExtWarn<
 756  "no viable constructor %select{copying variable|copying parameter|"
 757  "returning object|throwing object|copying member subobject|copying array "
 758  "element|allocating object|copying temporary|initializing base subobject|"
 759  "initializing vector element}0 of type %1; C++98 requires a copy "
 760  "constructor when binding a reference to a temporary">,
 761  InGroup<BindToTemporaryCopy>;
 762def err_temp_copy_ambiguous : Error<
 763  "ambiguous constructor call when %select{copying variable|copying "
 764  "parameter|returning object|throwing object|copying member subobject|copying "
 765  "array element|allocating object|copying temporary|initializing base subobject|"
 766  "initializing vector element}0 of type %1">;
 767def err_temp_copy_deleted : Error<
 768  "%select{copying variable|copying parameter|returning object|throwing "
 769  "object|copying member subobject|copying array element|allocating object|"
 770  "copying temporary|initializing base subobject|initializing vector element}0 "
 771  "of type %1 invokes deleted constructor">;
 772def err_temp_copy_incomplete : Error<
 773  "copying a temporary object of incomplete type %0">;
 774
 775// C++0x decltype
 776def err_cannot_determine_declared_type_of_overloaded_function : Error<
 777    "cannot determine the %select{type|declared type}0 of an overloaded "
 778    "function">;
 779    
 780// C++0x auto
 781def err_auto_variable_cannot_appear_in_own_initializer : Error<
 782  "variable %0 declared with 'auto' type cannot appear in its own initializer">;
 783def err_illegal_decl_array_of_auto : Error<
 784  "'%0' declared as array of 'auto'">;
 785def err_auto_not_allowed : Error<
 786  "'auto' not allowed in %select{function prototype|struct member|union member"
 787  "|class member|exception declaration|template parameter|block literal}0">;
 788def err_auto_var_requires_init : Error<
 789  "declaration of variable %0 with type %1 requires an initializer">;
 790  
 791// C++0x attributes
 792def err_repeat_attribute : Error<"'%0' attribute cannot be repeated">;
 793
 794// C++0x [[final]]
 795def err_final_function_overridden : Error<
 796  "declaration of %0 overrides a 'final' function">;
 797def err_final_base : Error<
 798  "derivation from 'final' %0">;
 799  
 800// Objective-C++
 801def err_objc_decls_may_only_appear_in_global_scope : Error<
 802  "Objective-C declarations may only appear in global scope">;
 803def err_nsobject_attribute : Error<
 804  "__attribute ((NSObject)) is for pointer types only">;
 805
 806// Attributes
 807def err_attribute_can_be_applied_only_to_symbol_declaration : Error<
 808  "%0 attribute can be applied only to symbol declaration">;
 809def err_attributes_are_not_compatible : Error<
 810  "%0 and %1 attributes are not compatible">;
 811def err_attribute_wrong_number_arguments : Error<
 812  "attribute requires %0 argument(s)">;
 813def err_attribute_missing_parameter_name : Error<
 814  "attribute requires unquoted parameter">;
 815def err_attribute_invalid_vector_type : Error<"invalid vector type %0">;
 816def err_attribute_argument_not_int : Error<
 817  "'%0' attribute requires integer constant">;
 818def err_attribute_argument_outof_range : Error<
 819  "init_priority attribute requires integer constant between "
 820  "101 and 65535 inclusive">;
 821def err_init_priority_object_attr : Error<
 822  "can only use �&#x20AC;&#x2DC;init_priority�&#x20AC;&#x2122; attribute on file-scope definitions "
 823  "of objects of class type">;
 824def err_attribute_argument_n_not_int : Error<
 825  "'%0' attribute requires parameter %1 to be an integer constant">;
 826def err_attribute_argument_n_not_string : Error<
 827  "'%0' attribute requires parameter %1 to be a string">;
 828def err_attribute_argument_out_of_bounds : Error<
 829  "'%0' attribute parameter %1 is out of bounds">;
 830def err_attribute_requires_objc_interface : Error<
 831  "attribute may only be applied to an Objective-C interface">;
 832def err_nonnull_pointers_only : Error<
 833  "nonnull attribute only applies to pointer arguments">;
 834def err_format_strftime_third_parameter : Error<
 835  "strftime format attribute requires 3rd parameter to be 0">;
 836def err_format_attribute_requires_variadic : Error<
 837  "format attribute requires variadic function">;
 838def err_format_attribute_not : Error<"format argument not %0">;
 839def err_format_attribute_result_not : Error<"function does not return %0">;
 840def err_attribute_invalid_size : Error<
 841  "vector size not an integral multiple of component size">;
 842def err_attribute_zero_size : Error<"zero vector size">;
 843def err_typecheck_vector_not_convertable : Error<
 844  "can't convert between vector values of different size (%0 and %1)">;
 845def err_typecheck_ext_vector_not_typedef : Error<
 846  "ext_vector_type only applies to types, not variables">;
 847def err_unsupported_vector_size : Error<
 848  "unsupported type %0 for vector_size attribute, please use on typedef">;
 849def err_ext_vector_component_exceeds_length : Error<
 850  "vector component access exceeds type %0">;
 851def err_ext_vector_component_name_illegal : Error<
 852  "illegal vector component name '%0'">;
 853def err_attribute_address_space_not_int : Error<
 854  "address space attribute requires an integer constant">;
 855def err_attribute_address_space_negative : Error<
 856  "address space is negative">;
 857def err_attribute_address_space_too_high : Error<
 858  "address space is larger than the maximum supported (%0)">;
 859def err_attribute_address_multiple_qualifiers : Error<
 860  "multiple address spaces specified for type">;
 861def err_implicit_pointer_address_space_cast : Error<
 862  "illegal implicit cast between two pointers with different address spaces">;
 863def err_as_qualified_auto_decl : Error<
 864  "automatic variable qualified with an address space">;
 865def err_arg_with_address_space : Error<
 866  "parameter may not be qualified with an address space">;
 867def err_attribute_not_string : Error<
 868  "argument to %0 attribute was not a string literal">;
 869def err_attribute_section_invalid_for_target : Error<
 870  "argument to 'section' attribute is not valid for this target: %0">;
 871def err_attribute_section_local_variable : Error<
 872  "'section' attribute is not valid on local variables">;
 873def err_attribute_aligned_not_power_of_two : Error<
 874  "requested alignment is not a power of 2">;
 875def warn_redeclaration_without_attribute_prev_attribute_ignored : Warning<
 876  "'%0' redeclared without %1 attribute: previous %1 ignored">;
 877def warn_attribute_ignored : Warning<"%0 attribute ignored">;
 878def warn_attribute_precede_definition : Warning<
 879  "attribute declaration must precede definition">;
 880def warn_attribute_void_function_method : Warning<
 881  "attribute %0 cannot be applied to "
 882  "%select{functions|Objective-C method}1 without return value">;
 883def warn_attribute_weak_on_field : Warning<
 884  "__weak attribute cannot be specified on a field declaration">;
 885def warn_attribute_weak_on_local : Warning<
 886  "__weak attribute cannot be specified on an automatic variable">;
 887def warn_weak_identifier_undeclared : Warning<
 888  "weak identifier %0 never declared">;
 889def err_attribute_weak_static : Error<
 890  "weak declaration of '%0' must be public">;
 891def warn_attribute_weak_import_invalid_on_definition : Warning<
 892  "'weak_import' attribute cannot be specified on a definition">;
 893def err_attribute_weakref_not_static : Error<
 894  "weakref declaration of '%0' must be static">;
 895def err_attribute_weakref_not_global_context : Error<
 896  "weakref declaration of '%0' must be in a global context">;
 897def err_attribute_weakref_without_alias : Error<
 898  "weakref declaration of '%0' must also have an alias attribute">;
 899def warn_attribute_wrong_decl_type : Warning<
 900  "%0 attribute only applies to %select{function|union|"
 901  "variable and function|function or method|parameter|"
 902  "parameter or Objective-C method |function, method or block|"
 903  "virtual method or class|function, method, or parameter|class|virtual method"
 904  "|member}1 types">;
 905def err_attribute_wrong_decl_type : Error<
 906  "%0 attribute only applies to %select{function|union|"
 907  "variable and function|function or method|parameter|"
 908  "parameter or Objective-C method |function, method or block|"
 909  "virtual method or class|function, method, or parameter|class|virtual method"
 910  "|member}1 types">;
 911def warn_function_attribute_wrong_type : Warning<
 912  "%0 only applies to function types; type here is %1">;
 913def warn_gnu_inline_attribute_requires_inline : Warning<
 914  "'gnu_inline' attribute requires function to be marked 'inline',"
 915  " attribute ignored">;
 916def err_cconv_change : Error<
 917  "function declared '%0' here was previously declared "
 918  "%select{'%2'|without calling convention}1">;
 919def err_cconv_knr : Error<
 920  "function with no prototype cannot use %0 calling convention">;
 921def err_cconv_varargs : Error<
 922  "variadic function cannot use %0 calling convention">;
 923def err_regparm_mismatch : Error<"function declared with with regparm(%0) "
 924  "attribute was previously declared %plural{0:without the regparm|1:"
 925  "with the regparm(1)|2:with the regparm(2)|3:with the regparm(3)|:with the"
 926  "regparm}1 attribute">;
 927
 928def warn_impcast_vector_scalar : Warning<
 929  "implicit cast turns vector to scalar: %0 to %1">,
 930  InGroup<DiagGroup<"conversion">>, DefaultIgnore;
 931def warn_impcast_complex_scalar : Warning<
 932  "implicit cast discards imaginary component: %0 to %1">,
 933  InGroup<DiagGroup<"conversion">>, DefaultIgnore;
 934def warn_impcast_float_precision : Warning<
 935  "implicit cast loses floating-point precision: %0 to %1">,
 936  InGroup<DiagGroup<"conversion">>, DefaultIgnore;
 937def warn_impcast_float_integer : Warning<
 938  "implicit cast turns floating-point number into integer: %0 to %1">,
 939  InGroup<DiagGroup<"conversion">>, DefaultIgnore;
 940def warn_impcast_integer_sign : Warning<
 941  "implicit cast changes signedness: %0 to %1">,
 942  InGroup<DiagGroup<"conversion">>, DefaultIgnore;
 943def warn_impcast_integer_sign_conditional : Warning<
 944  "operand of ? changes signedness: %0 to %1">,
 945  InGroup<DiagGroup<"conversion">>, DefaultIgnore;
 946def warn_impcast_integer_precision : Warning<
 947  "implicit cast loses integer precision: %0 to %1">,
 948  InGroup<DiagGroup<"conversion">>, DefaultIgnore;
 949def warn_impcast_integer_64_32 : Warning<
 950  "implicit cast loses integer precision: %0 to %1">,
 951  InGroup<DiagGroup<"shorten-64-to-32">>, DefaultIgnore;
 952
 953def warn_attribute_ignored_for_field_of_type : Warning<
 954  "%0 attribute ignored for field of type %1">;
 955def warn_transparent_union_attribute_field_size_align : Warning<
 956  "%select{alignment|size}0 of field %1 (%2 bits) does not match the "
 957  "%select{alignment|size}0 of the first field in transparent union; "
 958  "transparent_union attribute ignored">;
 959def note_transparent_union_first_field_size_align : Note<
 960  "%select{alignment|size}0 of first field is %1 bits">;
 961def warn_transparent_union_attribute_not_definition : Warning<
 962  "transparent_union attribute can only be applied to a union definition; "
 963  "attribute ignored">;
 964def warn_transparent_union_attribute_floating : Warning<
 965  "first field of a transparent union cannot have floating point or vector "
 966  "type; transparent_union attribute ignored">;
 967def warn_transparent_union_attribute_zero_fields : Warning<
 968  "transparent union definition must contain at least one field; "
 969  "transparent_union attribute ignored">;
 970def warn_attribute_type_not_supported : Warning<
 971  "'%0' attribute argument not supported: %1">;
 972def warn_attribute_unknown_visibility : Warning<"unknown visibility '%1'">;
 973def err_unknown_machine_mode : Error<"unknown machine mode %0">;
 974def err_unsupported_machine_mode : Error<"unsupported machine mode %0">;
 975def err_mode_not_primitive : Error<
 976  "mode attribute only supported for integer and floating-point types">;
 977def err_mode_wrong_type : Error<
 978  "type of machine mode does not match type of base type">;
 979def err_attr_wrong_decl : Error<
 980  "'%0' attribute invalid on this declaration, requires typedef or value">;
 981def warn_attribute_nonnull_no_pointers : Warning<
 982  "'nonnull' attribute applied to function with no pointer arguments">;
 983def warn_attribute_malloc_pointer_only : Warning<
 984  "'malloc' attribute only applies to functions returning a pointer type">;
 985def warn_transparent_union_nonpointer : Warning<
 986  "'transparent_union' attribute support incomplete; only supported for "
 987  "pointer unions">;
 988
 989def warn_attribute_sentinel_named_arguments : Warning<
 990  "'sentinel' attribute requires named arguments">;
 991def warn_attribute_sentinel_not_variadic : Warning<
 992  "'sentinel' attribute only supported for variadic %select{functions|blocks}0">;
 993def err_attribute_sentinel_less_than_zero : Error<
 994  "'sentinel' parameter 1 less than zero">;
 995def err_attribute_sentinel_not_zero_or_one : Error<
 996  "'sentinel' parameter 2 not 0 or 1">;
 997def err_attribute_cleanup_arg_not_found : Error<
 998  "'cleanup' argument %0 not found">;
 999def err_attribute_cleanup_arg_not_function : Error<
1000  "'cleanup' argument %0 is not a function">;
1001def err_attribute_cleanup_func_must_take_one_arg : Error<
1002  "'cleanup' function %0 must take 1 parameter">;
1003def err_attribute_cleanup_func_arg_incompatible_type : Error<
1004  "'cleanup' function %0 parameter has type %1 which is incompatible with "
1005  "type %2">;
1006def err_attribute_regparm_wrong_platform : Error<
1007  "'regparm' is not valid on this platform">;
1008def err_attribute_regparm_invalid_number : Error<
1009  "'regparm' parameter must be between 0 and %0 inclusive">;
1010
1011
1012// Clang-Specific Attributes
1013def err_attribute_iboutlet : Error<
1014  "%0 attribute can only be applied to instance variables or properties">;
1015def err_attribute_ibaction: Error<
1016  "ibaction attribute can only be applied to

Large files files are truncated, but you can click here to view the full file