Skip to content

Commit 7dcd5e9

Browse files
[clangd] Document the cases in which Dex::Files and IdxContents are populated
1 parent d77cab8 commit 7dcd5e9

File tree

1 file changed

+2
-0
lines changed
  • clang-tools-extra/clangd/index/dex

1 file changed

+2
-0
lines changed

clang-tools-extra/clangd/index/dex/Dex.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ class Dex : public SymbolIndex {
121121
llvm::DenseMap<std::pair<SymbolID, uint8_t>, std::vector<SymbolID>> Relations;
122122
std::shared_ptr<void> KeepAlive; // poor man's move-only std::any
123123
// Set of files which were used during this index build.
124+
// Files and IdxContents are only populated for dynamic and background
125+
// indexes, not static indexes.
124126
llvm::StringSet<> Files;
125127
// Contents of the index (symbols, references, etc.)
126128
IndexContents IdxContents;

0 commit comments

Comments
 (0)