Skip to content

Commit 233d178

Browse files
authored
Update InterpreterTest.cpp
1 parent bffb355 commit 233d178

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

unittests/CppInterOp/InterpreterTest.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77
#include "cling/Interpreter/Interpreter.h"
88
#endif // USE_CLING
99

10-
#ifdef USE_REPL
1110
#include "clang/Interpreter/Interpreter.h"
12-
#endif // USE_REPL
1311

1412
#include "clang/Basic/Version.h"
1513

@@ -175,7 +173,6 @@ TEST(InterpreterTest, CodeCompletion) {
175173

176174
TEST(InterpreterTest, ExternalInterpreterTest) {
177175

178-
#ifdef USE_REPL
179176
llvm::ExitOnError ExitOnErr;
180177
clang::IncrementalCompilerBuilder CB;
181178
CB.SetCompilerArgs({"-std=c++20"});
@@ -188,7 +185,6 @@ TEST(InterpreterTest, ExternalInterpreterTest) {
188185
std::unique_ptr<clang::Interpreter> I =
189186
ExitOnErr(clang::Interpreter::create(std::move(CI)));
190187
auto ExtInterp = I.get();
191-
#endif
192188

193189
#ifdef USE_CLING
194190
std::string MainExecutableName = sys::fs::getMainExecutable(nullptr, nullptr);
@@ -203,9 +199,8 @@ TEST(InterpreterTest, ExternalInterpreterTest) {
203199
Cpp::UseExternalInterpreter(ExtInterp);
204200
EXPECT_TRUE(Cpp::GetInterpreter()) << "External Interpreter not set";
205201

206-
#ifdef USE_REPL
207202
I.release();
208-
#endif
203+
209204
#ifdef USE_CLING
210205
delete ExtInterp;
211206
#endif

0 commit comments

Comments
 (0)