aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2011-10-04 15:53:53 +0000
committerTed Kremenek <kremenek@apple.com>2011-10-04 15:53:53 +0000
commit06d92bf8a294412340b94e0f4c1b4b78b2651824 (patch)
tree45cc5a61571c2eac6088b19c0f3a3263f29c3f70
parentd649c57c264cd2e5114a445fcea96564bc80476f (diff)
Place diagnostic warn_atomic_property_rule under a -W flag. Fixes <rdar://problem/10230631>.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141089 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/clang/Basic/DiagnosticSemaKinds.td3
-rw-r--r--test/Misc/warning-flags.c3
2 files changed, 3 insertions, 3 deletions
diff --git a/include/clang/Basic/DiagnosticSemaKinds.td b/include/clang/Basic/DiagnosticSemaKinds.td
index f8d7111ddf..19fe1c5ad0 100644
--- a/include/clang/Basic/DiagnosticSemaKinds.td
+++ b/include/clang/Basic/DiagnosticSemaKinds.td
@@ -499,7 +499,8 @@ def warn_objc_property_retain_of_block : Warning<
"- use copy attribute instead">, InGroup<ObjCRetainBlockProperty>;
def warn_atomic_property_rule : Warning<
"writable atomic property %0 cannot pair a synthesized setter/getter "
- "with a user defined setter/getter">;
+ "with a user defined setter/getter">,
+ InGroup<DiagGroup<"atomic-property-with-user-defined-accessor">>;
def warn_ownin_getter_rule : Warning<
"property's synthesized getter follows Cocoa naming"
" convention for returning 'owned' objects">,
diff --git a/test/Misc/warning-flags.c b/test/Misc/warning-flags.c
index fe32abe609..c785546ebb 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 (302):
+CHECK: Warnings without flags (301):
CHECK-NEXT: backslash_newline_space
CHECK-NEXT: charize_microsoft_ext
CHECK-NEXT: ext_anon_param_requires_type_specifier
@@ -123,7 +123,6 @@ CHECK-NEXT: w_asm_qualifier_ignored
CHECK-NEXT: warn_accessor_property_type_mismatch
CHECK-NEXT: warn_anon_bitfield_width_exceeds_type_size
CHECK-NEXT: warn_asm_label_on_auto_decl
-CHECK-NEXT: warn_atomic_property_rule
CHECK-NEXT: warn_attribute_ibaction
CHECK-NEXT: warn_attribute_iboutlet
CHECK-NEXT: warn_attribute_ignored