File tree Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change 22
22
//
23
23
#include " swift/Basic/BridgedSwiftObject.h"
24
24
#include " swift/Basic/Compiler.h"
25
- #include " swift/Basic/SourceLoc.h"
26
- // Workaround to avoid a compiler error because `cas::ObjectRef` is not defined
27
- // when including VirtualFileSystem.h
28
- #include " llvm/CAS/CASReference.h"
29
25
30
26
#include < stddef.h>
31
27
#include < stdint.h>
32
28
#include < vector>
33
29
#ifdef USED_IN_CPP_SOURCE
30
+ // Workaround to avoid a compiler error because `cas::ObjectRef` is not defined
31
+ // when including VirtualFileSystem.h
34
32
#include < cassert>
33
+ #include " llvm/CAS/CASReference.h"
35
34
36
35
#include " swift/Basic/SourceLoc.h"
37
36
#include " llvm/ADT/StringRef.h"
Original file line number Diff line number Diff line change 24
24
25
25
#include " swift/SILOptimizer/Analysis/BasicCalleeAnalysis.h"
26
26
27
+ #else // USED_IN_CPP_SOURCE
28
+
29
+ #error "should not include swift headers into bridging header"
30
+
31
+ #ifdef SWIFT_SIL_SILVALUE_H
32
+ #error "should not include swift headers into bridging header"
33
+ #endif
34
+ #ifdef LLVM_SUPPORT_COMPILER_H
35
+ #error "should not include llvm headers into bridging header"
36
+ #endif
37
+
27
38
#endif // USED_IN_CPP_SOURCE
28
39
29
40
SWIFT_BEGIN_NULLABILITY_ANNOTATIONS
You can’t perform that action at this time.
0 commit comments