[clang-tools-extra] [clangd] Document the cases in which Dex::Files and IdxContents are populated (PR #118906)
kadir çetinkaya via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 6 01:28:53 PST 2024
================
@@ -121,6 +121,8 @@ class Dex : public SymbolIndex {
llvm::DenseMap<std::pair<SymbolID, uint8_t>, std::vector<SymbolID>> Relations;
std::shared_ptr<void> KeepAlive; // poor man's move-only std::any
// Set of files which were used during this index build.
+ // Files and IdxContents are only populated for dynamic and background
+ // indexes, not static indexes.
----------------
kadircet wrote:
i am not sure if it's worthwhile to encode some state of the users into the library here. they're likely to get out-of-sync quickly, and I don't think they provide any value to the reader. `Dex` is independent of the concepts such as dyanmic/static index.
https://github.com/llvm/llvm-project/pull/118906
More information about the cfe-commits
mailing list