]> granicus.if.org Git - clang/commit
Fairly major surgery to RewriteTest::SynthesizeObjcInternalStruct().
authorSteve Naroff <snaroff@apple.com>
Wed, 14 Nov 2007 19:25:57 +0000 (19:25 +0000)
committerSteve Naroff <snaroff@apple.com>
Wed, 14 Nov 2007 19:25:57 +0000 (19:25 +0000)
commitfea763e8b02eb907c399883117179e898f2abbf8
tree2b5fc44d8a373444e987033a763b25f683c428bd
parent583e008bbfbb937524d567ad6450b8f0e8485bca
Fairly major surgery to RewriteTest::SynthesizeObjcInternalStruct().

This allows us to handle funky stuff like...

#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_3
@interface NSLayoutManager : NSObject <NSCoding, NSGlyphStorage> {
#else /* MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_3 */
@interface NSLayoutManager : NSObject <NSCoding> {
#endif /* MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_3 */

...which now rewrites to...

#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_3
#ifndef _REWRITER_typedef_NSLayoutManager
#define _REWRITER_typedef_NSLayoutManager
typedef struct objc_object NSLayoutManager;
#endif

struct NSLayoutManager {
    struct NSObject _NSObject;

#else /* MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_3 */
// @interface NSLayoutManager : NSObject <NSCoding> {
#endif /* MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_3 */

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44129 91177308-0d34-0410-b5e6-96231b3b80d8
Driver/RewriteTest.cpp