forked from OSchip/llvm-project
Remove unused diagnostics from include/clang/Basic/Diagnostic*.td files.
llvm-svn: 150409
This commit is contained in:
parent
2b80af4949
commit
c233a545e8
|
@ -10,8 +10,6 @@
|
||||||
let Component = "AST" in {
|
let Component = "AST" in {
|
||||||
|
|
||||||
// Constant expression diagnostics. These (and their users) belong in Sema.
|
// Constant expression diagnostics. These (and their users) belong in Sema.
|
||||||
//def note_comma_in_ice : Note<
|
|
||||||
// "C does not permit evaluated commas in an integer constant expression">;
|
|
||||||
def note_expr_divide_by_zero : Note<"division by zero">;
|
def note_expr_divide_by_zero : Note<"division by zero">;
|
||||||
def note_constexpr_invalid_cast : Note<
|
def note_constexpr_invalid_cast : Note<
|
||||||
"%select{reinterpret_cast|dynamic_cast|cast which performs the conversions of"
|
"%select{reinterpret_cast|dynamic_cast|cast which performs the conversions of"
|
||||||
|
@ -44,9 +42,6 @@ def note_constexpr_array_index : Note<"cannot refer to element %0 of "
|
||||||
"%select{array of %2 elements|non-array object}1 in a constant expression">;
|
"%select{array of %2 elements|non-array object}1 in a constant expression">;
|
||||||
def note_constexpr_float_arithmetic : Note<
|
def note_constexpr_float_arithmetic : Note<
|
||||||
"floating point arithmetic produces %select{an infinity|a NaN}0">;
|
"floating point arithmetic produces %select{an infinity|a NaN}0">;
|
||||||
def note_constexpr_pointer_arithmetic : Note<
|
|
||||||
"cannot refer to element %0 of non-array object in a constant "
|
|
||||||
"expression">;
|
|
||||||
def note_constexpr_pointer_subtraction_not_same_array : Note<
|
def note_constexpr_pointer_subtraction_not_same_array : Note<
|
||||||
"subtracted pointers are not elements of the same array">;
|
"subtracted pointers are not elements of the same array">;
|
||||||
def note_constexpr_pointer_comparison_base_classes : Note<
|
def note_constexpr_pointer_comparison_base_classes : Note<
|
||||||
|
@ -79,7 +74,6 @@ def note_constexpr_typeid_polymorphic : Note<
|
||||||
def note_constexpr_void_comparison : Note<
|
def note_constexpr_void_comparison : Note<
|
||||||
"comparison between unequal pointers to void has unspecified result">;
|
"comparison between unequal pointers to void has unspecified result">;
|
||||||
def note_constexpr_temporary_here : Note<"temporary created here">;
|
def note_constexpr_temporary_here : Note<"temporary created here">;
|
||||||
def note_constexpr_literal_here : Note<"literal written here">;
|
|
||||||
def note_constexpr_depth_limit_exceeded : Note<
|
def note_constexpr_depth_limit_exceeded : Note<
|
||||||
"constexpr evaluation exceeded maximum depth of %0 calls">;
|
"constexpr evaluation exceeded maximum depth of %0 calls">;
|
||||||
def note_constexpr_ltor_volatile_type : Note<
|
def note_constexpr_ltor_volatile_type : Note<
|
||||||
|
|
|
@ -9,7 +9,4 @@
|
||||||
|
|
||||||
let Component = "Analysis" in {
|
let Component = "Analysis" in {
|
||||||
|
|
||||||
// CHECK: use of uninitialized values
|
|
||||||
def warn_uninit_val : Warning<"use of uninitialized variable">;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -59,8 +59,6 @@ def warn_cxx98_compat_variadic_templates :
|
||||||
InGroup<CXX98Compat>, DefaultIgnore;
|
InGroup<CXX98Compat>, DefaultIgnore;
|
||||||
def err_default_special_members : Error<
|
def err_default_special_members : Error<
|
||||||
"only special member functions may be defaulted">;
|
"only special member functions may be defaulted">;
|
||||||
def err_friends_define_only_namespace_scope : Error<
|
|
||||||
"cannot define a function with non-namespace scope in a friend declaration">;
|
|
||||||
def err_deleted_non_function : Error<
|
def err_deleted_non_function : Error<
|
||||||
"only functions can have deleted definitions">;
|
"only functions can have deleted definitions">;
|
||||||
def err_module_not_found : Error<"module '%0' not found">, DefaultFatal;
|
def err_module_not_found : Error<"module '%0' not found">, DefaultFatal;
|
||||||
|
|
|
@ -98,8 +98,6 @@ def err_drv_mg_requires_m_or_mm : Error<
|
||||||
|
|
||||||
def warn_c_kext : Warning<
|
def warn_c_kext : Warning<
|
||||||
"ignoring -fapple-kext which is valid for c++ and objective-c++ only">;
|
"ignoring -fapple-kext which is valid for c++ and objective-c++ only">;
|
||||||
def warn_drv_unsupported_option_argument : Warning<
|
|
||||||
"ignoring unsupported argument '%1' to option '%0'">;
|
|
||||||
def warn_drv_input_file_unused : Warning<
|
def warn_drv_input_file_unused : Warning<
|
||||||
"%0: '%1' input unused when '%2' is present">;
|
"%0: '%1' input unused when '%2' is present">;
|
||||||
def warn_drv_preprocessed_input_file_unused : Warning<
|
def warn_drv_preprocessed_input_file_unused : Warning<
|
||||||
|
@ -107,8 +105,6 @@ def warn_drv_preprocessed_input_file_unused : Warning<
|
||||||
def warn_drv_unused_argument : Warning<
|
def warn_drv_unused_argument : Warning<
|
||||||
"argument unused during compilation: '%0'">,
|
"argument unused during compilation: '%0'">,
|
||||||
InGroup<DiagGroup<"unused-command-line-argument">>;
|
InGroup<DiagGroup<"unused-command-line-argument">>;
|
||||||
def warn_drv_pipe_ignored_with_save_temps : Warning<
|
|
||||||
"-pipe ignored because -save-temps specified">;
|
|
||||||
def warn_drv_not_using_clang_cpp : Warning<
|
def warn_drv_not_using_clang_cpp : Warning<
|
||||||
"not using the clang preprocessor due to user override">;
|
"not using the clang preprocessor due to user override">;
|
||||||
def warn_drv_not_using_clang_cxx : Warning<
|
def warn_drv_not_using_clang_cxx : Warning<
|
||||||
|
@ -121,8 +117,6 @@ def warn_drv_assuming_mfloat_abi_is : Warning<
|
||||||
"unknown platform, assuming -mfloat-abi=%0">;
|
"unknown platform, assuming -mfloat-abi=%0">;
|
||||||
def warn_ignoring_ftabstop_value : Warning<
|
def warn_ignoring_ftabstop_value : Warning<
|
||||||
"ignoring invalid -ftabstop value '%0', using default value %1">;
|
"ignoring invalid -ftabstop value '%0', using default value %1">;
|
||||||
def warn_drv_conflicting_deployment_targets : Warning<
|
|
||||||
"conflicting deployment targets, both MACOSX_DEPLOYMENT_TARGET '%0' and IPHONEOS_DEPLOYMENT_TARGET '%1' are present in environment">;
|
|
||||||
def warn_drv_treating_input_as_cxx : Warning<
|
def warn_drv_treating_input_as_cxx : Warning<
|
||||||
"treating '%0' input as '%1' when in C++ mode, this behavior is deprecated">,
|
"treating '%0' input as '%1' when in C++ mode, this behavior is deprecated">,
|
||||||
InGroup<Deprecated>;
|
InGroup<Deprecated>;
|
||||||
|
|
|
@ -13,9 +13,7 @@ def err_fe_error_opening : Error<"error opening '%0': %1">;
|
||||||
def err_fe_error_reading : Error<"error reading '%0'">;
|
def err_fe_error_reading : Error<"error reading '%0'">;
|
||||||
def err_fe_error_reading_stdin : Error<"error reading stdin">;
|
def err_fe_error_reading_stdin : Error<"error reading stdin">;
|
||||||
def err_fe_error_backend : Error<"error in backend: %0">, DefaultFatal;
|
def err_fe_error_backend : Error<"error in backend: %0">, DefaultFatal;
|
||||||
def err_fe_invalid_ast_file : Error<"invalid AST file: '%0'">, DefaultFatal;
|
|
||||||
def err_fe_invalid_ast_action : Error<"invalid action for AST input">,
|
|
||||||
DefaultFatal;
|
|
||||||
// Error generated by the backend.
|
// Error generated by the backend.
|
||||||
def err_fe_inline_asm : Error<"%0">, CatInlineAsm;
|
def err_fe_inline_asm : Error<"%0">, CatInlineAsm;
|
||||||
def note_fe_inline_asm_here : Note<"instantiated into assembly here">;
|
def note_fe_inline_asm_here : Note<"instantiated into assembly here">;
|
||||||
|
@ -28,16 +26,8 @@ def err_fe_invalid_code_complete_file : Error<
|
||||||
"cannot locate code-completion file %0">, DefaultFatal;
|
"cannot locate code-completion file %0">, DefaultFatal;
|
||||||
def err_fe_stdout_binary : Error<"unable to change standard output to binary">,
|
def err_fe_stdout_binary : Error<"unable to change standard output to binary">,
|
||||||
DefaultFatal;
|
DefaultFatal;
|
||||||
def err_fe_stderr_binary : Error<"unable to change standard error to binary">,
|
|
||||||
DefaultFatal;
|
|
||||||
def err_fe_dependency_file_requires_MT : Error<
|
def err_fe_dependency_file_requires_MT : Error<
|
||||||
"-dependency-file requires at least one -MT or -MQ option">;
|
"-dependency-file requires at least one -MT or -MQ option">;
|
||||||
def err_fe_incompatible_options : Error<
|
|
||||||
"'%0' cannot be used with '%1'">, DefaultFatal;
|
|
||||||
def err_fe_no_fixit_and_codegen : Error<
|
|
||||||
"FIX-ITs cannot be applied when generating code">;
|
|
||||||
def err_fe_unable_to_find_fixit_file : Error<
|
|
||||||
"FIX-IT could not find file '%0'">;
|
|
||||||
def err_fe_invalid_plugin_name : Error<
|
def err_fe_invalid_plugin_name : Error<
|
||||||
"unable to find plugin '%0'">;
|
"unable to find plugin '%0'">;
|
||||||
def err_fe_expected_compiler_job : Error<
|
def err_fe_expected_compiler_job : Error<
|
||||||
|
@ -91,13 +81,9 @@ def note_fixit_in_macro : Note<
|
||||||
def note_fixit_failed : Note<
|
def note_fixit_failed : Note<
|
||||||
"FIX-IT unable to apply suggested code changes">;
|
"FIX-IT unable to apply suggested code changes">;
|
||||||
def note_fixit_unfixed_error : Note<"FIX-IT detected an error it cannot fix">;
|
def note_fixit_unfixed_error : Note<"FIX-IT detected an error it cannot fix">;
|
||||||
def note_fixit_main_file_unchanged : Note<
|
|
||||||
"main file unchanged">;
|
|
||||||
def warn_fixit_no_changes : Note<
|
def warn_fixit_no_changes : Note<
|
||||||
"FIX-IT detected errors it could not fix; no output will be generated">;
|
"FIX-IT detected errors it could not fix; no output will be generated">;
|
||||||
|
|
||||||
def err_fe_invoking : Error<"error invoking%0: %1">, DefaultFatal;
|
|
||||||
|
|
||||||
// PCH reader
|
// PCH reader
|
||||||
def err_relocatable_without_isysroot : Error<
|
def err_relocatable_without_isysroot : Error<
|
||||||
"must specify system root with -isysroot when building a relocatable "
|
"must specify system root with -isysroot when building a relocatable "
|
||||||
|
|
|
@ -95,7 +95,6 @@ def err_hex_escape_no_digits : Error<"\\x used with no following hex digits">;
|
||||||
def err_ucn_escape_no_digits : Error<"\\u used with no following hex digits">;
|
def err_ucn_escape_no_digits : Error<"\\u used with no following hex digits">;
|
||||||
def err_ucn_escape_invalid : Error<"invalid universal character">;
|
def err_ucn_escape_invalid : Error<"invalid universal character">;
|
||||||
def err_ucn_escape_incomplete : Error<"incomplete universal character name">;
|
def err_ucn_escape_incomplete : Error<"incomplete universal character name">;
|
||||||
def err_ucn_escape_too_big : Error<"universal character name is too long">;
|
|
||||||
def err_invalid_decimal_digit : Error<"invalid digit '%0' in decimal constant">;
|
def err_invalid_decimal_digit : Error<"invalid digit '%0' in decimal constant">;
|
||||||
def err_invalid_binary_digit : Error<"invalid digit '%0' in binary constant">;
|
def err_invalid_binary_digit : Error<"invalid digit '%0' in binary constant">;
|
||||||
def err_invalid_octal_digit : Error<"invalid digit '%0' in octal constant">;
|
def err_invalid_octal_digit : Error<"invalid digit '%0' in octal constant">;
|
||||||
|
@ -149,8 +148,6 @@ def warn_bad_character_encoding : ExtWarn<
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
// PTH Diagnostics
|
// PTH Diagnostics
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
def err_pth_cannot_read : Error<
|
|
||||||
"PTH file '%0' could not be read">;
|
|
||||||
def err_invalid_pth_file : Error<
|
def err_invalid_pth_file : Error<
|
||||||
"invalid or corrupt PTH file '%0'">;
|
"invalid or corrupt PTH file '%0'">;
|
||||||
|
|
||||||
|
@ -266,7 +263,6 @@ def pp_err_else_without_if : Error<"#else without #if">;
|
||||||
def pp_err_elif_without_if : Error<"#elif without #if">;
|
def pp_err_elif_without_if : Error<"#elif without #if">;
|
||||||
def err_pp_endif_without_if : Error<"#endif without #if">;
|
def err_pp_endif_without_if : Error<"#endif without #if">;
|
||||||
def err_pp_expected_value_in_expr : Error<"expected value in expression">;
|
def err_pp_expected_value_in_expr : Error<"expected value in expression">;
|
||||||
def err_pp_missing_val_before_operator : Error<"missing value before operator">;
|
|
||||||
def err_pp_expected_rparen : Error<"expected ')' in preprocessor expression">;
|
def err_pp_expected_rparen : Error<"expected ')' in preprocessor expression">;
|
||||||
def err_pp_expected_eol : Error<
|
def err_pp_expected_eol : Error<
|
||||||
"expected end of line in preprocessor expression">;
|
"expected end of line in preprocessor expression">;
|
||||||
|
@ -409,7 +405,6 @@ def note_mmap_lsquare_match : Note<"to match this ']'">;
|
||||||
def err_mmap_expected_member : Error<
|
def err_mmap_expected_member : Error<
|
||||||
"expected umbrella, header, submodule, or module export">;
|
"expected umbrella, header, submodule, or module export">;
|
||||||
def err_mmap_expected_header : Error<"expected a header name after '%0'">;
|
def err_mmap_expected_header : Error<"expected a header name after '%0'">;
|
||||||
def err_mmap_expected_dir : Error<"expected a directory name after '%0'">;
|
|
||||||
def err_mmap_module_redefinition : Error<
|
def err_mmap_module_redefinition : Error<
|
||||||
"redefinition of module '%0'">;
|
"redefinition of module '%0'">;
|
||||||
def note_mmap_prev_definition : Note<"previously defined here">;
|
def note_mmap_prev_definition : Note<"previously defined here">;
|
||||||
|
|
|
@ -195,8 +195,6 @@ def err_address_of_label_outside_fn : Error<
|
||||||
def err_expected_string_literal : Error<"expected string literal">;
|
def err_expected_string_literal : Error<"expected string literal">;
|
||||||
def err_asm_operand_wide_string_literal : Error<
|
def err_asm_operand_wide_string_literal : Error<
|
||||||
"cannot use wide string literal in 'asm'">;
|
"cannot use wide string literal in 'asm'">;
|
||||||
def err_expected_asm_operand : Error<
|
|
||||||
"expected string literal or '[' for asm operand">, CatInlineAsm;
|
|
||||||
def err_expected_selector_for_method : Error<
|
def err_expected_selector_for_method : Error<
|
||||||
"expected selector for Objective-C method">;
|
"expected selector for Objective-C method">;
|
||||||
def err_expected_property_name : Error<"expected property name">;
|
def err_expected_property_name : Error<"expected property name">;
|
||||||
|
@ -300,8 +298,6 @@ def err_templated_using_directive : Error<
|
||||||
"cannot template a using directive">;
|
"cannot template a using directive">;
|
||||||
def err_templated_using_declaration : Error<
|
def err_templated_using_declaration : Error<
|
||||||
"cannot template a using declaration">;
|
"cannot template a using declaration">;
|
||||||
def err_expected_ident_in_using : Error<
|
|
||||||
"expected an identifier in using directive">;
|
|
||||||
def err_unexected_colon_in_nested_name_spec : Error<
|
def err_unexected_colon_in_nested_name_spec : Error<
|
||||||
"unexpected ':' in nested name specifier">;
|
"unexpected ':' in nested name specifier">;
|
||||||
def err_bool_redeclaration : Error<
|
def err_bool_redeclaration : Error<
|
||||||
|
@ -358,11 +354,6 @@ def err_objc_directive_only_in_protocol : Error<
|
||||||
def err_missing_catch_finally : Error<
|
def err_missing_catch_finally : Error<
|
||||||
"@try statement without a @catch and @finally clause">;
|
"@try statement without a @catch and @finally clause">;
|
||||||
def err_objc_concat_string : Error<"unexpected token after Objective-C string">;
|
def err_objc_concat_string : Error<"unexpected token after Objective-C string">;
|
||||||
def err_missing_sel_definition : Error<"cannot find definition of 'SEL'">;
|
|
||||||
def err_missing_id_definition : Error<"cannot find definition of 'id'">;
|
|
||||||
def err_missing_proto_definition : Error<
|
|
||||||
"cannot find definition of 'Protocol'">;
|
|
||||||
def err_missing_class_definition : Error<"cannot find definition of 'Class'">;
|
|
||||||
def err_expected_objc_container : Error<
|
def err_expected_objc_container : Error<
|
||||||
"'@end' must appear in an Objective-C context">;
|
"'@end' must appear in an Objective-C context">;
|
||||||
def error_property_ivar_decl : Error<
|
def error_property_ivar_decl : Error<
|
||||||
|
@ -461,7 +452,6 @@ def err_unknown_template_name : Error<
|
||||||
"unknown template name %0">;
|
"unknown template name %0">;
|
||||||
def err_expected_comma_greater : Error<
|
def err_expected_comma_greater : Error<
|
||||||
"expected ',' or '>' in template-parameter-list">;
|
"expected ',' or '>' in template-parameter-list">;
|
||||||
def err_expected_type_id_after : Error<"expected type-id after '%0'">;
|
|
||||||
def err_expected_class_before : Error<"expected 'class' before '%0'">;
|
def err_expected_class_before : Error<"expected 'class' before '%0'">;
|
||||||
def err_template_spec_syntax_non_template : Error<
|
def err_template_spec_syntax_non_template : Error<
|
||||||
"identifier followed by '<' indicates a class template specialization but "
|
"identifier followed by '<' indicates a class template specialization but "
|
||||||
|
@ -469,10 +459,6 @@ def err_template_spec_syntax_non_template : Error<
|
||||||
"template|<unused>|refers to a template template parameter}1">;
|
"template|<unused>|refers to a template template parameter}1">;
|
||||||
def err_id_after_template_in_nested_name_spec : Error<
|
def err_id_after_template_in_nested_name_spec : Error<
|
||||||
"expected template name after 'template' keyword in nested name specifier">;
|
"expected template name after 'template' keyword in nested name specifier">;
|
||||||
def err_id_after_template_in_typename_spec : Error<
|
|
||||||
"expected template name after 'template' keyword in typename specifier">;
|
|
||||||
def err_less_after_template_name_in_nested_name_spec : Error<
|
|
||||||
"expected '<' after 'template %0' in nested name specifier">;
|
|
||||||
def err_two_right_angle_brackets_need_space : Error<
|
def err_two_right_angle_brackets_need_space : Error<
|
||||||
"a space is required between consecutive right angle brackets (use '> >')">;
|
"a space is required between consecutive right angle brackets (use '> >')">;
|
||||||
def warn_cxx0x_right_shift_in_template_arg : Warning<
|
def warn_cxx0x_right_shift_in_template_arg : Warning<
|
||||||
|
@ -588,8 +574,6 @@ def warn_cxx98_compat_override_control_keyword : Warning<
|
||||||
|
|
||||||
def err_duplicate_virt_specifier : Error<
|
def err_duplicate_virt_specifier : Error<
|
||||||
"class member already marked '%0'">;
|
"class member already marked '%0'">;
|
||||||
def err_duplicate_class_virt_specifier : Error<
|
|
||||||
"class already marked '%0'">;
|
|
||||||
|
|
||||||
def err_scoped_enum_missing_identifier : Error<
|
def err_scoped_enum_missing_identifier : Error<
|
||||||
"scoped enumeration requires a name">;
|
"scoped enumeration requires a name">;
|
||||||
|
@ -655,8 +639,6 @@ def warn_pragma_align_invalid_option : Warning<
|
||||||
// - #pragma pack
|
// - #pragma pack
|
||||||
def warn_pragma_pack_invalid_action : Warning<
|
def warn_pragma_pack_invalid_action : Warning<
|
||||||
"unknown action for '#pragma pack' - ignored">;
|
"unknown action for '#pragma pack' - ignored">;
|
||||||
def warn_pragma_pack_invalid_constant : Warning<
|
|
||||||
"invalid constant for '#pragma pack', expected %0 - ignored">;
|
|
||||||
def warn_pragma_pack_malformed : Warning<
|
def warn_pragma_pack_malformed : Warning<
|
||||||
"expected integer or identifier in '#pragma pack' - ignored">;
|
"expected integer or identifier in '#pragma pack' - ignored">;
|
||||||
// - #pragma unused
|
// - #pragma unused
|
||||||
|
|
|
@ -120,8 +120,6 @@ def ext_flexible_array_init : Extension<
|
||||||
"flexible array initialization is a GNU extension">, InGroup<GNU>;
|
"flexible array initialization is a GNU extension">, InGroup<GNU>;
|
||||||
|
|
||||||
// Declarations.
|
// Declarations.
|
||||||
def ext_anon_param_requires_type_specifier : Extension<
|
|
||||||
"type specifier required for unnamed parameter, defaults to int">;
|
|
||||||
def err_bad_variable_name : Error<
|
def err_bad_variable_name : Error<
|
||||||
"%0 cannot be the name of a variable or data member">;
|
"%0 cannot be the name of a variable or data member">;
|
||||||
def err_bad_parameter_name : Error<
|
def err_bad_parameter_name : Error<
|
||||||
|
@ -386,8 +384,6 @@ def warn_pragma_unused_undeclared_var : Warning<
|
||||||
"undeclared variable %0 used as an argument for '#pragma unused'">;
|
"undeclared variable %0 used as an argument for '#pragma unused'">;
|
||||||
def warn_pragma_unused_expected_var_arg : Warning<
|
def warn_pragma_unused_expected_var_arg : Warning<
|
||||||
"only variables can be arguments to '#pragma unused'">;
|
"only variables can be arguments to '#pragma unused'">;
|
||||||
def err_unsupported_pragma_weak : Error<
|
|
||||||
"using '#pragma weak' to refer to an undeclared identifier is not yet supported">;
|
|
||||||
def err_pragma_push_visibility_mismatch : Error<
|
def err_pragma_push_visibility_mismatch : Error<
|
||||||
"#pragma visibility push with no matching #pragma visibility pop">;
|
"#pragma visibility push with no matching #pragma visibility pop">;
|
||||||
def note_surrounding_namespace_ends_here : Note<
|
def note_surrounding_namespace_ends_here : Note<
|
||||||
|
@ -833,9 +829,6 @@ def err_access_field_ctor : Error<
|
||||||
"%select{default |copy |move |*ERROR* |*ERROR* |*ERROR* |}1constructor">,
|
"%select{default |copy |move |*ERROR* |*ERROR* |*ERROR* |}1constructor">,
|
||||||
AccessControl;
|
AccessControl;
|
||||||
|
|
||||||
def err_access_ctor_field :
|
|
||||||
Error<"field of type %1 has %select{private|protected}2 constructor">,
|
|
||||||
AccessControl;
|
|
||||||
def err_access_dtor : Error<
|
def err_access_dtor : Error<
|
||||||
"calling a %select{private|protected}1 destructor of class %0">,
|
"calling a %select{private|protected}1 destructor of class %0">,
|
||||||
AccessControl;
|
AccessControl;
|
||||||
|
@ -858,29 +851,12 @@ def err_access_dtor_field :
|
||||||
def err_access_dtor_var :
|
def err_access_dtor_var :
|
||||||
Error<"variable of type %1 has %select{private|protected}2 destructor">,
|
Error<"variable of type %1 has %select{private|protected}2 destructor">,
|
||||||
AccessControl;
|
AccessControl;
|
||||||
def err_access_assign_field :
|
|
||||||
Error<"field of type %1 has %select{private|protected}2 copy assignment"
|
|
||||||
" operator">,
|
|
||||||
AccessControl;
|
|
||||||
def err_access_assign_base :
|
|
||||||
Error<"base class %0 has %select{private|protected}1 copy assignment"
|
|
||||||
" operator">,
|
|
||||||
AccessControl;
|
|
||||||
def err_access_copy_field :
|
|
||||||
Error<"field of type %1 has %select{private|protected}2 copy constructor">,
|
|
||||||
AccessControl;
|
|
||||||
def err_access_copy_base :
|
|
||||||
Error<"base class %0 has %select{private|protected}1 copy constructor">,
|
|
||||||
AccessControl;
|
|
||||||
def err_access_dtor_ivar :
|
def err_access_dtor_ivar :
|
||||||
Error<"instance variable of type %0 has %select{private|protected}1 "
|
Error<"instance variable of type %0 has %select{private|protected}1 "
|
||||||
"destructor">,
|
"destructor">,
|
||||||
AccessControl;
|
AccessControl;
|
||||||
def note_previous_access_declaration : Note<
|
def note_previous_access_declaration : Note<
|
||||||
"previously declared '%1' here">;
|
"previously declared '%1' here">;
|
||||||
def err_access_outside_class : Error<
|
|
||||||
"access to %select{private|protected}0 member outside any class context">,
|
|
||||||
AccessControl;
|
|
||||||
def note_access_natural : Note<
|
def note_access_natural : Note<
|
||||||
"%select{|implicitly }1declared %select{private|protected}0 here">;
|
"%select{|implicitly }1declared %select{private|protected}0 here">;
|
||||||
def note_access_constrained_by_path : Note<
|
def note_access_constrained_by_path : Note<
|
||||||
|
@ -1096,13 +1072,6 @@ def err_init_conversion_failed : Error<
|
||||||
|
|
||||||
def err_lvalue_to_rvalue_ref : Error<"rvalue reference to type %0 cannot bind "
|
def err_lvalue_to_rvalue_ref : Error<"rvalue reference to type %0 cannot bind "
|
||||||
"to lvalue of type %1">;
|
"to lvalue of type %1">;
|
||||||
def err_invalid_initialization : Error<
|
|
||||||
"invalid initialization of reference of type %0 from expression of type %1">;
|
|
||||||
def err_lvalue_to_rvalue_ambig_ref : Error<"rvalue reference cannot bind to lvalue "
|
|
||||||
"due to multiple conversion functions">;
|
|
||||||
def err_not_reference_to_const_init : Error<
|
|
||||||
"%select{non-const|volatile}0 lvalue reference to type %1 cannot be "
|
|
||||||
"initialized with a %select{value|temporary}2 of type %3">;
|
|
||||||
def err_lvalue_reference_bind_to_initlist : Error<
|
def err_lvalue_reference_bind_to_initlist : Error<
|
||||||
"%select{non-const|volatile}0 lvalue reference to type %1 cannot bind to an "
|
"%select{non-const|volatile}0 lvalue reference to type %1 cannot bind to an "
|
||||||
"initializer list temporary">;
|
"initializer list temporary">;
|
||||||
|
@ -1127,17 +1096,12 @@ def err_member_function_call_bad_cvr : Error<"member function %0 not viable: "
|
||||||
"%select{const|restrict|const or restrict|volatile|const or volatile|"
|
"%select{const|restrict|const or restrict|volatile|const or volatile|"
|
||||||
"volatile or restrict|const, volatile, or restrict}2">;
|
"volatile or restrict|const, volatile, or restrict}2">;
|
||||||
|
|
||||||
def err_reference_init_drops_quals : Error<
|
|
||||||
"initialization of reference to type %0 with a %select{value|temporary}1 of type %2 drops "
|
|
||||||
"qualifiers">;
|
|
||||||
def err_reference_bind_to_bitfield : Error<
|
def err_reference_bind_to_bitfield : Error<
|
||||||
"%select{non-const|volatile}0 reference cannot bind to bit-field %1">;
|
"%select{non-const|volatile}0 reference cannot bind to bit-field %1">;
|
||||||
def err_reference_bind_to_vector_element : Error<
|
def err_reference_bind_to_vector_element : Error<
|
||||||
"%select{non-const|volatile}0 reference cannot bind to vector element">;
|
"%select{non-const|volatile}0 reference cannot bind to vector element">;
|
||||||
def err_reference_var_requires_init : Error<
|
def err_reference_var_requires_init : Error<
|
||||||
"declaration of reference variable %0 requires an initializer">;
|
"declaration of reference variable %0 requires an initializer">;
|
||||||
def err_const_var_requires_init : Error<
|
|
||||||
"declaration of const variable '%0' requires an initializer">;
|
|
||||||
def err_reference_without_init : Error<
|
def err_reference_without_init : Error<
|
||||||
"reference to type %0 requires an initializer">;
|
"reference to type %0 requires an initializer">;
|
||||||
def err_reference_has_multiple_inits : Error<
|
def err_reference_has_multiple_inits : Error<
|
||||||
|
@ -1205,8 +1169,6 @@ def warn_cxx98_compat_temp_copy : Warning<
|
||||||
InGroup<CXX98CompatBindToTemporaryCopy>, DefaultIgnore;
|
InGroup<CXX98CompatBindToTemporaryCopy>, DefaultIgnore;
|
||||||
|
|
||||||
// C++11 decltype
|
// C++11 decltype
|
||||||
def err_cannot_determine_declared_type_of_overloaded_function : Error<
|
|
||||||
"cannot determine the type of an overloaded function">;
|
|
||||||
def warn_cxx98_compat_decltype : Warning<
|
def warn_cxx98_compat_decltype : Warning<
|
||||||
"'decltype' type specifier is incompatible with C++98">,
|
"'decltype' type specifier is incompatible with C++98">,
|
||||||
InGroup<CXX98Compat>, DefaultIgnore;
|
InGroup<CXX98Compat>, DefaultIgnore;
|
||||||
|
@ -1275,11 +1237,9 @@ def err_class_marked_final_used_as_base : Error<
|
||||||
// C++11 attributes
|
// C++11 attributes
|
||||||
def err_repeat_attribute : Error<"'%0' attribute cannot be repeated">;
|
def err_repeat_attribute : Error<"'%0' attribute cannot be repeated">;
|
||||||
|
|
||||||
// C++11 [[final]]
|
// C++11 final
|
||||||
def err_final_function_overridden : Error<
|
def err_final_function_overridden : Error<
|
||||||
"declaration of %0 overrides a 'final' function">;
|
"declaration of %0 overrides a 'final' function">;
|
||||||
def err_final_base : Error<
|
|
||||||
"derivation from 'final' %0">;
|
|
||||||
|
|
||||||
// C++11 scoped enumerations
|
// C++11 scoped enumerations
|
||||||
def err_enum_invalid_underlying : Error<
|
def err_enum_invalid_underlying : Error<
|
||||||
|
@ -1302,8 +1262,6 @@ def err_enum_class_reference : Error<
|
||||||
"not 'enum class'">;
|
"not 'enum class'">;
|
||||||
def err_only_enums_have_underlying_types : Error<
|
def err_only_enums_have_underlying_types : Error<
|
||||||
"only enumeration types have underlying types">;
|
"only enumeration types have underlying types">;
|
||||||
def err_incomplete_type_no_underlying_type : Error<
|
|
||||||
"an incomplete enumeration type has no underlying type yet">;
|
|
||||||
|
|
||||||
// C++11 delegating constructors
|
// C++11 delegating constructors
|
||||||
def err_delegating_ctor : Error<
|
def err_delegating_ctor : Error<
|
||||||
|
@ -1320,8 +1278,6 @@ def note_it_delegates_to : Note<
|
||||||
"it delegates to">, InGroup<DelegatingCtorCycles>;
|
"it delegates to">, InGroup<DelegatingCtorCycles>;
|
||||||
def note_which_delegates_to : Note<
|
def note_which_delegates_to : Note<
|
||||||
"which delegates to">, InGroup<DelegatingCtorCycles>;
|
"which delegates to">, InGroup<DelegatingCtorCycles>;
|
||||||
def err_delegating_codegen_not_implemented : Error<
|
|
||||||
"code generation for delegating constructors not implemented">;
|
|
||||||
|
|
||||||
// C++11 range-based for loop
|
// C++11 range-based for loop
|
||||||
def err_for_range_decl_must_be_var : Error<
|
def err_for_range_decl_must_be_var : Error<
|
||||||
|
@ -1368,8 +1324,6 @@ def err_constexpr_var_requires_const_init : Error<
|
||||||
def err_constexpr_redecl_mismatch : Error<
|
def err_constexpr_redecl_mismatch : Error<
|
||||||
"%select{non-constexpr declaration of %0 follows constexpr declaration"
|
"%select{non-constexpr declaration of %0 follows constexpr declaration"
|
||||||
"|constexpr declaration of %0 follows non-constexpr declaration}1">;
|
"|constexpr declaration of %0 follows non-constexpr declaration}1">;
|
||||||
def note_constexpr_redecl_mismatch : Note<
|
|
||||||
"previous declaration was %select{not |}0marked constexpr">;
|
|
||||||
def err_constexpr_virtual : Error<"virtual function cannot be constexpr">;
|
def err_constexpr_virtual : Error<"virtual function cannot be constexpr">;
|
||||||
def err_constexpr_virtual_base : Error<
|
def err_constexpr_virtual_base : Error<
|
||||||
"constexpr %select{member function|constructor}0 not allowed in "
|
"constexpr %select{member function|constructor}0 not allowed in "
|
||||||
|
@ -1500,8 +1454,6 @@ def err_typecheck_vector_not_convertable : Error<
|
||||||
"can't convert between vector values of different size (%0 and %1)">;
|
"can't convert between vector values of different size (%0 and %1)">;
|
||||||
def err_typecheck_ext_vector_not_typedef : Error<
|
def err_typecheck_ext_vector_not_typedef : Error<
|
||||||
"ext_vector_type only applies to types, not variables">;
|
"ext_vector_type only applies to types, not variables">;
|
||||||
def err_unsupported_vector_size : Error<
|
|
||||||
"unsupported type %0 for vector_size attribute, please use on typedef">;
|
|
||||||
def err_ext_vector_component_exceeds_length : Error<
|
def err_ext_vector_component_exceeds_length : Error<
|
||||||
"vector component access exceeds type %0">;
|
"vector component access exceeds type %0">;
|
||||||
def err_ext_vector_component_name_illegal : Error<
|
def err_ext_vector_component_name_illegal : Error<
|
||||||
|
@ -1520,8 +1472,6 @@ def err_as_qualified_auto_decl : Error<
|
||||||
"automatic variable qualified with an address space">;
|
"automatic variable qualified with an address space">;
|
||||||
def err_arg_with_address_space : Error<
|
def err_arg_with_address_space : Error<
|
||||||
"parameter may not be qualified with an address space">;
|
"parameter may not be qualified with an address space">;
|
||||||
def err_attr_objc_ownership_bad_type : Error<
|
|
||||||
"the type %0 cannot be retained">;
|
|
||||||
def err_attr_objc_ownership_redundant : Error<
|
def err_attr_objc_ownership_redundant : Error<
|
||||||
"the type %0 is already explicitly ownership-qualified">;
|
"the type %0 is already explicitly ownership-qualified">;
|
||||||
def err_attribute_not_string : Error<
|
def err_attribute_not_string : Error<
|
||||||
|
@ -1613,8 +1563,6 @@ def err_objc_precise_lifetime_bad_type : Error<
|
||||||
def warn_objc_precise_lifetime_meaningless : Error<
|
def warn_objc_precise_lifetime_meaningless : Error<
|
||||||
"objc_precise_lifetime is not meaningful for "
|
"objc_precise_lifetime is not meaningful for "
|
||||||
"%select{__unsafe_unretained|__autoreleasing}0 objects">;
|
"%select{__unsafe_unretained|__autoreleasing}0 objects">;
|
||||||
def warn_label_attribute_not_unused : Warning<
|
|
||||||
"The only valid attribute for labels is 'unused'">;
|
|
||||||
def err_invalid_pcs : Error<"Invalid PCS type">;
|
def err_invalid_pcs : Error<"Invalid PCS type">;
|
||||||
def err_attribute_can_be_applied_only_to_value_decl : Error<
|
def err_attribute_can_be_applied_only_to_value_decl : Error<
|
||||||
"%0 attribute can only be applied to value declarations">;
|
"%0 attribute can only be applied to value declarations">;
|
||||||
|
@ -1786,9 +1734,6 @@ def warn_attribute_nonnull_no_pointers : Warning<
|
||||||
"'nonnull' attribute applied to function with no pointer arguments">;
|
"'nonnull' attribute applied to function with no pointer arguments">;
|
||||||
def warn_attribute_malloc_pointer_only : Warning<
|
def warn_attribute_malloc_pointer_only : Warning<
|
||||||
"'malloc' attribute only applies to functions returning a pointer type">;
|
"'malloc' attribute only applies to functions returning a pointer type">;
|
||||||
def warn_transparent_union_nonpointer : Warning<
|
|
||||||
"'transparent_union' attribute support incomplete; only supported for "
|
|
||||||
"pointer unions">;
|
|
||||||
def warn_attribute_sentinel_named_arguments : Warning<
|
def warn_attribute_sentinel_named_arguments : Warning<
|
||||||
"'sentinel' attribute requires named arguments">;
|
"'sentinel' attribute requires named arguments">;
|
||||||
def warn_attribute_sentinel_not_variadic : Warning<
|
def warn_attribute_sentinel_not_variadic : Warning<
|
||||||
|
@ -1883,8 +1828,6 @@ def err_uninitialized_member_for_assign : Error<
|
||||||
"cannot define the implicit default assignment operator for %0, because "
|
"cannot define the implicit default assignment operator for %0, because "
|
||||||
"non-static %select{reference|const}1 member %2 can't use default "
|
"non-static %select{reference|const}1 member %2 can't use default "
|
||||||
"assignment operator">;
|
"assignment operator">;
|
||||||
def note_first_required_here : Note<
|
|
||||||
"synthesized method is first required here">;
|
|
||||||
def err_uninitialized_member_in_ctor : Error<
|
def err_uninitialized_member_in_ctor : Error<
|
||||||
"%select{|implicit default }0constructor for %1 must explicitly initialize "
|
"%select{|implicit default }0constructor for %1 must explicitly initialize "
|
||||||
"the %select{reference|const}2 member %3">;
|
"the %select{reference|const}2 member %3">;
|
||||||
|
@ -2664,8 +2607,6 @@ def note_using_value_decl_missing_typename : Note<
|
||||||
|
|
||||||
def err_template_kw_refers_to_non_template : Error<
|
def err_template_kw_refers_to_non_template : Error<
|
||||||
"%0 following the 'template' keyword does not refer to a template">;
|
"%0 following the 'template' keyword does not refer to a template">;
|
||||||
def err_template_kw_refers_to_function_template : Error<
|
|
||||||
"%0 following the 'template' keyword refers to a function template">;
|
|
||||||
def err_template_kw_refers_to_class_template : Error<
|
def err_template_kw_refers_to_class_template : Error<
|
||||||
"'%0%1' instantiated to a class template, not a function template">;
|
"'%0%1' instantiated to a class template, not a function template">;
|
||||||
def note_referenced_class_template : Error<
|
def note_referenced_class_template : Error<
|
||||||
|
@ -2945,8 +2886,6 @@ def err_typecheck_zero_array_size : Error<
|
||||||
def warn_typecheck_zero_static_array_size : Warning<
|
def warn_typecheck_zero_static_array_size : Warning<
|
||||||
"'static' has no effect on zero-length arrays">,
|
"'static' has no effect on zero-length arrays">,
|
||||||
InGroup<DiagGroup<"array-bounds">>;
|
InGroup<DiagGroup<"array-bounds">>;
|
||||||
def err_at_least_one_initializer_needed_to_size_array : Error<
|
|
||||||
"at least one initializer value required to size array">;
|
|
||||||
def err_array_size_non_int : Error<"size of array has non-integer type %0">;
|
def err_array_size_non_int : Error<"size of array has non-integer type %0">;
|
||||||
def err_init_element_not_constant : Error<
|
def err_init_element_not_constant : Error<
|
||||||
"initializer element is not a compile-time constant">;
|
"initializer element is not a compile-time constant">;
|
||||||
|
@ -2957,8 +2896,6 @@ def err_block_extern_cant_init : Error<
|
||||||
def warn_extern_init : Warning<"'extern' variable has an initializer">;
|
def warn_extern_init : Warning<"'extern' variable has an initializer">;
|
||||||
def err_variable_object_no_init : Error<
|
def err_variable_object_no_init : Error<
|
||||||
"variable-sized object may not be initialized">;
|
"variable-sized object may not be initialized">;
|
||||||
def err_array_init_list_required : Error<
|
|
||||||
"initialization with '{...}' expected for array">;
|
|
||||||
def err_excess_initializers : Error<
|
def err_excess_initializers : Error<
|
||||||
"excess elements in %select{array|vector|scalar|union|struct}0 initializer">;
|
"excess elements in %select{array|vector|scalar|union|struct}0 initializer">;
|
||||||
def warn_excess_initializers : ExtWarn<
|
def warn_excess_initializers : ExtWarn<
|
||||||
|
@ -3384,15 +3321,11 @@ def err_illegal_decl_mempointer_in_nonclass : Error<
|
||||||
def err_mempointer_in_nonclass_type : Error<
|
def err_mempointer_in_nonclass_type : Error<
|
||||||
"member pointer refers into non-class type %0">;
|
"member pointer refers into non-class type %0">;
|
||||||
def err_reference_to_void : Error<"cannot form a reference to 'void'">;
|
def err_reference_to_void : Error<"cannot form a reference to 'void'">;
|
||||||
def err_qualified_block_pointer_type : Error<
|
|
||||||
"qualifier specification on block pointer type not allowed">;
|
|
||||||
def err_nonfunction_block_type : Error<
|
def err_nonfunction_block_type : Error<
|
||||||
"block pointer to non-function type is invalid">;
|
"block pointer to non-function type is invalid">;
|
||||||
def err_return_block_has_expr : Error<"void block should not return a value">;
|
def err_return_block_has_expr : Error<"void block should not return a value">;
|
||||||
def err_block_return_missing_expr : Error<
|
def err_block_return_missing_expr : Error<
|
||||||
"non-void block should return a value">;
|
"non-void block should return a value">;
|
||||||
def err_block_with_return_type_requires_args : Error<
|
|
||||||
"block with explicit return type requires argument list">;
|
|
||||||
def err_func_def_incomplete_result : Error<
|
def err_func_def_incomplete_result : Error<
|
||||||
"incomplete result type %0 in function definition">;
|
"incomplete result type %0 in function definition">;
|
||||||
def err_atomic_specifier_bad_type : Error<
|
def err_atomic_specifier_bad_type : Error<
|
||||||
|
@ -3403,9 +3336,6 @@ def err_atomic_specifier_bad_type : Error<
|
||||||
// Expressions.
|
// Expressions.
|
||||||
def ext_sizeof_function_type : Extension<
|
def ext_sizeof_function_type : Extension<
|
||||||
"invalid application of 'sizeof' to a function type">, InGroup<PointerArith>;
|
"invalid application of 'sizeof' to a function type">, InGroup<PointerArith>;
|
||||||
def err_sizeof_alignof_overloaded_function_type : Error<
|
|
||||||
"invalid application of '%select{sizeof|__alignof|vec_step}0' to an "
|
|
||||||
"overloaded function">;
|
|
||||||
def ext_sizeof_void_type : Extension<
|
def ext_sizeof_void_type : Extension<
|
||||||
"invalid application of '%select{sizeof|__alignof|vec_step}0' to a void "
|
"invalid application of '%select{sizeof|__alignof|vec_step}0' to a void "
|
||||||
"type">, InGroup<PointerArith>;
|
"type">, InGroup<PointerArith>;
|
||||||
|
@ -3556,8 +3486,6 @@ def err_member_def_does_not_match_ret_type : Error<
|
||||||
"out-of-line definition of %q0 differs from the declaration in the return type">;
|
"out-of-line definition of %q0 differs from the declaration in the return type">;
|
||||||
def err_nonstatic_member_out_of_line : Error<
|
def err_nonstatic_member_out_of_line : Error<
|
||||||
"non-static data member defined out-of-line">;
|
"non-static data member defined out-of-line">;
|
||||||
def err_nonstatic_flexible_variable : Error<
|
|
||||||
"non-static initialization of a variable with flexible array member">;
|
|
||||||
def err_qualified_typedef_declarator : Error<
|
def err_qualified_typedef_declarator : Error<
|
||||||
"typedef declarator cannot be qualified">;
|
"typedef declarator cannot be qualified">;
|
||||||
def err_qualified_param_declarator : Error<
|
def err_qualified_param_declarator : Error<
|
||||||
|
@ -3656,12 +3584,8 @@ def warn_pointer_indirection_from_incompatible_type : Warning<
|
||||||
|
|
||||||
def err_objc_object_assignment : Error<
|
def err_objc_object_assignment : Error<
|
||||||
"cannot assign to class object (%0 invalid)">;
|
"cannot assign to class object (%0 invalid)">;
|
||||||
def err_direct_interface_unsupported : Error<
|
|
||||||
"indirection to an interface is not supported (%0 invalid)">;
|
|
||||||
def err_typecheck_invalid_operands : Error<
|
def err_typecheck_invalid_operands : Error<
|
||||||
"invalid operands to binary expression (%0 and %1)">;
|
"invalid operands to binary expression (%0 and %1)">;
|
||||||
def err_typecheck_sub_ptr_object : Error<
|
|
||||||
"subtraction of pointer %0 requires pointee to be a complete object type">;
|
|
||||||
def err_typecheck_sub_ptr_compatible : Error<
|
def err_typecheck_sub_ptr_compatible : Error<
|
||||||
"%0 and %1 are not pointers to compatible types">;
|
"%0 and %1 are not pointers to compatible types">;
|
||||||
def ext_typecheck_ordered_comparison_of_pointer_integer : ExtWarn<
|
def ext_typecheck_ordered_comparison_of_pointer_integer : ExtWarn<
|
||||||
|
@ -3687,8 +3611,6 @@ def err_typecheck_comparison_of_distinct_pointers : Error<
|
||||||
def ext_typecheck_comparison_of_distinct_pointers_nonstandard : ExtWarn<
|
def ext_typecheck_comparison_of_distinct_pointers_nonstandard : ExtWarn<
|
||||||
"comparison of distinct pointer types (%0 and %1) uses non-standard "
|
"comparison of distinct pointer types (%0 and %1) uses non-standard "
|
||||||
"composite pointer type %2">;
|
"composite pointer type %2">;
|
||||||
def err_typecheck_vector_comparison : Error<
|
|
||||||
"comparison of vector types (%0 and %1) not supported yet">;
|
|
||||||
def err_typecheck_assign_const : Error<"read-only variable is not assignable">;
|
def err_typecheck_assign_const : Error<"read-only variable is not assignable">;
|
||||||
def err_stmtexpr_file_scope : Error<
|
def err_stmtexpr_file_scope : Error<
|
||||||
"statement expression not allowed at file scope">;
|
"statement expression not allowed at file scope">;
|
||||||
|
@ -3734,8 +3656,6 @@ def err_invalid_incomplete_type_use : Error<
|
||||||
"invalid use of incomplete type %0">;
|
"invalid use of incomplete type %0">;
|
||||||
def err_builtin_func_cast_more_than_one_arg : Error<
|
def err_builtin_func_cast_more_than_one_arg : Error<
|
||||||
"function-style cast to a builtin type can only take one argument">;
|
"function-style cast to a builtin type can only take one argument">;
|
||||||
def err_builtin_direct_init_more_than_one_arg : Error<
|
|
||||||
"initializer of a builtin type can only take one argument">;
|
|
||||||
def err_value_init_for_array_type : Error<
|
def err_value_init_for_array_type : Error<
|
||||||
"array types cannot be value-initialized">;
|
"array types cannot be value-initialized">;
|
||||||
def warn_format_nonliteral_noargs : Warning<
|
def warn_format_nonliteral_noargs : Warning<
|
||||||
|
@ -3847,8 +3767,6 @@ def warn_register_objc_catch_parm : Warning<
|
||||||
"'register' storage specifier on @catch parameter will be ignored">;
|
"'register' storage specifier on @catch parameter will be ignored">;
|
||||||
def err_qualified_objc_catch_parm : Error<
|
def err_qualified_objc_catch_parm : Error<
|
||||||
"@catch parameter declarator cannot be qualified">;
|
"@catch parameter declarator cannot be qualified">;
|
||||||
def err_objc_pointer_cxx_catch_gnu : Error<
|
|
||||||
"can't catch Objective C exceptions in C++ in the GNU runtime">;
|
|
||||||
def warn_objc_pointer_cxx_catch_fragile : Warning<
|
def warn_objc_pointer_cxx_catch_fragile : Warning<
|
||||||
"can not catch an exception thrown with @throw in C++ in the non-unified "
|
"can not catch an exception thrown with @throw in C++ in the non-unified "
|
||||||
"exception model">, InGroup<ObjCNonUnifiedException>;
|
"exception model">, InGroup<ObjCNonUnifiedException>;
|
||||||
|
@ -3866,8 +3784,6 @@ def warn_setter_getter_impl_required_in_category : Warning<
|
||||||
"property %0 requires method %1 to be defined - "
|
"property %0 requires method %1 to be defined - "
|
||||||
"use @dynamic or provide a method implementation in this category">,
|
"use @dynamic or provide a method implementation in this category">,
|
||||||
InGroup<ObjCPropertyImpl>;
|
InGroup<ObjCPropertyImpl>;
|
||||||
def note_property_impl_required : Note<
|
|
||||||
"implementation is here">;
|
|
||||||
def note_parameter_named_here : Note<
|
def note_parameter_named_here : Note<
|
||||||
"passing argument to parameter %0 here">;
|
"passing argument to parameter %0 here">;
|
||||||
def note_parameter_here : Note<
|
def note_parameter_here : Note<
|
||||||
|
@ -3924,7 +3840,6 @@ def err_bad_static_cast_member_pointer_nonmp : Error<
|
||||||
def err_bad_cxx_cast_member_pointer_size : Error<
|
def err_bad_cxx_cast_member_pointer_size : Error<
|
||||||
"cannot %select{||reinterpret_cast||C-style cast|}0 from member pointer "
|
"cannot %select{||reinterpret_cast||C-style cast|}0 from member pointer "
|
||||||
"type %1 to member pointer type %2 of different size">;
|
"type %1 to member pointer type %2 of different size">;
|
||||||
def err_bad_static_cast_incomplete : Error<"%0 is an incomplete type">;
|
|
||||||
def err_bad_reinterpret_cast_reference : Error<
|
def err_bad_reinterpret_cast_reference : Error<
|
||||||
"reinterpret_cast of a %0 to %1 needs its address which is not allowed">;
|
"reinterpret_cast of a %0 to %1 needs its address which is not allowed">;
|
||||||
def warn_undefined_reinterpret_cast : Warning<
|
def warn_undefined_reinterpret_cast : Warning<
|
||||||
|
@ -4033,8 +3948,6 @@ def err_qualified_catch_declarator : Error<
|
||||||
def err_early_catch_all : Error<"catch-all handler must come last">;
|
def err_early_catch_all : Error<"catch-all handler must come last">;
|
||||||
def err_bad_memptr_rhs : Error<
|
def err_bad_memptr_rhs : Error<
|
||||||
"right hand operand to %0 has non pointer-to-member type %1">;
|
"right hand operand to %0 has non pointer-to-member type %1">;
|
||||||
def err_memptr_rhs_to_incomplete : Error<
|
|
||||||
"cannot dereference pointer into incomplete class type %0">;
|
|
||||||
def err_bad_memptr_lhs : Error<
|
def err_bad_memptr_lhs : Error<
|
||||||
"left hand operand to %0 must be a %select{|pointer to }1class "
|
"left hand operand to %0 must be a %select{|pointer to }1class "
|
||||||
"compatible with the right hand operand, but is %2">;
|
"compatible with the right hand operand, but is %2">;
|
||||||
|
@ -4066,7 +3979,6 @@ def warn_overaligned_type : Warning<
|
||||||
"type %0 requires %1 bytes of alignment and the default allocator only "
|
"type %0 requires %1 bytes of alignment and the default allocator only "
|
||||||
"guarantees %2 bytes">,
|
"guarantees %2 bytes">,
|
||||||
InGroup<OveralignedType>, DefaultIgnore;
|
InGroup<OveralignedType>, DefaultIgnore;
|
||||||
def note_overaligned_type : Note<"over-aligned here">;
|
|
||||||
|
|
||||||
def err_conditional_void_nonvoid : Error<
|
def err_conditional_void_nonvoid : Error<
|
||||||
"%select{left|right}1 operand to ? is void, but %select{right|left}1 operand "
|
"%select{left|right}1 operand to ? is void, but %select{right|left}1 operand "
|
||||||
|
@ -4140,9 +4052,6 @@ def err_dtor_expr_without_call : Error<
|
||||||
def err_pseudo_dtor_destructor_non_type : Error<
|
def err_pseudo_dtor_destructor_non_type : Error<
|
||||||
"%0 does not refer to a type name in pseudo-destructor expression; expected "
|
"%0 does not refer to a type name in pseudo-destructor expression; expected "
|
||||||
"the name of type %1">;
|
"the name of type %1">;
|
||||||
def err_pseudo_dtor_template : Error<
|
|
||||||
"specialization of template %0 does not refer to a scalar type in pseudo-"
|
|
||||||
"destructor expression">;
|
|
||||||
def err_invalid_use_of_function_type : Error<
|
def err_invalid_use_of_function_type : Error<
|
||||||
"a function type is not allowed here">;
|
"a function type is not allowed here">;
|
||||||
def err_invalid_use_of_array_type : Error<"an array type is not allowed here">;
|
def err_invalid_use_of_array_type : Error<"an array type is not allowed here">;
|
||||||
|
@ -4160,8 +4069,6 @@ def err_typecheck_deleted_function : Error<
|
||||||
def err_expected_class_or_namespace : Error<"expected a class or namespace">;
|
def err_expected_class_or_namespace : Error<"expected a class or namespace">;
|
||||||
def err_expected_class : Error<"%0 is not a class%select{ or namespace|, "
|
def err_expected_class : Error<"%0 is not a class%select{ or namespace|, "
|
||||||
"namespace, or scoped enumeration}1">;
|
"namespace, or scoped enumeration}1">;
|
||||||
def err_missing_qualified_for_redecl : Error<
|
|
||||||
"must qualify the name %0 to declare %q1 in this scope">;
|
|
||||||
def err_invalid_declarator_scope : Error<
|
def err_invalid_declarator_scope : Error<
|
||||||
"definition or redeclaration of %0 not in a namespace enclosing %1">;
|
"definition or redeclaration of %0 not in a namespace enclosing %1">;
|
||||||
def err_invalid_declarator_global_scope : Error<
|
def err_invalid_declarator_global_scope : Error<
|
||||||
|
@ -4175,8 +4082,6 @@ def err_cannot_form_pointer_to_member_of_reference_type : Error<
|
||||||
"cannot form a pointer-to-member to member %0 of reference type %1">;
|
"cannot form a pointer-to-member to member %0 of reference type %1">;
|
||||||
def err_incomplete_object_call : Error<
|
def err_incomplete_object_call : Error<
|
||||||
"incomplete type in call to object of type %0">;
|
"incomplete type in call to object of type %0">;
|
||||||
def err_incomplete_pointer_to_member_return : Error<
|
|
||||||
"incomplete return type %0 of pointer-to-member constant">;
|
|
||||||
|
|
||||||
def warn_condition_is_assignment : Warning<"using the result of an "
|
def warn_condition_is_assignment : Warning<"using the result of an "
|
||||||
"assignment as a condition without parentheses">,
|
"assignment as a condition without parentheses">,
|
||||||
|
@ -4199,12 +4104,6 @@ def note_equality_comparison_to_assign : Note<
|
||||||
def note_equality_comparison_silence : Note<
|
def note_equality_comparison_silence : Note<
|
||||||
"remove extraneous parentheses around the comparison to silence this warning">;
|
"remove extraneous parentheses around the comparison to silence this warning">;
|
||||||
|
|
||||||
def warn_synthesized_ivar_access : Warning<
|
|
||||||
"direct access of synthesized ivar by using property access %0">,
|
|
||||||
InGroup<NonfragileAbi2>, DefaultIgnore;
|
|
||||||
|
|
||||||
def note_global_declared_at : Note<"global variable declared here">;
|
|
||||||
|
|
||||||
// assignment related diagnostics (also for argument passing, returning, etc).
|
// assignment related diagnostics (also for argument passing, returning, etc).
|
||||||
// In most of these diagnostics the %2 is a value from the
|
// In most of these diagnostics the %2 is a value from the
|
||||||
// Sema::AssignmentAction enumeration
|
// Sema::AssignmentAction enumeration
|
||||||
|
@ -4334,8 +4233,6 @@ def err_typecheck_incompatible_ownership : Error<
|
||||||
"|sending %0 to parameter of type %1"
|
"|sending %0 to parameter of type %1"
|
||||||
"|casting %0 to type %1}2"
|
"|casting %0 to type %1}2"
|
||||||
" changes retain/release properties of pointer">;
|
" changes retain/release properties of pointer">;
|
||||||
def err_typecheck_convert_ambiguous : Error<
|
|
||||||
"ambiguity in initializing value of type %0 with initializer of type %1">;
|
|
||||||
def err_typecheck_comparison_of_distinct_blocks : Error<
|
def err_typecheck_comparison_of_distinct_blocks : Error<
|
||||||
"comparison of distinct block types (%0 and %1)">;
|
"comparison of distinct block types (%0 and %1)">;
|
||||||
|
|
||||||
|
@ -4469,9 +4366,6 @@ def warn_typecheck_cond_pointer_integer_mismatch : ExtWarn<
|
||||||
InGroup<DiagGroup<"conditional-type-mismatch">>;
|
InGroup<DiagGroup<"conditional-type-mismatch">>;
|
||||||
def err_typecheck_choose_expr_requires_constant : Error<
|
def err_typecheck_choose_expr_requires_constant : Error<
|
||||||
"'__builtin_choose_expr' requires a constant expression">;
|
"'__builtin_choose_expr' requires a constant expression">;
|
||||||
def ext_typecheck_expression_not_constant : Extension<
|
|
||||||
"expression is not a constant; folding it to one is a GNU extension">,
|
|
||||||
InGroup<GNU>;
|
|
||||||
def warn_unused_expr : Warning<"expression result unused">,
|
def warn_unused_expr : Warning<"expression result unused">,
|
||||||
InGroup<UnusedValue>;
|
InGroup<UnusedValue>;
|
||||||
def warn_unused_voidptr : Warning<
|
def warn_unused_voidptr : Warning<
|
||||||
|
@ -4539,10 +4433,6 @@ def err_invalid_conversion_between_vector_and_integer : Error<
|
||||||
|
|
||||||
def err_invalid_conversion_between_vector_and_scalar : Error<
|
def err_invalid_conversion_between_vector_and_scalar : Error<
|
||||||
"invalid conversion between vector type %0 and scalar type %1">;
|
"invalid conversion between vector type %0 and scalar type %1">;
|
||||||
def err_overload_expr_requires_non_zero_constant : Error<
|
|
||||||
"overload requires a non-zero constant expression as first argument">;
|
|
||||||
def err_overload_incorrect_fntype : Error<
|
|
||||||
"argument is not a function, or has wrong number of parameters">;
|
|
||||||
|
|
||||||
// C++ member initializers.
|
// C++ member initializers.
|
||||||
def err_only_constructors_take_base_inits : Error<
|
def err_only_constructors_take_base_inits : Error<
|
||||||
|
@ -4661,14 +4551,6 @@ def err_memptr_conv_via_virtual : Error<
|
||||||
"conversion from pointer to member of class %0 to pointer to member "
|
"conversion from pointer to member of class %0 to pointer to member "
|
||||||
"of class %1 via virtual base %2 is not allowed">;
|
"of class %1 via virtual base %2 is not allowed">;
|
||||||
|
|
||||||
// C++ access control
|
|
||||||
def err_conv_to_inaccessible_base : Error<
|
|
||||||
"conversion from %0 to inaccessible base class %1">, AccessControl;
|
|
||||||
def note_inheritance_specifier_here : Note<
|
|
||||||
"'%0' inheritance specifier here">;
|
|
||||||
def note_inheritance_implicitly_private_here : Note<
|
|
||||||
"inheritance is implicitly 'private'">;
|
|
||||||
|
|
||||||
// C++ member name lookup
|
// C++ member name lookup
|
||||||
def err_ambiguous_member_multiple_subobjects : Error<
|
def err_ambiguous_member_multiple_subobjects : Error<
|
||||||
"non-static member %0 found in multiple base-class subobjects of type %1:%2">;
|
"non-static member %0 found in multiple base-class subobjects of type %1:%2">;
|
||||||
|
@ -4994,9 +4876,6 @@ def err_generic_sel_multi_match : Error<
|
||||||
// Blocks
|
// Blocks
|
||||||
def err_blocks_disable : Error<"blocks support disabled - compile with -fblocks"
|
def err_blocks_disable : Error<"blocks support disabled - compile with -fblocks"
|
||||||
" or pick a deployment target that supports them">;
|
" or pick a deployment target that supports them">;
|
||||||
def err_expected_block_lbrace : Error<"expected '{' in block literal">;
|
|
||||||
def err_return_in_block_expression : Error<
|
|
||||||
"return not allowed in block expression literal">;
|
|
||||||
def err_block_returning_array_function : Error<
|
def err_block_returning_array_function : Error<
|
||||||
"block cannot return %select{array|function}0 type %1">;
|
"block cannot return %select{array|function}0 type %1">;
|
||||||
|
|
||||||
|
@ -5183,8 +5062,6 @@ def err_decimal_unsupported : Error<
|
||||||
"GNU decimal type extension not supported">;
|
"GNU decimal type extension not supported">;
|
||||||
def err_missing_type_specifier : Error<
|
def err_missing_type_specifier : Error<
|
||||||
"C++ requires a type specifier for all declarations">;
|
"C++ requires a type specifier for all declarations">;
|
||||||
def err_missing_param_declspec : Error<
|
|
||||||
"parameter requires a declaration specifier">;
|
|
||||||
def err_objc_array_of_interfaces : Error<
|
def err_objc_array_of_interfaces : Error<
|
||||||
"array of interface %0 is invalid (probably should be an array of pointers)">;
|
"array of interface %0 is invalid (probably should be an array of pointers)">;
|
||||||
def ext_c99_array_usage : Extension<
|
def ext_c99_array_usage : Extension<
|
||||||
|
|
|
@ -17,8 +17,7 @@ This test serves two purposes:
|
||||||
|
|
||||||
The list of warnings below should NEVER grow. It should gradually shrink to 0.
|
The list of warnings below should NEVER grow. It should gradually shrink to 0.
|
||||||
|
|
||||||
CHECK: Warnings without flags (266):
|
CHECK: Warnings without flags (258):
|
||||||
CHECK-NEXT: ext_anon_param_requires_type_specifier
|
|
||||||
CHECK-NEXT: ext_anonymous_struct_union_qualified
|
CHECK-NEXT: ext_anonymous_struct_union_qualified
|
||||||
CHECK-NEXT: ext_array_init_copy
|
CHECK-NEXT: ext_array_init_copy
|
||||||
CHECK-NEXT: ext_binary_literal
|
CHECK-NEXT: ext_binary_literal
|
||||||
|
@ -145,16 +144,13 @@ CHECK-NEXT: warn_division_by_zero
|
||||||
CHECK-NEXT: warn_double_const_requires_fp64
|
CHECK-NEXT: warn_double_const_requires_fp64
|
||||||
CHECK-NEXT: warn_drv_assuming_mfloat_abi_is
|
CHECK-NEXT: warn_drv_assuming_mfloat_abi_is
|
||||||
CHECK-NEXT: warn_drv_clang_unsupported
|
CHECK-NEXT: warn_drv_clang_unsupported
|
||||||
CHECK-NEXT: warn_drv_conflicting_deployment_targets
|
|
||||||
CHECK-NEXT: warn_drv_input_file_unused
|
CHECK-NEXT: warn_drv_input_file_unused
|
||||||
CHECK-NEXT: warn_drv_not_using_clang_arch
|
CHECK-NEXT: warn_drv_not_using_clang_arch
|
||||||
CHECK-NEXT: warn_drv_not_using_clang_cpp
|
CHECK-NEXT: warn_drv_not_using_clang_cpp
|
||||||
CHECK-NEXT: warn_drv_not_using_clang_cxx
|
CHECK-NEXT: warn_drv_not_using_clang_cxx
|
||||||
CHECK-NEXT: warn_drv_objc_gc_unsupported
|
CHECK-NEXT: warn_drv_objc_gc_unsupported
|
||||||
CHECK-NEXT: warn_drv_pch_not_first_include
|
CHECK-NEXT: warn_drv_pch_not_first_include
|
||||||
CHECK-NEXT: warn_drv_pipe_ignored_with_save_temps
|
|
||||||
CHECK-NEXT: warn_drv_preprocessed_input_file_unused
|
CHECK-NEXT: warn_drv_preprocessed_input_file_unused
|
||||||
CHECK-NEXT: warn_drv_unsupported_option_argument
|
|
||||||
CHECK-NEXT: warn_dup_category_def
|
CHECK-NEXT: warn_dup_category_def
|
||||||
CHECK-NEXT: warn_duplicate_protocol_def
|
CHECK-NEXT: warn_duplicate_protocol_def
|
||||||
CHECK-NEXT: warn_enum_too_large
|
CHECK-NEXT: warn_enum_too_large
|
||||||
|
@ -185,7 +181,6 @@ CHECK-NEXT: warn_instance_method_on_class_found
|
||||||
CHECK-NEXT: warn_integer_too_large
|
CHECK-NEXT: warn_integer_too_large
|
||||||
CHECK-NEXT: warn_integer_too_large_for_signed
|
CHECK-NEXT: warn_integer_too_large_for_signed
|
||||||
CHECK-NEXT: warn_invalid_asm_cast_lvalue
|
CHECK-NEXT: warn_invalid_asm_cast_lvalue
|
||||||
CHECK-NEXT: warn_label_attribute_not_unused
|
|
||||||
CHECK-NEXT: warn_many_braces_around_scalar_init
|
CHECK-NEXT: warn_many_braces_around_scalar_init
|
||||||
CHECK-NEXT: warn_maynot_respond
|
CHECK-NEXT: warn_maynot_respond
|
||||||
CHECK-NEXT: warn_member_extra_qualification
|
CHECK-NEXT: warn_member_extra_qualification
|
||||||
|
@ -231,7 +226,6 @@ CHECK-NEXT: warn_pragma_options_align_unsupported_option
|
||||||
CHECK-NEXT: warn_pragma_options_expected_align
|
CHECK-NEXT: warn_pragma_options_expected_align
|
||||||
CHECK-NEXT: warn_pragma_pack_invalid_action
|
CHECK-NEXT: warn_pragma_pack_invalid_action
|
||||||
CHECK-NEXT: warn_pragma_pack_invalid_alignment
|
CHECK-NEXT: warn_pragma_pack_invalid_alignment
|
||||||
CHECK-NEXT: warn_pragma_pack_invalid_constant
|
|
||||||
CHECK-NEXT: warn_pragma_pack_malformed
|
CHECK-NEXT: warn_pragma_pack_malformed
|
||||||
CHECK-NEXT: warn_pragma_pack_pop_failed
|
CHECK-NEXT: warn_pragma_pack_pop_failed
|
||||||
CHECK-NEXT: warn_pragma_pack_pop_identifer_and_alignment
|
CHECK-NEXT: warn_pragma_pack_pop_identifer_and_alignment
|
||||||
|
@ -269,14 +263,12 @@ CHECK-NEXT: warn_transparent_union_attribute_field_size_align
|
||||||
CHECK-NEXT: warn_transparent_union_attribute_floating
|
CHECK-NEXT: warn_transparent_union_attribute_floating
|
||||||
CHECK-NEXT: warn_transparent_union_attribute_not_definition
|
CHECK-NEXT: warn_transparent_union_attribute_not_definition
|
||||||
CHECK-NEXT: warn_transparent_union_attribute_zero_fields
|
CHECK-NEXT: warn_transparent_union_attribute_zero_fields
|
||||||
CHECK-NEXT: warn_transparent_union_nonpointer
|
|
||||||
CHECK-NEXT: warn_typecheck_function_qualifiers
|
CHECK-NEXT: warn_typecheck_function_qualifiers
|
||||||
CHECK-NEXT: warn_unavailable_fwdclass_message
|
CHECK-NEXT: warn_unavailable_fwdclass_message
|
||||||
CHECK-NEXT: warn_undef_interface
|
CHECK-NEXT: warn_undef_interface
|
||||||
CHECK-NEXT: warn_undef_interface_suggest
|
CHECK-NEXT: warn_undef_interface_suggest
|
||||||
CHECK-NEXT: warn_undef_protocolref
|
CHECK-NEXT: warn_undef_protocolref
|
||||||
CHECK-NEXT: warn_undefined_internal
|
CHECK-NEXT: warn_undefined_internal
|
||||||
CHECK-NEXT: warn_uninit_val
|
|
||||||
CHECK-NEXT: warn_unknown_analyzer_checker
|
CHECK-NEXT: warn_unknown_analyzer_checker
|
||||||
CHECK-NEXT: warn_unknown_method_family
|
CHECK-NEXT: warn_unknown_method_family
|
||||||
CHECK-NEXT: warn_unterminated_char
|
CHECK-NEXT: warn_unterminated_char
|
||||||
|
|
Loading…
Reference in New Issue