Skip to content

Commit 12febcf

Browse files
committed
Put the initialization in the declaration.
1 parent d93be0f commit 12febcf

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

clang-tools-extra/clangd/index/MemIndex.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ class MemIndex : public SymbolIndex {
4343
KeepAlive = std::shared_ptr<void>(
4444
std::make_shared<Payload>(std::move(BackingData)), nullptr);
4545
this->BackingDataSize = BackingDataSize;
46-
this->IdxContents = IndexContents::All;
4746
}
4847

4948
template <typename SymbolRange, typename RefRange, typename RelationRange,

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ class Dex : public SymbolIndex {
5858
KeepAlive = std::shared_ptr<void>(
5959
std::make_shared<Payload>(std::move(BackingData)), nullptr);
6060
this->BackingDataSize = BackingDataSize;
61-
this->IdxContents = IndexContents::All;
6261
}
6362

6463
template <typename SymbolRange, typename RefsRange, typename RelationsRange,
@@ -124,7 +123,7 @@ class Dex : public SymbolIndex {
124123
// Set of files which were used during this index build.
125124
llvm::StringSet<> Files;
126125
// Contents of the index (symbols, references, etc.)
127-
IndexContents IdxContents;
126+
IndexContents IdxContents = IndexContents::None;
128127
// Size of memory retained by KeepAlive.
129128
size_t BackingDataSize = 0;
130129
};

0 commit comments

Comments
 (0)