diff options
author | Jordan Rose <jordan_rose@apple.com> | 2014-01-07 21:39:48 +0000 |
---|---|---|
committer | Jordan Rose <jordan_rose@apple.com> | 2014-01-07 21:39:48 +0000 |
commit | 514f93541176ca28b21efb625d82487b1abf41f3 (patch) | |
tree | 40622752186b761505c4308199b98d191ca1f8ec /clang/test/Analysis/Inputs/system-header-simulator-objc.h | |
parent | 6ad4cb4eca2094a3fcde0a90c118632de1b4f939 (diff) | |
download | bcm5719-llvm-514f93541176ca28b21efb625d82487b1abf41f3.tar.gz bcm5719-llvm-514f93541176ca28b21efb625d82487b1abf41f3.zip |
[analyzer] Pointers escape into +[NSValue valueWithPointer:]...
...even though the argument is declared "const void *", because this is
just a way to pass pointers around as objects. (Though NSData is often
a better one.)
PR18262
llvm-svn: 198710
Diffstat (limited to 'clang/test/Analysis/Inputs/system-header-simulator-objc.h')
-rw-r--r-- | clang/test/Analysis/Inputs/system-header-simulator-objc.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/clang/test/Analysis/Inputs/system-header-simulator-objc.h b/clang/test/Analysis/Inputs/system-header-simulator-objc.h index 3e1d9555bbd..8a5d3b6403c 100644 --- a/clang/test/Analysis/Inputs/system-header-simulator-objc.h +++ b/clang/test/Analysis/Inputs/system-header-simulator-objc.h @@ -66,8 +66,11 @@ typedef struct { NSFastEnumerationState; @protocol NSFastEnumeration - (NSUInteger)countByEnumeratingWithState:(NSFastEnumerationState *)state objects:(id *)stackbuf count:(NSUInteger)len; @end @class NSString, NSDictionary; -@interface NSValue : NSObject <NSCopying, NSCoding> - (void)getValue:(void *)value; -@end @interface NSNumber : NSValue - (char)charValue; +@interface NSValue : NSObject <NSCopying, NSCoding> ++ (NSValue *)valueWithPointer:(const void *)p; +- (void)getValue:(void *)value; +@end +@interface NSNumber : NSValue - (char)charValue; - (id)initWithInt:(int)value; @end @class NSString; @interface NSArray : NSObject <NSCopying, NSMutableCopying, NSCoding, NSFastEnumeration> - (NSUInteger)count; |