Home
last modified time | relevance | path

Searched refs:RefSlab (Results 1 – 25 of 32) sorted by relevance

12

/llvm-project-15.0.7/clang-tools-extra/clangd/index/
H A DRef.h108 class RefSlab {
115 RefSlab() = default;
116 RefSlab(RefSlab &&Slab) = default;
117 RefSlab &operator=(RefSlab &&RHS) = default;
138 RefSlab build() &&;
155 RefSlab(std::vector<value_type> Refs, llvm::BumpPtrAllocator Arena,
169 template <> struct DenseMapInfo<clang::clangd::RefSlab::Builder::Entry> {
170 using Entry = clang::clangd::RefSlab::Builder::Entry;
H A DFileIndex.cpp206 RefSlab::Builder RefB; in getShard()
276 std::vector<RefSlab *> MainFileRefs; in buildIndex()
311 for (const RefSlab *Refs : MainFileRefs) in buildIndex()
344 for (const auto &RefSlab : RefSlabs) in buildIndex() local
345 for (const auto &Sym : *RefSlab) { in buildIndex()
379 for (const auto &RefSlab : RefSlabs) in buildIndex() local
380 StorageSize += RefSlab->bytes(); in buildIndex()
409 for (const auto &RefSlab : RefsSnapshot) { in profile() local
410 MT.detail(RefSlab.first()) in profile()
412 .addUsage(RefSlab.second.Slab->bytes()); in profile()
[all …]
H A DRef.cpp36 void RefSlab::Builder::insert(const SymbolID &ID, const Ref &S) { in insert()
42 RefSlab RefSlab::Builder::build() && { in build()
64 return RefSlab(std::move(Result), std::move(Arena), Entries.size()); in build()
H A DFileIndex.h78 std::unique_ptr<RefSlab> Refs,
96 std::shared_ptr<RefSlab> Slab;
154 using SlabTuple = std::tuple<SymbolSlab, RefSlab, RelationSlab>;
H A DSerialization.h44 llvm::Optional<RefSlab> Refs;
57 const RefSlab *Refs = nullptr;
H A DIndexAction.cpp132 std::function<void(RefSlab)> RefsCallback, in IndexAction()
200 std::function<void(RefSlab)> RefsCallback;
215 std::function<void(RefSlab)> RefsCallback, in createStaticIndexingAction()
H A DSymbolCollector.h126 RefSlab takeRefs() { return std::move(Refs).build(); } in takeRefs()
163 RefSlab::Builder Refs;
H A DIndexAction.h29 std::function<void(RefSlab)> RefsCallback,
H A DBackground.cpp245 std::make_unique<RefSlab>(std::move(*IF->Refs)), in update()
310 [&](RefSlab R) { Index.Refs = std::move(R); }, in index()
380 ? std::make_unique<RefSlab>(std::move(*LS.Shard->Refs)) in loadProject()
H A DMemIndex.h62 static std::unique_ptr<SymbolIndex> build(SymbolSlab Symbols, RefSlab Refs,
H A DMemIndex.cpp17 std::unique_ptr<SymbolIndex> MemIndex::build(SymbolSlab Slab, RefSlab Refs, in build()
H A DSerialization.cpp517 RefSlab::Builder Refs; in readRIFF()
714 RefSlab Refs; in loadIndex()
/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/
H A DIndexTests.cpp117 SwapIndex S(std::make_unique<MemIndex>(SymbolSlab(), RefSlab(), in TEST()
131 MemIndex I(Symbols, RefSlab(), RelationSlab()); in TEST()
152 RefSlab(), RelationSlab()); in TEST()
230 RefSlab Refs; in TEST()
278 auto I = MemIndex::build(generateSymbols({"ns::A", "ns::B"}), RefSlab(), in TEST()
485 RefSlab::Builder Results; in TEST()
497 RefSlab::Builder Results2; in TEST()
508 RefSlab::Builder Results3; in TEST()
519 RefSlab DynRefs; in TEST()
527 RefSlab StaticRefs; in TEST()
[all …]
H A DDexTests.cpp492 RefSlab(), RelationSlab()); in TEST()
529 RefSlab(), RelationSlab()); in TEST()
539 auto I = Dex::build(generateSymbols({"_OneTwoFourSix"}), RefSlab(), in TEST()
602 RefSlab(), RelationSlab()); in TEST()
612 RefSlab(), RelationSlab()); in TEST()
630 RefSlab(), RelationSlab()); in TEST()
674 Dex I(Symbols, RefSlab(), RelationSlab()); in TEST()
690 Dex I(Symbols, RefSlab(), RelationSlab()); in TEST()
754 Dex I{Symbols, RefSlab(), Relations}; in TEST()
768 RefSlab Refs; in TEST()
[all …]
H A DTestTU.h92 RefSlab headerRefs() const;
H A DSyncAPI.cpp137 RefSlab getRefs(const SymbolIndex &Index, SymbolID ID) { in getRefs()
140 RefSlab::Builder Slab; in getRefs()
H A DProjectAwareIndexTests.cpp32 return MemIndex::build(std::move(Builder).build(), RefSlab(), RelationSlab()); in createIndex()
H A DSyncAPI.h59 RefSlab getRefs(const SymbolIndex &Index, SymbolID ID);
H A DFileIndexTests.cpp66 ::testing::Matcher<const RefSlab &>
85 std::unique_ptr<RefSlab> refSlab(const SymbolID &ID, const char *Path) { in refSlab()
86 RefSlab::Builder Slab; in refSlab()
91 return std::make_unique<RefSlab>(std::move(Slab).build()); in refSlab()
H A DRenameTests.cpp63 std::unique_ptr<RefSlab> buildRefSlab(const Annotations &Code, in buildRefSlab()
66 RefSlab::Builder Builder; in buildRefSlab()
75 return std::make_unique<RefSlab>(std::move(Builder).build()); in buildRefSlab()
H A DTestTU.cpp167 RefSlab TestTU::headerRefs() const { in headerRefs()
H A DDiagnosticsTests.cpp1074 return MemIndex::build(std::move(Slab).build(), RefSlab(), RelationSlab()); in buildIndexWithSymbol()
1133 MemIndex::build(std::move(Slab).build(), RefSlab(), RelationSlab()); in TEST()
1177 MemIndex::build(std::move(Slab).build(), RefSlab(), RelationSlab()); in TEST()
1498 MemIndex::build(std::move(Slab).build(), RefSlab(), RelationSlab()); in TEST()
H A DIndexActionTests.cpp81 [&](RefSlab R) { IndexFile.Refs = std::move(R); }, in __anonae56ce760302()
/llvm-project-15.0.7/clang-tools-extra/clangd/indexer/
H A DIndexerMain.cpp70 [&](RefSlab S) { in create()
111 RefSlab::Builder Refs;
/llvm-project-15.0.7/clang-tools-extra/clangd/index/dex/
H A DDex.h76 static std::unique_ptr<SymbolIndex> build(SymbolSlab, RefSlab, RelationSlab);

12