Skip to content

Commit 26760c7

Browse files
[clangd] Add clarifying comment about when Dex::IdxContents is populated (#118906)
1 parent 0b0d9a3 commit 26760c7

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
@@ -146,6 +146,8 @@ class Dex : public SymbolIndex {
146146
// Set of files which were used during this index build.
147147
llvm::StringSet<> Files;
148148
// Contents of the index (symbols, references, etc.)
149+
// This is only populated if `Files` is, which applies to some but not all
150+
// consumers of this class.
149151
IndexContents IdxContents = IndexContents::None;
150152
// Size of memory retained by KeepAlive.
151153
size_t BackingDataSize = 0;

0 commit comments

Comments
 (0)