Skip to content

Commit 45311db

Browse files
[clangd] Add clarifying comment about when Dex::IdxContents is populated
1 parent d77cab8 commit 45311db

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
@@ -123,6 +123,8 @@ class Dex : public SymbolIndex {
123123
// Set of files which were used during this index build.
124124
llvm::StringSet<> Files;
125125
// Contents of the index (symbols, references, etc.)
126+
// This is only populated if `Files` is, which applies to some but not all
127+
// consumers of this class.
126128
IndexContents IdxContents;
127129
// Size of memory retained by KeepAlive.
128130
size_t BackingDataSize = 0;

0 commit comments

Comments
 (0)