[clang-tools-extra] Add --project-root to clangd (PR #155905)

Nathan Ridge via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 27 22:36:15 PST 2025


================
@@ -69,14 +71,17 @@ class GlobalCompilationDatabase {
   }
 
 protected:
+  std::optional<std::string> WorkingDirectory;
----------------
HighCommander4 wrote:

Since this only applies to fallback commands, let's call it `FallbackWorkingDirectory`. Likewise for the field in `DirectoryBasedGlobalCompilationDatabase::Options`, the method that sets it, etc.

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


More information about the cfe-commits mailing list