[clang-tools-extra] [clangd] Resolve out-of-tree module units via ProjectModules (PR #242615)

Chuanqi Xu via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 25 22:12:18 PST 2026


================
@@ -92,6 +93,17 @@ class OverlayCDBTest : public ::testing::Test {
     std::optional<ProjectInfo> getProjectInfo(PathRef File) const override {
       return ProjectInfo{testRoot()};
     }
+
+    std::unique_ptr<ProjectModules>
+    getProjectModules(PathRef File) const override {
+      std::string Error;
+      auto JSONCDB = tooling::JSONCompilationDatabase::loadFromBuffer(
+          testRoot(), "[]", Error, tooling::JSONCommandLineSyntax::AutoDetect);
----------------
ChuanqiXu9 wrote:

Here it passes `[]`. Then it looks like it can pass without the mangler change.

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


More information about the cfe-commits mailing list