From: Ted Kremenek Date: Thu, 22 Sep 2011 19:24:22 +0000 (+0000) Subject: Place diagnostic warn_ivar_use_hidden under the flag -Wshadow-ivar. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d0109823a08e19d6b27ee28ecfef1244611f09f9;p=clang Place diagnostic warn_ivar_use_hidden under the flag -Wshadow-ivar. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140329 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Basic/DiagnosticSemaKinds.td b/include/clang/Basic/DiagnosticSemaKinds.td index e8cc275b73..57e4285d0e 100644 --- a/include/clang/Basic/DiagnosticSemaKinds.td +++ b/include/clang/Basic/DiagnosticSemaKinds.td @@ -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>; def error_ivar_use_in_class_method : Error< "instance variable %0 accessed in class method">; def error_implicit_ivar_access : Error< diff --git a/test/Misc/warning-flags.c b/test/Misc/warning-flags.c index 50abbff6b5..5b6bac49e6 100644 --- a/test/Misc/warning-flags.c +++ b/test/Misc/warning-flags.c @@ -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