diff options
Diffstat (limited to 'contrib/llvm-project/clang/include/clang/Basic/DiagnosticCommonKinds.td')
-rw-r--r-- | contrib/llvm-project/clang/include/clang/Basic/DiagnosticCommonKinds.td | 100 |
1 files changed, 75 insertions, 25 deletions
diff --git a/contrib/llvm-project/clang/include/clang/Basic/DiagnosticCommonKinds.td b/contrib/llvm-project/clang/include/clang/Basic/DiagnosticCommonKinds.td index 4dff3379ed35..ee994e765e09 100644 --- a/contrib/llvm-project/clang/include/clang/Basic/DiagnosticCommonKinds.td +++ b/contrib/llvm-project/clang/include/clang/Basic/DiagnosticCommonKinds.td @@ -55,7 +55,7 @@ def err_expected_colon_after_setter_name : Error< def err_expected_string_literal : Error<"expected string literal " "%select{in %1|for diagnostic message in static_assert|" "for optional message in 'availability' attribute|" - "for %select{language|source container}1 name in " + "for %select{language name|source container name|USR}1 in " "'external_source_symbol' attribute}0">; def err_invalid_string_udl : Error< "string literal with user-defined suffix cannot be used here">; @@ -63,6 +63,10 @@ def err_invalid_character_udl : Error< "character literal with user-defined suffix cannot be used here">; def err_invalid_numeric_udl : Error< "numeric literal with user-defined suffix cannot be used here">; +def warn_pragma_debug_missing_argument : Warning< + "missing argument to debug command '%0'">, InGroup<IgnoredPragmas>; +def warn_pragma_debug_unexpected_argument : Warning< + "unexpected argument to debug command">, InGroup<IgnoredPragmas>; } @@ -117,13 +121,21 @@ def note_pragma_entered_here : Note<"#pragma entered here">; def note_decl_hiding_tag_type : Note< "%1 %0 is hidden by a non-type declaration of %0 here">; def err_attribute_not_type_attr : Error< - "%0 attribute cannot be applied to types">; + "%0%select{ attribute|}1 cannot be applied to types">; def err_enum_template : Error<"enumeration cannot be a template">; def warn_cxx20_compat_consteval : Warning< "'consteval' specifier is incompatible with C++ standards before C++20">, InGroup<CXX20Compat>, DefaultIgnore; - +def warn_missing_type_specifier : Warning< + "type specifier missing, defaults to 'int'">, + InGroup<ImplicitInt>, DefaultIgnore; + +def ext_c_empty_initializer : Extension< + "use of an empty initializer is a C2x extension">, InGroup<C2x>; +def warn_c2x_compat_empty_initializer : Warning< + "use of an empty initializer is incompatible with C standards before C2x">, + InGroup<CPre2xCompat>, DefaultIgnore; } let CategoryName = "Nullability Issue" in { @@ -145,15 +157,26 @@ def warn_conflicting_nullability_attr_overriding_param_types : Warning< def err_nullability_conflicting : Error< "nullability specifier %0 conflicts with existing specifier %1">; +def warn_incompatible_branch_protection_option: Warning < + "'-mbranch-protection=' option is incompatible with the '%0' architecture">, + InGroup<BranchProtection>; + +def warn_target_unsupported_branch_protection_attribute: Warning < + "ignoring the 'branch-protection' attribute because the '%0' architecture does not support it">, + InGroup<BranchProtection>; } // OpenCL Section 6.8.g def err_opencl_unknown_type_specifier : Error< - "%select{OpenCL C|C++ for OpenCL}0 version %1 does not support the " - "'%2' %select{type qualifier|storage class specifier}3">; + "%0 does not support the '%1' " + "%select{type qualifier|storage class specifier}2">; def warn_unknown_attribute_ignored : Warning< "unknown attribute %0 ignored">, InGroup<UnknownAttributes>; +def warn_attribute_ignored : Warning<"%0 attribute ignored">, + InGroup<IgnoredAttributes>; +def err_keyword_not_supported_on_target : Error< + "%0 is not supported on this target">; def err_use_of_tag_name_without_tag : Error< "must use '%1' tag to refer to type %0%select{| in this scope}2">; @@ -189,17 +212,23 @@ def ext_cxx11_longlong : Extension< def warn_cxx98_compat_longlong : Warning< "'long long' is incompatible with C++98">, InGroup<CXX98CompatPedantic>, DefaultIgnore; -def ext_cxx2b_size_t_suffix : ExtWarn< - "'size_t' suffix for literals is a C++2b extension">, - InGroup<CXX2b>; +def ext_cxx23_size_t_suffix : ExtWarn< + "'size_t' suffix for literals is a C++23 extension">, + InGroup<CXX23>; def warn_cxx20_compat_size_t_suffix : Warning< "'size_t' suffix for literals is incompatible with C++ standards before " - "C++2b">, InGroup<CXXPre2bCompat>, DefaultIgnore; -def err_cxx2b_size_t_suffix: Error< - "'size_t' suffix for literals is a C++2b feature">; + "C++23">, InGroup<CXXPre23Compat>, DefaultIgnore; +def err_cxx23_size_t_suffix: Error< + "'size_t' suffix for literals is a C++23 feature">; def err_size_t_literal_too_large: Error< "%select{signed |}0'size_t' literal is out of range of possible " "%select{signed |}0'size_t' values">; +def ext_c2x_bitint_suffix : ExtWarn< + "'_BitInt' suffix for literals is a C2x extension">, + InGroup<C2x>; +def warn_c2x_compat_bitint_suffix : Warning< + "'_BitInt' suffix for literals is incompatible with C standards before C2x">, + InGroup<CPre2xCompat>, DefaultIgnore; def err_integer_literal_too_large : Error< "integer literal is too large to be represented in any %select{signed |}0" "integer type">; @@ -252,34 +281,37 @@ def note_constexpr_invalid_template_arg : Note< "%select{type_info object|string literal|temporary object|" "predefined '%3' variable}2 is not allowed in a template argument">; def err_constexpr_invalid_template_arg : Error< - note_constexpr_invalid_template_arg.Text>; + note_constexpr_invalid_template_arg.Summary>; // Sema && Frontend let CategoryName = "Inline Assembly Issue" in { - def err_asm_invalid_type_in_input : Error< - "invalid type %0 in asm input for constraint '%1'">; +def err_asm_invalid_type_in_input : Error< + "invalid type %0 in asm input for constraint '%1'">; + +def err_asm_invalid_type : Error< + "invalid type %0 in asm %select{input|output}1">; - def err_asm_invalid_type : Error< - "invalid type %0 in asm %select{input|output}1">; +def err_ms_asm_bitfield_unsupported : Error< + "an inline asm block cannot have an operand which is a bit-field">; - def warn_stack_clash_protection_inline_asm : Warning< - "Unable to protect inline asm that clobbers stack pointer against stack clash">, - InGroup<DiagGroup<"stack-protector">>; +def warn_stack_clash_protection_inline_asm : Warning< + "unable to protect inline asm that clobbers stack pointer against stack " + "clash">, InGroup<DiagGroup<"stack-protector">>; - def warn_slh_does_not_support_asm_goto - : Warning<"Speculative load hardening does not protect functions with " - "asm goto">, - InGroup<DiagGroup<"slh-asm-goto">>; +def warn_slh_does_not_support_asm_goto : Warning< + "speculative load hardening does not protect functions with asm goto">, + InGroup<DiagGroup<"slh-asm-goto">>; } // Sema && Serialization def warn_dup_category_def : Warning< - "duplicate definition of category %1 on interface %0">; + "duplicate definition of category %1 on interface %0">, + InGroup<DiagGroup<"objc-duplicate-category-definition">>; // Targets def err_target_unknown_triple : Error< - "unknown target triple '%0', please use -triple or -arch">; + "unknown target triple '%0'">; def err_target_unknown_cpu : Error<"unknown target CPU '%0'">; def note_valid_options : Note<"valid target CPU values are: %0">; def err_target_unsupported_cpu_for_micromips : Error< @@ -298,6 +330,8 @@ def err_target_unsupported_unaligned : Error< "the %0 sub-architecture does not support unaligned accesses">; def err_target_unsupported_execute_only : Error< "execute only is not supported for the %0 sub-architecture">; +def err_target_unsupported_tp_hard : Error< + "hardware TLS register is not supported for the %0 sub-architecture">; def err_target_unsupported_mcmse : Error< "-mcmse is not supported for %0">; def err_opt_not_valid_with_opt : Error< @@ -306,6 +340,11 @@ def err_opt_not_valid_without_opt : Error< "option '%0' cannot be specified without '%1'">; def err_opt_not_valid_on_target : Error< "option '%0' cannot be specified on this target">; +def err_invalid_feature_combination : Error< + "invalid feature combination: %0">; +def warn_target_unrecognized_env : Warning< + "mismatch between architecture and environment in target triple '%0'; did you mean '%1'?">, + InGroup<InvalidCommandLineArgument>; // Source manager def err_cannot_open_file : Error<"cannot open file '%0': %1">, DefaultFatal; @@ -322,6 +361,17 @@ def err_unable_to_rename_temp : Error< "unable to rename temporary '%0' to output file '%1': '%2'">; def err_unable_to_make_temp : Error< "unable to make temporary file: %0">; +def remark_sloc_usage : Remark< + "source manager location address space usage:">, + InGroup<DiagGroup<"sloc-usage">>, DefaultRemark, ShowInSystemHeader; +def note_total_sloc_usage : Note< + "%0B in local locations, %1B in locations loaded from AST files, for a total " + "of %2B (%3%% of available space)">; +def note_file_sloc_usage : Note< + "file entered %0 time%s0 using %1B of space" + "%plural{0:|: plus %2B for macro expansions}2">; +def note_file_misc_sloc_usage : Note< + "%0 additional files entered using a total of %1B of space">; // Modules def err_module_format_unhandled : Error< |