r189072 - ObjectiveC migrator: builtin ObjectiveC types are not

Fariborz Jahanian fjahanian at apple.com
Thu Aug 22 15:27:36 PDT 2013


Author: fjahanian
Date: Thu Aug 22 17:27:36 2013
New Revision: 189072

URL: http://llvm.org/viewvc/llvm-project?rev=189072&view=rev
Log:
ObjectiveC migrator: builtin ObjectiveC types are not
audited types.

Modified:
    cfe/trunk/lib/ARCMigrate/ObjCMT.cpp
    cfe/trunk/test/ARCMT/objcmt-arc-cf-annotations.m
    cfe/trunk/test/ARCMT/objcmt-arc-cf-annotations.m.result

Modified: cfe/trunk/lib/ARCMigrate/ObjCMT.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/ARCMigrate/ObjCMT.cpp?rev=189072&r1=189071&r2=189072&view=diff
==============================================================================
--- cfe/trunk/lib/ARCMigrate/ObjCMT.cpp (original)
+++ cfe/trunk/lib/ARCMigrate/ObjCMT.cpp Thu Aug 22 17:27:36 2013
@@ -788,7 +788,7 @@ AuditedType (QualType AT, bool &IsPonite
       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;

Modified: cfe/trunk/test/ARCMT/objcmt-arc-cf-annotations.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/ARCMT/objcmt-arc-cf-annotations.m?rev=189072&r1=189071&r2=189072&view=diff
==============================================================================
--- cfe/trunk/test/ARCMT/objcmt-arc-cf-annotations.m (original)
+++ cfe/trunk/test/ARCMT/objcmt-arc-cf-annotations.m Thu Aug 22 17:27:36 2013
@@ -2038,3 +2038,10 @@ void rdar13783514(xpc_connection_t conne
 } // no-warning
 
 CFAttributedStringRef CFAttributedCreate(void *CFObj CF_CONSUMED) CF_RETURNS_RETAINED;
+
+ at interface Action
+- (SEL)action;
+- (void)setAction:(SEL)aSelector;
+- (id) target;
+- (void)setTarget:(id)aTarget;
+ at end

Modified: cfe/trunk/test/ARCMT/objcmt-arc-cf-annotations.m.result
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/ARCMT/objcmt-arc-cf-annotations.m.result?rev=189072&r1=189071&r2=189072&view=diff
==============================================================================
--- cfe/trunk/test/ARCMT/objcmt-arc-cf-annotations.m.result (original)
+++ cfe/trunk/test/ARCMT/objcmt-arc-cf-annotations.m.result Thu Aug 22 17:27:36 2013
@@ -2140,3 +2140,10 @@ CFAttributedStringRef CFAttributedCreate
 
 CF_IMPLICIT_BRIDGING_DISABLED
 
+
+ at interface Action
+ at property(nonatomic) SEL action;
+
+ at property(nonatomic, unsafe_unretained) id target;
+
+ at end





More information about the cfe-commits mailing list