llvm-project/clang/test/SemaObjC/format-strings-system.h
Jean-Daniel Dupas 2b7da83759 Inhibit ObjC format warning only in system headers (NSLocalizedString).
Add a test case for the related NSAssert workaround.

llvm-svn: 156205
2012-05-04 21:08:08 +00:00

11 lines
258 B
Objective-C

#pragma clang system_header
@class NSString;
// Do not emit warnings when using NSLocalizedString
extern NSString *GetLocalizedString(NSString *str);
#define NSLocalizedString(key) GetLocalizedString(key)
#define NSAssert(fmt, arg) NSLog(fmt, arg, 0, 0)