[clang-tools-extra] [clangd] Support .clangd command line modifications for C++ modules (PR #122606)

kadir çetinkaya via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 20 02:17:21 PST 2025


================
@@ -9,12 +9,17 @@
 #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANGD_PROJECTMODULES_H
 #define LLVM_CLANG_TOOLS_EXTRA_CLANGD_PROJECTMODULES_H
 
+#include "support/Function.h"
 #include "support/Path.h"
 #include "support/ThreadsafeFS.h"
 
 #include <memory>
 
 namespace clang {
+namespace tooling {
+class CompileCommand;
----------------
kadircet wrote:

ah sorry I missed the dep on `tooling::CompileCommand`. feel free to re-add `#include "clang/Tooling/CompilationDatabase.h"` instead of the forward-decl.

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


More information about the cfe-commits mailing list