Place diagnostic warn_atomic_property_rule under a -W flag. Fixes <rdar://problem/10230631>.

llvm-svn: 141089
This commit is contained in:
Ted Kremenek 2011-10-04 15:53:53 +00:00
parent edadecdb36
commit f58dbb038c
2 changed files with 3 additions and 3 deletions

View File

@ -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">,

View 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 (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