https://github.com/ChuanqiXu9 created https://github.com/llvm/llvm-project/pull/187448
This is useful for users and developers to understand what happens. >From 2b7e72589d2d01a58d2daeb1319ca8528896668c Mon Sep 17 00:00:00 2001 From: Chuanqi Xu <[email protected]> Date: Thu, 19 Mar 2026 15:17:58 +0800 Subject: [PATCH] [NFC] [clangd] [Modules] Leave more log for failing cases --- clang-tools-extra/clangd/ScanningProjectModules.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/clang-tools-extra/clangd/ScanningProjectModules.cpp b/clang-tools-extra/clangd/ScanningProjectModules.cpp index b1338634e0c29..d9863085d3827 100644 --- a/clang-tools-extra/clangd/ScanningProjectModules.cpp +++ b/clang-tools-extra/clangd/ScanningProjectModules.cpp @@ -123,6 +123,10 @@ ModuleDependencyScanner::scan(PathRef FilePath, if (!ScanningResult) { elog("Scanning modules dependencies for {0} failed: {1}", FilePath, S); + std::string Cmdline; + for (auto &Arg : Cmd.CommandLine) + Cmdline += Arg + " "; + elog("The command line the scanning tool use is: {0}", Cmdline); return std::nullopt; } _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
