Skip to content
Snippets Groups Projects
Commit 9adb1ed3 authored by Nico Weber's avatar Nico Weber
Browse files

Add a warning flag for an existing diagnostic.

One more, and the number of flags without a dedicated flag fits in two decimal
digits :-)


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@215946 91177308-0d34-0410-b5e6-96231b3b80d8
parent 8312572e
No related branches found
No related tags found
No related merge requests found
...@@ -2074,7 +2074,8 @@ def err_attribute_aligned_not_power_of_two : Error< ...@@ -2074,7 +2074,8 @@ def err_attribute_aligned_not_power_of_two : Error<
def err_attribute_aligned_too_great : Error< def err_attribute_aligned_too_great : Error<
"requested alignment must be %0 bytes or smaller">; "requested alignment must be %0 bytes or smaller">;
def warn_redeclaration_without_attribute_prev_attribute_ignored : Warning< def warn_redeclaration_without_attribute_prev_attribute_ignored : Warning<
"%q0 redeclared without %1 attribute: previous %1 ignored">; "%q0 redeclared without %1 attribute: previous %1 ignored">,
InGroup<DiagGroup<"inconsistent-dllimport">>;
def warn_attribute_ignored : Warning<"%0 attribute ignored">, def warn_attribute_ignored : Warning<"%0 attribute ignored">,
InGroup<IgnoredAttributes>; InGroup<IgnoredAttributes>;
def warn_attribute_after_definition_ignored : Warning< def warn_attribute_after_definition_ignored : Warning<
......
...@@ -18,7 +18,7 @@ This test serves two purposes: ...@@ -18,7 +18,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 (101): CHECK: Warnings without flags (100):
CHECK-NEXT: ext_delete_void_ptr_operand CHECK-NEXT: ext_delete_void_ptr_operand
CHECK-NEXT: ext_excess_initializers CHECK-NEXT: ext_excess_initializers
CHECK-NEXT: ext_excess_initializers_in_char_array_initializer CHECK-NEXT: ext_excess_initializers_in_char_array_initializer
...@@ -106,7 +106,6 @@ CHECK-NEXT: warn_pragma_pack_show ...@@ -106,7 +106,6 @@ CHECK-NEXT: warn_pragma_pack_show
CHECK-NEXT: warn_property_getter_owning_mismatch CHECK-NEXT: warn_property_getter_owning_mismatch
CHECK-NEXT: warn_property_types_are_incompatible CHECK-NEXT: warn_property_types_are_incompatible
CHECK-NEXT: warn_readonly_property CHECK-NEXT: warn_readonly_property
CHECK-NEXT: warn_redeclaration_without_attribute_prev_attribute_ignored
CHECK-NEXT: warn_register_objc_catch_parm CHECK-NEXT: warn_register_objc_catch_parm
CHECK-NEXT: warn_related_result_type_compatibility_class CHECK-NEXT: warn_related_result_type_compatibility_class
CHECK-NEXT: warn_related_result_type_compatibility_protocol CHECK-NEXT: warn_related_result_type_compatibility_protocol
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment