Skip to content

Commit 574aa0a

Browse files
committed
test: make IDE.complete_with_multiple_imports work on Windows
`#import` has target dependent behaviour. Rather than enabling ObjC interop, switch to `#include` with include guards. This permits the IDE tests to fully pass on Windows.
1 parent e622ea6 commit 574aa0a

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

test/IDE/Inputs/mock-sdk/FooHelper.framework/Frameworks/FooHelperSub.framework/Headers/FooHelperSub.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2+
#ifndef FooHelperSub_FooHelperSub_h
3+
#define FooHelperSub_FooHelperSub_h
4+
15
int fooHelperSubFunc1(int a);
26

37
enum FooHelperSubEnum1 {
@@ -9,3 +13,5 @@ enum {
913
FooHelperSubUnnamedEnumeratorA1
1014
};
1115

16+
#endif
17+
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
#import <FooHelperSub/FooHelperSub.h>
1+
2+
#ifndef FooHelper_FooHelper_h
3+
#define FooHelper_FooHelper_h
4+
5+
#include <FooHelperSub/FooHelperSub.h>
26

37
int fooHelperFunc1(int a);
48

@@ -7,3 +11,5 @@ enum {
711
FooHelperUnnamedEnumeratorA2,
812
};
913

14+
#endif
15+

0 commit comments

Comments
 (0)