ObjectiveC migrator: builtin ObjectiveC types are not

audited types.

llvm-svn: 189072
This commit is contained in:
Fariborz Jahanian 2013-08-22 22:27:36 +00:00
parent 4f64dd2baf
commit 2e9c19cc35
3 changed files with 15 additions and 1 deletions

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

View 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

View 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