]> granicus.if.org Git - clang/commitdiff
ObjectiveC migrator: builtin ObjectiveC types are not
authorFariborz Jahanian <fjahanian@apple.com>
Thu, 22 Aug 2013 22:27:36 +0000 (22:27 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Thu, 22 Aug 2013 22:27:36 +0000 (22:27 +0000)
audited types.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189072 91177308-0d34-0410-b5e6-96231b3b80d8

lib/ARCMigrate/ObjCMT.cpp
test/ARCMT/objcmt-arc-cf-annotations.m
test/ARCMT/objcmt-arc-cf-annotations.m.result

index ff670af7b065178ca9b7a7550d479a4f0eb6f6f4..eed3805c65729b628e3f4c3810748af97c0a05b6 100644 (file)
@@ -788,7 +788,7 @@ AuditedType (QualType AT, bool &IsPoniter) {
       IsVoidStarType(AT) ||
       // If an ObjC object is type, assuming that it is not a CF function and
       // that it is an un-audited function.
-      AT->isObjCObjectPointerType())
+      AT->isObjCObjectPointerType() || AT->isObjCBuiltinType())
     return false;
   // All other pointers are assumed audited as harmless.
   return true;
index bdd0e75d1d571205c1bc2f8fe98ac6d06fd7324e..f0304a6d1a863c62ac279939956ad3c3c9202279 100644 (file)
@@ -2038,3 +2038,10 @@ void rdar13783514(xpc_connection_t connection) {
 } // no-warning
 
 CFAttributedStringRef CFAttributedCreate(void *CFObj CF_CONSUMED) CF_RETURNS_RETAINED;
+
+@interface Action
+- (SEL)action;
+- (void)setAction:(SEL)aSelector;
+- (id) target;
+- (void)setTarget:(id)aTarget;
+@end
index 437369959f0ca84a7f63cd3e5a03110d27254c4f..7a31f5110c02191d6921fa1c69358ae29565f3e7 100644 (file)
@@ -2140,3 +2140,10 @@ CFAttributedStringRef CFAttributedCreate(void *CFObj CF_CONSUMED) CF_RETURNS_RET
 
 CF_IMPLICIT_BRIDGING_DISABLED
 
+
+@interface Action
+@property(nonatomic) SEL action;
+
+@property(nonatomic, unsafe_unretained) id target;
+
+@end