Skip to content

Commit 5c18ef4

Browse files
committed
Move files around to incorporate class/function naming scheme
1 parent 9aa4d4a commit 5c18ef4

8 files changed

+26
-26
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#ifndef TEST_INTEROP_CXX_TEMPLATES_INPUTS_CLASS_TEMPLATE_NON_TYPE_PARAMETER_H
2+
#define TEST_INTEROP_CXX_TEMPLATES_INPUTS_CLASS_TEMPLATE_NON_TYPE_PARAMETER_H
3+
4+
template<class T, auto Size>
5+
struct MagicArray {
6+
T t[Size];
7+
};
8+
9+
typedef MagicArray<int, 2> MagicIntPair;
10+
11+
#endif // TEST_INTEROP_CXX_TEMPLATES_INPUTS_CLASS_TEMPLATE_NON_TYPE_PARAMETER_H

test/Interop/Cxx/templates/Inputs/template-template-parameter.h renamed to test/Interop/Cxx/templates/Inputs/class-template-template-parameter.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef TEST_INTEROP_CXX_TEMPLATES_INPUTS_TEMPLATE_TEMPLATE_PARAMETER_H
2-
#define TEST_INTEROP_CXX_TEMPLATES_INPUTS_TEMPLATE_TEMPLATE_PARAMETER_H
1+
#ifndef TEST_INTEROP_CXX_TEMPLATES_INPUTS_CLASS_TEMPLATE_TEMPLATE_PARAMETER_H
2+
#define TEST_INTEROP_CXX_TEMPLATES_INPUTS_CLASS_TEMPLATE_TEMPLATE_PARAMETER_H
33

44
struct IntWrapper {
55
int value;
@@ -20,4 +20,4 @@ struct TemplatedMagicWrapper {
2020

2121
typedef TemplatedMagicWrapper<MagicWrapper> TemplatedWrappedMagicInt;
2222
typedef MagicWrapper<IntWrapper> WrappedMagicInt;
23-
#endif // TEST_INTEROP_CXX_TEMPLATES_INPUTS_TEMPLATE_TEMPLATE_PARAMETER_H
23+
#endif // TEST_INTEROP_CXX_TEMPLATES_INPUTS_CLASS_TEMPLATE_TEMPLATE_PARAMETER_H

test/Interop/Cxx/templates/Inputs/variadic-class-template.h renamed to test/Interop/Cxx/templates/Inputs/class-template-variadic.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef TEST_INTEROP_CXX_TEMPLATES_INPUTS_VARIADIC_CLASS_TEMPLATE_H
2-
#define TEST_INTEROP_CXX_TEMPLATES_INPUTS_VARIADIC_CLASS_TEMPLATE_H
1+
#ifndef TEST_INTEROP_CXX_TEMPLATES_INPUTS_CLASS_TEMPLATE_VARIADIC_H
2+
#define TEST_INTEROP_CXX_TEMPLATES_INPUTS_CLASS_TEMPLATE_VARIADIC_H
33

44
template <class... Ts> struct Tuple {};
55

@@ -27,4 +27,4 @@ struct IntWrapper {
2727

2828
typedef Tuple<IntWrapper, IntWrapper> Pair;
2929

30-
#endif // TEST_INTEROP_CXX_TEMPLATES_INPUTS_VARIADIC_CLASS_TEMPLATE_H
30+
#endif // TEST_INTEROP_CXX_TEMPLATES_INPUTS_CLASS_TEMPLATE_VARIADIC_H

test/Interop/Cxx/templates/Inputs/module.modulemap

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@ module LinkageOfSwiftSymbolsForImportedTypes {
3838
header "linkage-of-swift-symbols-for-imported-types.h"
3939
}
4040

41-
module VariadicClassTemplate {
42-
header "variadic-class-template.h"
41+
module ClassTemplateVariadic {
42+
header "class-template-variadic.h"
4343
}
4444

45-
module NonTypeParameter {
46-
header "non-type-parameter.h"
45+
module ClassTemplateNonTypeParameter {
46+
header "class-template-non-type-parameter.h"
4747
}
4848

49-
module TemplateTemplateParameter {
50-
header "template-template-parameter.h"
49+
module ClassTemplateTemplateParameter {
50+
header "class-template-template-parameter.h"
5151
}

test/Interop/Cxx/templates/Inputs/non-type-parameter.h

Lines changed: 0 additions & 11 deletions
This file was deleted.

test/Interop/Cxx/templates/non-type-parameter.swift renamed to test/Interop/Cxx/templates/class-template-non-type-parameter.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// REQUIRES: executable_test
44

5-
import NonTypeParameter
5+
import ClassTemplateNonTypeParameter
66
import StdlibUnittest
77

88
var TemplatesTestSuite = TestSuite("TemplatesTestSuite")

test/Interop/Cxx/templates/template-template-parameter.swift renamed to test/Interop/Cxx/templates/class-template-template-parameter.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// REQUIRES: executable_test
44

5-
import TemplateTemplateParameter
5+
import ClassTemplateTemplateParameter
66
import StdlibUnittest
77

88
var TemplatesTestSuite = TestSuite("TemplatesTestSuite")

test/Interop/Cxx/templates/variadic-class-template.swift renamed to test/Interop/Cxx/templates/class-template-variadic.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// REQUIRES: executable_test
44

5-
import VariadicClassTemplate
5+
import ClassTemplateVariadic
66
import StdlibUnittest
77

88
var TemplatesTestSuite = TestSuite("TemplatesTestSuite")

0 commit comments

Comments
 (0)