Skip to content

Commit 67f0290

Browse files
committed
Remove trailing spaces from source files, test files and cmakelists.txt files
1 parent 5150624 commit 67f0290

File tree

10 files changed

+31
-31
lines changed

10 files changed

+31
-31
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,9 +246,9 @@ endif()
246246
message(fatal "LLVM/CppInterOp requires c++14 or later")
247247
endif()
248248
endif()
249-
249+
250250
## Find supported Cling
251-
251+
252252
if (CPPINTEROP_USE_CLING)
253253
if (NOT Cling_FOUND AND DEFINED Cling_DIR)
254254
find_package(Cling REQUIRED CONFIG ${cling_extra_hints} NO_DEFAULT_PATH)

include/clang/Interpreter/CppInterOp.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,8 +315,8 @@ namespace Cpp {
315315
/// underlying decl is not a class it returns the input unchanged.
316316
CPPINTEROP_API TCppScope_t GetUnderlyingScope(TCppScope_t scope);
317317

318-
/// Gets the namespace or class (by stripping typedefs) for the name
319-
/// passed as a parameter, and if the parent is not passed,
318+
/// Gets the namespace or class (by stripping typedefs) for the name
319+
/// passed as a parameter, and if the parent is not passed,
320320
/// then global scope will be assumed.
321321
CPPINTEROP_API TCppScope_t GetScope(const std::string& name,
322322
TCppScope_t parent = nullptr);

lib/Interpreter/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,12 @@ endif()
114114

115115

116116
if(EMSCRIPTEN)
117-
# FIXME: When dynamically linking the Emscripten shared library to the
117+
# FIXME: When dynamically linking the Emscripten shared library to the
118118
# unit tests main_module you get errors due to undefined symbols. The reading of the file
119119
# below into a SYMBOLS_LIST variable is a temporary workaround that exports the undefined
120120
# symbols from the shared library, until it can be determined why they are not being exported already.
121121
file(READ "${CMAKE_SOURCE_DIR}/lib/Interpreter/exports.ld" SYMBOLS_LIST)
122-
122+
123123
# Replace newlines with spaces
124124
string(REPLACE "\n" " " SYMBOLS_LIST "${SYMBOLS_LIST}")
125125

lib/Interpreter/DynamicLibraryManagerSymbol.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -908,7 +908,7 @@ namespace Cpp {
908908
// of the Object file. They are present in the ExportDirectory section.
909909
for (auto I=CoffObj->export_directory_begin(),
910910
E=CoffObj->export_directory_end(); I != E; I = ++I) {
911-
// All the symbols are already flagged as exported.
911+
// All the symbols are already flagged as exported.
912912
// We cannot really ignore symbols based on flags as we do on unix.
913913
StringRef Name;
914914
auto Err = I->getSymbolName(Name);

unittests/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ endif()
4343
# FIXME: Just call gtest_add_tests this function is available.
4444
#gtest_add_tests(${name} "${Arguments}" AUTO)
4545
endfunction()
46-
46+
4747
add_subdirectory(CppInterOp)
4848

4949
add_custom_target(check-cppinterop COMMAND ${CMAKE_CTEST_COMMAND} -V --build-config $<CONFIG>

unittests/CppInterOp/EnumReflectionTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ TEST(EnumReflectionTest, GetIntegerTypeFromEnumType) {
190190
#else
191191
EXPECT_EQ(get_int_type_from_enum_var(Decls[10]), "unsigned int");
192192
#endif
193-
EXPECT_EQ(get_int_type_from_enum_var(Decls[11]), "NULL TYPE"); // When a non Enum Type variable is used
193+
EXPECT_EQ(get_int_type_from_enum_var(Decls[11]), "NULL TYPE"); // When a non Enum Type variable is used
194194
}
195195

196196
TEST(EnumReflectionTest, GetEnumConstants) {

unittests/CppInterOp/FunctionReflectionTest.cpp

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ TEST(FunctionReflectionTest, HasDefaultConstructor) {
170170
int sum(int a, int b){
171171
return a+b;
172172
}
173-
173+
174174
)";
175175

176176
GetAllTopLevelDecls(code, Decls);
@@ -277,7 +277,7 @@ TEST(FunctionReflectionTest, GetClassDecls) {
277277
278278
template<class A = int, class B = char>
279279
long get_float_size(int i, A a = A(), B b = B()) {}
280-
280+
281281
template<class A>
282282
void get_char_size(long k, A, char ch = 'a', double l = 0.0) {}
283283
@@ -294,7 +294,7 @@ TEST(FunctionReflectionTest, GetClassDecls) {
294294

295295
GetAllTopLevelDecls(code, Decls);
296296
GetAllSubDecls(Decls[0], SubDecls);
297-
297+
298298
std::vector<Cpp::TCppFunction_t> methods;
299299
std::vector<Cpp::TCppFunction_t> template_methods;
300300

@@ -337,7 +337,7 @@ TEST(FunctionReflectionTest, GetFunctionReturnType) {
337337
char get_string(A) {
338338
return 'A';
339339
}
340-
340+
341341
template<class A>
342342
void get_size() {}
343343
@@ -412,7 +412,7 @@ TEST(FunctionReflectionTest, GetFunctionNumArgs) {
412412
char get_string(A, int i) {
413413
return 'A';
414414
}
415-
415+
416416
template<class A>
417417
void get_size() {}
418418
@@ -452,7 +452,7 @@ TEST(FunctionReflectionTest, GetFunctionRequiredArgs) {
452452
453453
template<class A = int, class B = char>
454454
long get_size(int i, A a = A(), B b = B()) {}
455-
455+
456456
template<class A>
457457
void get_size(long k, A, char ch = 'a', double l = 0.0) {}
458458
};
@@ -693,7 +693,7 @@ TEST(FunctionReflectionTest, BestOverloadFunctionMatch1) {
693693
long MyTemplatedMethodClass::get_size(A a, B b) {
694694
return sizeof(A) + sizeof(B);
695695
}
696-
696+
697697
template <int N, class T>
698698
long MyTemplatedMethodClass::get_size(T a) {
699699
return N + sizeof(T) + a;
@@ -818,7 +818,7 @@ TEST(FunctionReflectionTest, BestOverloadFunctionMatch3) {
818818
template<typename T>
819819
struct A {
820820
T value;
821-
821+
822822
template<typename TT>
823823
A<TT> operator-(A<TT> rhs) {
824824
return A<TT>{value - rhs.value};
@@ -1293,12 +1293,12 @@ TEST(FunctionReflectionTest, GetFunctionCallWrapper) {
12931293
FCI_Dtor.Invoke(object);
12941294
output = testing::internal::GetCapturedStdout();
12951295
EXPECT_EQ(output, "Dtor Called\n");
1296-
1296+
12971297
std::vector<Decl*> Decls1;
12981298
std::string code1 = R"(
1299-
template<typename T>
1299+
template<typename T>
13001300
struct S {
1301-
1301+
13021302
static T Add(T a, T b) { return a + b; }
13031303
13041304
};
@@ -1430,7 +1430,7 @@ TEST(FunctionReflectionTest, GetFunctionArgName) {
14301430
14311431
template<class A = int, class B = char>
14321432
long get_size(int i, A a = A(), B b = B()) {}
1433-
1433+
14341434
template<class A>
14351435
void get_size(long k, A, char ch = 'a', double l = 0.0) {}
14361436
)";
@@ -1470,7 +1470,7 @@ TEST(FunctionReflectionTest, GetFunctionArgDefault) {
14701470
14711471
template<class A = int, class B = char>
14721472
long get_size(int i, A a = A(), B b = B()) {}
1473-
1473+
14741474
template<class A>
14751475
void get_size(long k, A, char ch = 'a', double l = 0.0) {}
14761476

unittests/CppInterOp/ScopeReflectionTest.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,14 +101,14 @@ TEST(ScopeReflectionTest, IsClassPolymorphic) {
101101
std::vector<Decl*> Decls;
102102
GetAllTopLevelDecls(R"(
103103
namespace N {}
104-
104+
105105
class C{};
106-
106+
107107
class C2 {
108108
public:
109109
virtual ~C2() {}
110110
};
111-
111+
112112
int I;
113113
)",
114114
Decls);
@@ -577,7 +577,7 @@ TEST(ScopeReflectionTest, GetScopeFromType) {
577577
N::S s;
578578
579579
int i;
580-
580+
581581
N::T t;
582582
583583
N::E e;

unittests/CppInterOp/TypeReflectionTest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ TEST(TypeReflectionTest, GetTypeFromScope) {
384384
struct S {};
385385
int a = 10;
386386
)";
387-
387+
388388
GetAllTopLevelDecls(code, Decls);
389389

390390
EXPECT_EQ(Cpp::GetTypeAsString(Cpp::GetTypeFromScope(Decls[0])), "C");
@@ -476,7 +476,7 @@ TEST(TypeReflectionTest, GetDimensions) {
476476
{
477477
EXPECT_EQ(dims[i], truth_dims[i]);
478478
}
479-
479+
480480
// Variable c
481481
dims = Cpp::GetDimensions(Cpp::GetVariableType(Decls[2]));
482482
truth_dims = std::vector<long int>({1, 2});

unittests/CppInterOp/VariableReflectionTest.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,11 +166,11 @@ TEST(VariableReflectionTest, GetTypeAsString) {
166166

167167
std::string code = R"(
168168
namespace my_namespace {
169-
169+
170170
struct Container {
171171
int value;
172172
};
173-
173+
174174
struct Wrapper {
175175
Container item;
176176
};
@@ -490,7 +490,7 @@ TEST(VariableReflectionTest, DISABLED_GetArrayDimensions) {
490490
//FIXME: is_vec_eq is an unused variable until test does something
491491
//auto is_vec_eq = [](const std::vector<size_t> &arr_dims,
492492
// const std::vector<size_t> &truth_vals) {
493-
// if (arr_dims.size() != truth_vals.size())
493+
// if (arr_dims.size() != truth_vals.size())
494494
// return false;
495495
//
496496
// return std::equal(arr_dims.begin(), arr_dims.end(), truth_vals.begin());

0 commit comments

Comments
 (0)