Files
swift-mirror/test/IDE/Inputs/print_clang_header/header-to-print.h
Hamish Knight 1ffa8eeea4 [ClangImporter] Query Preprocessor::macros instead of getPreprocessingRecord for header printing
This better matches what the clang importer does
normally, avoids a Clang issue where
`getPreprocessedEntitiesInRange` returns incorrect
results, and avoids the need to enable the
preprocessor record. This then lets us re-enable
`print_clang_headers.swift`.

rdar://102151774
2023-05-11 21:10:28 +01:00

38 lines
598 B
Objective-C

#import <Foundation.h>
#import <CoreFoundation.h>
@import Dispatch;
#include "other-header.h"
#define MACRO_GOT_UNDEFINED 1
#undef MACRO_GOT_UNDEFINED
#define MY_MACRO 1
#define MACRO_DUP 2
#define MACRO_DUP 3
void doSomethingInHead(int arg);
@interface BaseInHead
- (void)doIt:(int)arg;
@end
/// Awesome name.
@interface SameName
@end
@protocol SameName
@end
@interface BaseInHead(SomeCategory)
-(void)doItInCategory;
@end
@protocol Superproto
-(void)lala;
@end
@class Cake;
struct Arkham;
@protocol Soul;
typedef struct __attribute__((objc_bridge(id))) __MyLittleCFType *MyLittleCFType;