Skip to content

Commit ac9e233

Browse files
authored
Fix some issues raised in PR review
1 parent 14b0a6a commit ac9e233

File tree

7 files changed

+16
-17
lines changed

7 files changed

+16
-17
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -428,8 +428,8 @@ if(MSVC)
428428
??$?6U?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@D@Z
429429
??$?6U?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@PEBD@Z
430430
?_Facet_Register@std@@YAXPEAV_Facet_base@1@@Z
431-
)
432-
431+
)
432+
433433
if(MSVC_VERSION LESS 1914)
434434
set(MSVC_EXPORTLIST ${MSVC_EXPORTLIST} ??3@YAXPAX0@Z ??_V@YAXPAX0@Z)
435435
endif()

lib/Interpreter/CppInterOp.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2629,7 +2629,6 @@ namespace Cpp {
26292629
#ifdef _WIN32
26302630
// FIXME : Workaround Sema::PushDeclContext assert on windows
26312631
ClingArgv.push_back("-fno-delayed-template-parsing");
2632-
ClingArgv.push_back("-femulated-tls");
26332632
#endif
26342633
ClingArgv.insert(ClingArgv.end(), Args.begin(), Args.end());
26352634
// To keep the Interpreter creation interface between cling and clang-repl
@@ -3278,7 +3277,7 @@ namespace Cpp {
32783277
int m_DupFD = -1;
32793278

32803279
public:
3281-
#if defined(_WIN32)
3280+
#ifdef _WIN32
32823281
StreamCaptureInfo(int FD)
32833282
: m_TempFile(
32843283
[]() {

unittests/CppInterOp/CUDATest.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ TEST(DISABLED_CUDATest, Sanity) {
4646
#else
4747
TEST(CUDATest, Sanity) {
4848
#endif // CLANG_VERSION_MAJOR < 16
49-
#if defined(_WIN32)
49+
#ifdef _WIN32
5050
GTEST_SKIP() << "Disabled on Windows. Needs fixing.";
5151
#endif
5252
if (!HasCudaSDK())
@@ -55,7 +55,7 @@ TEST(CUDATest, Sanity) {
5555
}
5656

5757
TEST(CUDATest, CUDAH) {
58-
#if defined(_WIN32)
58+
#ifdef _WIN32
5959
GTEST_SKIP() << "Disabled on Windows. Needs fixing.";
6060
#endif
6161
if (!HasCudaSDK())
@@ -67,7 +67,7 @@ TEST(CUDATest, CUDAH) {
6767
}
6868

6969
TEST(CUDATest, CUDARuntime) {
70-
#if defined(_WIN32)
70+
#ifdef _WIN32
7171
GTEST_SKIP() << "Disabled on Windows. Needs fixing.";
7272
#endif
7373
if (!HasCudaRuntime())

unittests/CppInterOp/FunctionReflectionTest.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,7 @@ TEST(FunctionReflectionTest, IsStaticMethod) {
799799
TEST(FunctionReflectionTest, GetFunctionAddress) {
800800
if (llvm::sys::RunningOnValgrind())
801801
GTEST_SKIP() << "XFAIL due to Valgrind report";
802-
#if defined(_WIN32)
802+
#ifdef _WIN32
803803
GTEST_SKIP() << "Disabled on Windows. Needs fixing.";
804804
#endif
805805
std::vector<Decl*> Decls, SubDecls;
@@ -1078,7 +1078,7 @@ TEST(FunctionReflectionTest, GetFunctionArgDefault) {
10781078
TEST(FunctionReflectionTest, Construct) {
10791079
if (llvm::sys::RunningOnValgrind())
10801080
GTEST_SKIP() << "XFAIL due to Valgrind report";
1081-
#if defined(_WIN32)
1081+
#ifdef _WIN32
10821082
GTEST_SKIP() << "Disabled on Windows. Needs fixing.";
10831083
#endif
10841084

@@ -1119,7 +1119,7 @@ TEST(FunctionReflectionTest, Destruct) {
11191119
if (llvm::sys::RunningOnValgrind())
11201120
GTEST_SKIP() << "XFAIL due to Valgrind report";
11211121

1122-
#if defined(_WIN32)
1122+
#ifdef _WIN32
11231123
GTEST_SKIP() << "Disabled on Windows. Needs fixing.";
11241124
#endif
11251125

unittests/CppInterOp/InterpreterTest.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ TEST(InterpreterTest, DebugFlag) {
4545
}
4646

4747
TEST(InterpreterTest, Evaluate) {
48-
#if defined(_WIN32)
48+
#ifdef _WIN32
4949
GTEST_SKIP() << "Disabled on Windows. Needs fixing.";
5050
#endif
5151
if (llvm::sys::RunningOnValgrind())
@@ -64,7 +64,7 @@ TEST(InterpreterTest, Evaluate) {
6464
}
6565

6666
TEST(InterpreterTest, Process) {
67-
#if defined(_WIN32)
67+
#ifdef _WIN32
6868
GTEST_SKIP() << "Disabled on Windows. Needs fixing.";
6969
#endif
7070
if (llvm::sys::RunningOnValgrind())
@@ -105,7 +105,7 @@ TEST(InterpreterTest, DetectResourceDir) {
105105
#else
106106
TEST(InterpreterTest, DISABLED_DetectResourceDir) {
107107
#endif // LLVM_BINARY_DIR
108-
#if defined(_WIN32)
108+
#ifdef _WIN32
109109
GTEST_SKIP() << "Disabled on Windows. Needs fixing.";
110110
#endif
111111
Cpp::CreateInterpreter();
@@ -117,7 +117,7 @@ TEST(InterpreterTest, DISABLED_DetectResourceDir) {
117117
}
118118

119119
TEST(InterpreterTest, DetectSystemCompilerIncludePaths) {
120-
#if defined(_WIN32)
120+
#ifdef _WIN32
121121
GTEST_SKIP() << "Disabled on Windows. Needs fixing.";
122122
#endif
123123
std::vector<std::string> includes;

unittests/CppInterOp/JitTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ static int printf_jit(const char* format, ...) {
1414
TEST(JitTest, InsertOrReplaceJitSymbol) {
1515
if (llvm::sys::RunningOnValgrind())
1616
GTEST_SKIP() << "XFAIL due to Valgrind report";
17-
#if defined(_WIN32)
17+
#ifdef _WIN32
1818
GTEST_SKIP() << "Disabled on Windows. Needs fixing.";
1919
#endif
2020
std::vector<Decl*> Decls;

unittests/CppInterOp/VariableReflectionTest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ TEST(VariableReflectionTest, GetDatamembers) {
5454
EXPECT_EQ(datamembers.size(), 3);
5555
EXPECT_EQ(datamembers1.size(), 0);
5656
}
57-
#if defined(_WIN32)
57+
#ifdef _WIN32
5858
#pragma warning(disable : 4201)
5959
#endif
6060
#define CODE \
@@ -133,7 +133,7 @@ TEST(VariableReflectionTest, DatamembersWithAnonymousStructOrUnion) {
133133
((intptr_t) & (k3.c)) - ((intptr_t) & (k3.num)));
134134
EXPECT_EQ(Cpp::GetVariableOffset(datamembers_klass3[4]),
135135
((intptr_t) & (k3.num2)) - ((intptr_t) & (k3.num)));
136-
#if defined(_WIN32)
136+
#ifdef _WIN32
137137
#pragma warning(default : 4201)
138138
#endif
139139
}

0 commit comments

Comments
 (0)