[clang-tools-extra] [clangd] Support .clangd command line modifications for C++ modules (PR #122606)
Mikael Holmén via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 22 21:28:52 PST 2025
================
@@ -830,6 +830,16 @@ bool OverlayCDB::setCompileCommand(PathRef File,
return true;
}
+std::unique_ptr<ProjectModules>
+OverlayCDB::getProjectModules(PathRef File) const {
+ auto MDB = DelegatingCDB::getProjectModules(File);
+ MDB->setCommandMangler([&Mangler = Mangler](tooling::CompileCommand &Command,
+ PathRef CommandPath) {
+ Mangler(Command, CommandPath);
+ });
+ return std::move(MDB);
----------------
mikaelholmen wrote:
Thanks!
https://github.com/llvm/llvm-project/pull/122606
More information about the cfe-commits
mailing list