Skip to content

Commit fa39569

Browse files
committed
Fix header guards
1 parent c6d20f9 commit fa39569

File tree

5 files changed

+8
-10
lines changed

5 files changed

+8
-10
lines changed

test/Interop/C/implementation-only-imports/Inputs/helper.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ inline int getFortyTwo() {
55
return 42;
66
};
77

8-
#endif // TEST_INTEROP_C_IMPLEMENTATION_ONLY_IMPORTS_INPUTS_HELPER_H
8+
#endif // TEST_INTEROP_C_IMPLEMENTATION_ONLY_IMPORTS_INPUTS_HELPER_H

test/Interop/C/implementation-only-imports/Inputs/module.modulemap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ module UserA {
66
module UserB {
77
header "user_b.h"
88
export *
9-
}
9+
}

test/Interop/C/implementation-only-imports/Inputs/user_a.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33

44
#include "helper.h"
55

6-
#endif // TEST_INTEROP_C_IMPLEMENTATION_ONLY_IMPORTS_INPUTS_USERA_H
6+
#endif // TEST_INTEROP_C_IMPLEMENTATION_ONLY_IMPORTS_INPUTS_USERA_H
Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
#ifndef TEST_INTEROP_C_IMPLEMENTATION_ONLY_IMPORTS_INPUTS_HELPER_H
2-
#define TEST_INTEROP_C_IMPLEMENTATION_ONLY_IMPORTS_INPUTS_HELPER_H
1+
#ifndef TEST_INTEROP_C_IMPLEMENTATION_ONLY_IMPORTS_INPUTS_USERB_H
2+
#define TEST_INTEROP_C_IMPLEMENTATION_ONLY_IMPORTS_INPUTS_USERB_H
33

4-
inline int getFortyTwo() {
5-
return 42;
6-
};
4+
#include "helper.h"
75

8-
#endif // TEST_INTEROP_C_IMPLEMENTATION_ONLY_IMPORTS_INPUTS_HELPER_H
6+
#endif // TEST_INTEROP_C_IMPLEMENTATION_ONLY_IMPORTS_INPUTS_USERB_H

test/Interop/C/implementation-only-imports/prefer-a-visible-symbol-over-implementation-only-ones.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ import UserB
2424
@_inlineable
2525
public func callFortyTwo() -> CInt {
2626
return getFortyTwo()
27-
}
27+
}

0 commit comments

Comments
 (0)