Home | History | Annotate | Download | only in Rewriter
      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 -fblocks -Wno-address-of-temporary -D"id=void*" -D"SEL=void*" -D"__declspec(X)=" %t-rw.cpp
      3 
      4 // rdar://9056351
      5 void *sel_registerName(const char *);
      6 
      7 @interface NSObject @end
      8 @class NSString;
      9 
     10 @protocol P
     11   -(void)ParliamentFunkadelic;
     12 @end
     13 	
     14 @interface Foo {
     15   NSObject <P> *_dataSource;
     16 }
     17 @end
     18 	
     19 @interface Bar { }
     20 +(void)WhateverBar:(NSString*)format, ...;
     21 @end
     22 	
     23 @implementation Foo
     24 -(void)WhateverFoo {
     25 	[Bar WhateverBar:@"ISyncSessionDriverDataSource %@ responded poorly", _dataSource];
     26 }
     27 @end
     28