[NFC] [clangd] [Modules] Leave more log for failing cases (#187448)

This is useful for users and developers to understand what happens.
This commit is contained in:
Chuanqi Xu 2026-03-19 15:30:44 +08:00 committed by GitHub
parent bdfd9725af
commit ca5e4bcc57
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;
}