]> granicus.if.org Git - clang/commitdiff
Add a warning flag for an existing diagnostic.
authorNico Weber <nicolasweber@gmx.de>
Mon, 18 Aug 2014 23:02:03 +0000 (23:02 +0000)
committerNico Weber <nicolasweber@gmx.de>
Mon, 18 Aug 2014 23:02:03 +0000 (23:02 +0000)
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

include/clang/Basic/DiagnosticSemaKinds.td
test/Misc/warning-flags.c

index a1b2bc6389c79c7401fe77c8b44355f66fc6ed1d..2385f375de66ba4062070b0bf8a102159075e447 100644 (file)
@@ -2074,7 +2074,8 @@ def err_attribute_aligned_not_power_of_two : Error<
 def err_attribute_aligned_too_great : Error<
   "requested alignment must be %0 bytes or smaller">;
 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">,
   InGroup<IgnoredAttributes>;
 def warn_attribute_after_definition_ignored : Warning<
index 69706be283b8566d4f2b3e9686a35feaa4bd5801..015b1f9dd5a49c561123c7746f472d5e81657ac2 100644 (file)
@@ -18,7 +18,7 @@ This test serves two purposes:
 
 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_excess_initializers
 CHECK-NEXT:   ext_excess_initializers_in_char_array_initializer
@@ -106,7 +106,6 @@ CHECK-NEXT:   warn_pragma_pack_show
 CHECK-NEXT:   warn_property_getter_owning_mismatch
 CHECK-NEXT:   warn_property_types_are_incompatible
 CHECK-NEXT:   warn_readonly_property
-CHECK-NEXT:   warn_redeclaration_without_attribute_prev_attribute_ignored
 CHECK-NEXT:   warn_register_objc_catch_parm
 CHECK-NEXT:   warn_related_result_type_compatibility_class
 CHECK-NEXT:   warn_related_result_type_compatibility_protocol