Debian Codegraph @

clang/test/Rewriter/rewrite-vararg.m

raw
1 // RUN: %clang_cc1 -x objective-c++ -Wno-return-type -fblocks -fms-extensions -rewrite-objc -fobjc-runtime=macosx-fragile-10.5 %s -o %t-rw.cpp
2 // RUN: %clang_cc1 -fsyntax-only -std=gnu++98 -fblocks -Wno-address-of-temporary -D"id=void*" -D"SEL=void*" -D"__declspec(X)=" %t-rw.cpp
3
4 void *sel_registerName(const char *);
5
6 @interface NSObject @end
7 @class NSString;
8
9 @protocol P
10 -(void)ParliamentFunkadelic;
11 @end
12
13 @interface Foo {
14 NSObject <P> *_dataSource;
15 }
16 @end
17
18 @interface Bar { }
19 +(void)WhateverBar:(NSString*)format, ...;
20 @end
21
22 @implementation Foo
23 -(void)WhateverFoo {
24 [Bar WhateverBar:@"ISyncSessionDriverDataSource %@ responded poorly", _dataSource];
25 }
26 @end