Skip to content

Commit ed4cef9

Browse files
committed
Cleanup
1 parent 03acf1a commit ed4cef9

File tree

7 files changed

+11
-23
lines changed

7 files changed

+11
-23
lines changed

test/Interop/Cxx/templates/Inputs/canonical-types.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,14 @@
33

44
template<class T>
55
struct MagicWrapper {
6-
public:
76
T t;
8-
inline int callGetInt() const {
7+
int callGetInt() const {
98
return t.getInt() + 5;
109
}
1110
};
1211

1312
struct MagicNumber {
14-
public:
15-
inline int getInt() const { return 24; }
13+
int getInt() const { return 24; }
1614
};
1715

1816
typedef MagicWrapper<MagicNumber> WrappedMagicNumberA;

test/Interop/Cxx/templates/Inputs/decl-with-definition-including-members.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,14 @@
33

44
template<class T>
55
struct MagicWrapper {
6-
public:
76
T t;
8-
inline int callGetInt() const {
7+
int callGetInt() const {
98
return t.getInt() + 5;
109
}
1110
};
1211

1312
struct MagicNumber {
14-
public:
15-
inline int getInt() const { return 48; }
13+
int getInt() const { return 48; }
1614
};
1715

1816
inline int forceInstantiating() {

test/Interop/Cxx/templates/Inputs/decl-with-definition.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,14 @@
33

44
template<class T>
55
struct MagicWrapper {
6-
public:
76
T t;
8-
inline int callGetInt() const {
7+
int callGetInt() const {
98
return t.getInt() + 5;
109
}
1110
};
1211

1312
struct MagicNumber {
14-
public:
15-
inline int getInt() const { return 24; }
13+
int getInt() const { return 24; }
1614
};
1715

1816
inline MagicWrapper<MagicNumber> forceInstantiating() {

test/Interop/Cxx/templates/Inputs/decl-with-primitive-argument.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33

44
template<class T>
55
struct MagicWrapper {
6-
public:
76
T t;
8-
inline int getInt() const {
7+
int getInt() const {
98
return t + 5;
109
}
1110
};

test/Interop/Cxx/templates/Inputs/decl-without-definition.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
template<class T>
55
struct MagicWrapper {
6-
public:
76
T t;
87
int callGetInt() const {
98
return t.getInt() + 5;

test/Interop/Cxx/templates/Inputs/explicit-specialization.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@
22
#define TEST_INTEROP_CXX_TEMPLATES_INPUTS_EXPLICIT_SPECIALIZATION_H
33

44
struct MagicNumber {
5-
public:
6-
inline int getInt() const { return 26; }
5+
int getInt() const { return 26; }
76
};
87

98
template <class T> struct MagicWrapper {
10-
public:
119
T t;
12-
inline int callGetInt() const { return t.getInt() + 5; }
10+
int callGetInt() const { return t.getInt() + 5; }
1311
};
1412

1513
template <> struct MagicWrapper<MagicNumber> {

test/Interop/Cxx/templates/Inputs/using-directive.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,14 @@
33

44
template<class T>
55
struct MagicWrapper {
6-
public:
76
T t;
8-
inline int callGetInt() const {
7+
int callGetInt() const {
98
return t.getInt() + 5;
109
}
1110
};
1211

1312
struct MagicNumber {
14-
public:
15-
inline int getInt() const { return 6; }
13+
int getInt() const { return 6; }
1614
};
1715

1816
using UsingWrappedMagicNumber = MagicWrapper<MagicNumber>;

0 commit comments

Comments
 (0)