File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change 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
176174TEST (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
You can’t perform that action at this time.
0 commit comments