[clang] [clang-repl] Add support for running custom code in Remote JIT executor (PR #157358)

Orlando Cazalet-Hyams via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 17 08:32:07 PDT 2025


================
@@ -0,0 +1,203 @@
+//===- unittests/Interpreter/OutOfProcessInterpreterTest.cpp --- Interpreter
+// tests when Out-of-Process ----===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+//
+// Unit tests for Clang's Interpreter library.
+//
+//===----------------------------------------------------------------------===//
+
+#include "InterpreterTestFixture.h"
+#include "clang/AST/Decl.h"
+#include "clang/AST/DeclGroup.h"
+#include "clang/AST/Mangle.h"
+#include "clang/Basic/Version.h"
+#include "clang/Config/config.h"
+#include "clang/Frontend/CompilerInstance.h"
+#include "clang/Frontend/TextDiagnosticPrinter.h"
+#include "clang/Interpreter/Interpreter.h"
+#include "clang/Interpreter/Value.h"
+#include "clang/Sema/Lookup.h"
+#include "clang/Sema/Sema.h"
+#include "llvm/Support/Error.h"
+#include "llvm/TargetParser/Host.h"
+#include "gmock/gmock.h"
+#include "gtest/gtest.h"
+#include <memory>
+#include <signal.h>
+#include <sstream>
+#include <unistd.h>
----------------
OCHyams wrote:

I don't think this include is portable. Compiling on Windows I get `llvm-project\clang\unittests\Interpreter\OutOfProcessInterpreterTests.cpp(33): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory`

@kr-2003 or @vgvassilev please could you take a look?

https://github.com/llvm/llvm-project/pull/157358


More information about the cfe-commits mailing list