[all-commits] [llvm/llvm-project] 109bc0: [clangd] Add --query-driver flag to clangd-indexer
Nathan Ridge via All-commits
all-commits at lists.llvm.org
Thu Aug 24 08:52:19 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 109bc024c8d741e57fa6bb5a028d8a4ed4e64a61
https://github.com/llvm/llvm-project/commit/109bc024c8d741e57fa6bb5a028d8a4ed4e64a61
Author: Nathan Ridge <zeratul976 at hotmail.com>
Date: 2023-08-24 (Thu, 24 Aug 2023)
Changed paths:
M clang-tools-extra/clangd/indexer/IndexerMain.cpp
Log Message:
-----------
[clangd] Add --query-driver flag to clangd-indexer
When using `clangd` for cross-compiled projects, it's necessary to use the `--query-driver` flag so that `clangd` can extract the compiler's built-in header paths. However, there's no such flag for `clangd-indexer` so we're unable to build a working static index for these projects.
This patch adds a `--query-driver` flag to `clangd-indexer` for this scenario.
I saw some tests under `clang-tools-extra/clangd/test/` but I think the cross-compilation case is a bit more complex to test. Let me know if you'd like me to look into this further.
Resolves: https://github.com/clangd/clangd/issues/1717
Reviewed By: nridge
Differential Revision: https://reviews.llvm.org/D157990
More information about the All-commits
mailing list