]> granicus.if.org Git - clang/commit
Objective-C. Do not issue warning when 'readonly'
authorFariborz Jahanian <fjahanian@apple.com>
Fri, 13 Dec 2013 18:19:59 +0000 (18:19 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Fri, 13 Dec 2013 18:19:59 +0000 (18:19 +0000)
commit665c732fb4e8d24228f0ff0dc19415eb9e61147f
tree608f6791d19fd081412ad3d3025cd8fc60e4d667
parent7a9c7c2303dcd388acfc7467473f3cdc0facbd91
Objective-C. Do not issue warning when 'readonly'
property declaration has a memory management
attribute (retain, copy, etc.). Sich properties
are usually overridden to become 'readwrite'
via a class extension (which require the memory
management attribute specified). In the absence of class
extension override, memory management attribute is
needed to produce correct Code Gen. for the
property getter in any case and this warning becomes
confusing to user. // rdar://15641300

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@197251 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticGroups.td
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaObjCProperty.cpp
test/SemaObjC/overriding-property-in-class-extension.m
test/SemaObjC/property-12.m
test/SemaObjC/property-in-class-extension-1.m
test/SemaObjC/tentative-property-decl.m