]> granicus.if.org Git - clang/commitdiff
Place diagnostic warn_ivar_use_hidden under the flag -Wshadow-ivar.
authorTed Kremenek <kremenek@apple.com>
Thu, 22 Sep 2011 19:24:22 +0000 (19:24 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 22 Sep 2011 19:24:22 +0000 (19:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140329 91177308-0d34-0410-b5e6-96231b3b80d8

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

index e8cc275b73b840da3249c0144dc1f2aa978f59cd..57e4285d0ecf139a1a3c80afdbd4740588fad2be 100644 (file)
@@ -4626,7 +4626,8 @@ def note_getter_unavailable : Note<
 def err_invalid_protocol_qualifiers : Error<
   "invalid protocol qualifiers on non-ObjC type">;
 def warn_ivar_use_hidden : Warning<
-  "local declaration of %0 hides instance variable">;
+  "local declaration of %0 hides instance variable">,
+   InGroup<DiagGroup<"shadow-ivar">>;
 def error_ivar_use_in_class_method : Error<
   "instance variable %0 accessed in class method">;
 def error_implicit_ivar_access : Error<
index 50abbff6b5f52474bd2426c8baa1fff130fc6e13..5b6bac49e6740549a7f286765f2226d783e6291d 100644 (file)
@@ -17,7 +17,7 @@ This test serves two purposes:
 
 The list of warnings below should NEVER grow.  It should gradually shrink to 0.
 
-CHECK: Warnings without flags (311):
+CHECK: Warnings without flags (310):
 CHECK-NEXT:   backslash_newline_space
 CHECK-NEXT:   charize_microsoft_ext
 CHECK-NEXT:   ext_anon_param_requires_type_specifier
@@ -219,7 +219,6 @@ CHECK-NEXT:   warn_instance_method_on_class_found
 CHECK-NEXT:   warn_integer_too_large
 CHECK-NEXT:   warn_integer_too_large_for_signed
 CHECK-NEXT:   warn_invalid_asm_cast_lvalue
-CHECK-NEXT:   warn_ivar_use_hidden
 CHECK-NEXT:   warn_label_attribute_not_unused
 CHECK-NEXT:   warn_many_braces_around_scalar_init
 CHECK-NEXT:   warn_maynot_respond