[clang-tools-extra] [clangd] Make clangd-indexer respect .clangd configuration files (PR #214951)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 25 03:19:53 PDT 2026
================
@@ -162,8 +221,23 @@ int main(int argc, const char **argv) {
auto Err = Executor->get()->execute(
std::make_unique<clang::clangd::IndexActionFactory>(Data),
clang::tooling::ArgumentsAdjuster(
- [Mangler = std::move(Mangler)](const std::vector<std::string> &Args,
- llvm::StringRef File) {
+ [Mangler = std::move(Mangler),
+ ContextProvider = std::move(ContextProvider)](
+ const std::vector<std::string> &Args, llvm::StringRef File) {
+ // Issue: If File is relative, it's relative to the compile
+ // command's "directory", not our CWD, but ToolExecutor doesn't
+ // expose "directory" here, so make_absolute can resolve it wrong
+ // and miss the .clangd file. See
+ // indexer-clangd-config-relative-path.test.
----------------
Fil-Den wrote:
done
https://github.com/llvm/llvm-project/pull/214951
More information about the cfe-commits
mailing list