diff options
| author | Fariborz Jahanian <fjahanian@apple.com> | 2013-08-22 22:27:36 +0000 |
|---|---|---|
| committer | Fariborz Jahanian <fjahanian@apple.com> | 2013-08-22 22:27:36 +0000 |
| commit | 2e9c19cc35467d7ab31f7181e57cd633d0fcc793 (patch) | |
| tree | c908f3e3595481de268317541a32bb1afdd6b070 | |
| parent | 4f64dd2baf035419903f30bdadd211123a869bdf (diff) | |
| download | bcm5719-llvm-2e9c19cc35467d7ab31f7181e57cd633d0fcc793.tar.gz bcm5719-llvm-2e9c19cc35467d7ab31f7181e57cd633d0fcc793.zip | |
ObjectiveC migrator: builtin ObjectiveC types are not
audited types.
llvm-svn: 189072
| -rw-r--r-- | clang/lib/ARCMigrate/ObjCMT.cpp | 2 | ||||
| -rw-r--r-- | clang/test/ARCMT/objcmt-arc-cf-annotations.m | 7 | ||||
| -rw-r--r-- | clang/test/ARCMT/objcmt-arc-cf-annotations.m.result | 7 |
3 files changed, 15 insertions, 1 deletions
diff --git a/clang/lib/ARCMigrate/ObjCMT.cpp b/clang/lib/ARCMigrate/ObjCMT.cpp index ff670af7b06..eed3805c657 100644 --- a/clang/lib/ARCMigrate/ObjCMT.cpp +++ b/clang/lib/ARCMigrate/ObjCMT.cpp @@ -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; diff --git a/clang/test/ARCMT/objcmt-arc-cf-annotations.m b/clang/test/ARCMT/objcmt-arc-cf-annotations.m index bdd0e75d1d5..f0304a6d1a8 100644 --- a/clang/test/ARCMT/objcmt-arc-cf-annotations.m +++ b/clang/test/ARCMT/objcmt-arc-cf-annotations.m @@ -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 diff --git a/clang/test/ARCMT/objcmt-arc-cf-annotations.m.result b/clang/test/ARCMT/objcmt-arc-cf-annotations.m.result index 437369959f0..7a31f5110c0 100644 --- a/clang/test/ARCMT/objcmt-arc-cf-annotations.m.result +++ b/clang/test/ARCMT/objcmt-arc-cf-annotations.m.result @@ -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 |

