diff options
author | Ted Kremenek <kremenek@apple.com> | 2011-09-22 19:24:22 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2011-09-22 19:24:22 +0000 |
commit | d0109823a08e19d6b27ee28ecfef1244611f09f9 (patch) | |
tree | 4811577522836e8f4933e91fb2528775b65887f6 | |
parent | 5f625712f622f6e57de17b6f7eec242956b993ee (diff) |
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
-rw-r--r-- | include/clang/Basic/DiagnosticSemaKinds.td | 3 | ||||
-rw-r--r-- | test/Misc/warning-flags.c | 3 |
2 files changed, 3 insertions, 3 deletions
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<DiagGroup<"shadow-ivar">>; 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 |