mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-28 07:49:01 -04:00

This is a new mode of migration, where we avoid modifying the original files but we emit temporary files instead. <path> will be used to keep migration process metadata. Currently the temporary files that are produced are put in the system's temp directory but we can put them in the <path> if is necessary. Also introduce new ARC migration functions in libclang whose only purpose, currently, is to accept <path> and provide pairs of original file/transformed file to map from the originals to the files after transformations are applied. Finally introduce the c-arcmt-test utility that exercises the new libclang functions, update arcmt-test, and add tests for the whole process. rdar://9735086. llvm-svn: 134844
16 lines
190 B
Objective-C
16 lines
190 B
Objective-C
@protocol NSObject
|
|
- (oneway void)release;
|
|
@end
|
|
|
|
#ifdef PART1
|
|
static inline void part1(id p) {
|
|
[p release];
|
|
}
|
|
#endif
|
|
|
|
#ifdef PART2
|
|
static inline void part2(id p) {
|
|
[p release];
|
|
}
|
|
#endif
|