Home
last modified time | relevance | path

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

12

/external/llvm-project/clang-tools-extra/clangd/index/
DRef.h110 class RefSlab {
117 RefSlab() = default;
118 RefSlab(RefSlab &&Slab) = default;
119 RefSlab &operator=(RefSlab &&RHS) = default;
140 RefSlab build() &&;
157 RefSlab(std::vector<value_type> Refs, llvm::BumpPtrAllocator Arena,
171 template <> struct DenseMapInfo<clang::clangd::RefSlab::Builder::Entry> {
172 using Entry = clang::clangd::RefSlab::Builder::Entry;
DFileIndex.cpp203 RefSlab::Builder RefB; in getShard()
240 std::unique_ptr<RefSlab> Refs, in update()
267 std::vector<std::shared_ptr<RefSlab>> RefSlabs; in buildIndex()
269 std::vector<RefSlab *> MainFileRefs; in buildIndex()
299 for (const RefSlab *Refs : MainFileRefs) in buildIndex()
332 for (const auto &RefSlab : RefSlabs) in buildIndex() local
333 for (const auto &Sym : *RefSlab) { in buildIndex()
367 for (const auto &RefSlab : RefSlabs) in buildIndex() local
368 StorageSize += RefSlab->bytes(); in buildIndex()
397 for (const auto &RefSlab : RefsSnapshot) { in profile() local
[all …]
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()
DFileIndex.h79 std::unique_ptr<RefSlab> Refs,
95 std::shared_ptr<RefSlab> Slab;
156 using SlabTuple = std::tuple<SymbolSlab, RefSlab, RelationSlab>;
DSerialization.h44 llvm::Optional<RefSlab> Refs;
57 const RefSlab *Refs = nullptr;
DIndexAction.cpp132 std::function<void(RefSlab)> RefsCallback, in IndexAction()
194 std::function<void(RefSlab)> RefsCallback;
209 std::function<void(RefSlab)> RefsCallback, in createStaticIndexingAction()
DSymbolCollector.h117 RefSlab takeRefs() { return std::move(Refs).build(); } in takeRefs()
151 RefSlab::Builder Refs;
DIndexAction.h29 std::function<void(RefSlab)> RefsCallback,
DBackground.cpp244 std::make_unique<RefSlab>(std::move(*IF->Refs)), in update()
309 [&](RefSlab R) { Index.Refs = std::move(R); }, in index()
379 ? std::make_unique<RefSlab>(std::move(*LS.Shard->Refs)) in loadProject()
DMemIndex.h48 static std::unique_ptr<SymbolIndex> build(SymbolSlab Symbols, RefSlab Refs,
DMemIndex.cpp19 std::unique_ptr<SymbolIndex> MemIndex::build(SymbolSlab Slab, RefSlab Refs, in build()
DSerialization.cpp513 RefSlab::Builder Refs; in readRIFF()
708 RefSlab Refs; in loadIndex()
/external/llvm-project/clang-tools-extra/clangd/unittests/
DIndexTests.cpp116 SwapIndex S(std::make_unique<MemIndex>(SymbolSlab(), RefSlab(), in TEST()
130 MemIndex I(Symbols, RefSlab(), RelationSlab()); in TEST()
136 MemIndex::build(generateNumSymbols(0, 100), RefSlab(), RelationSlab()); in TEST()
151 RefSlab(), RelationSlab()); in TEST()
161 auto I = MemIndex::build(generateSymbols({"a::y1", "b::y2", "y3"}), RefSlab(), in TEST()
170 auto I = MemIndex::build(generateSymbols({"a::y1", "b::y2", "y3"}), RefSlab(), in TEST()
180 generateSymbols({"a::y1", "a::y2", "a::x", "b::y2", "y3"}), RefSlab(), in TEST()
190 generateSymbols({"a::y1", "a::y2", "a::x", "b::y3", "y3"}), RefSlab(), in TEST()
199 auto I = MemIndex::build(generateSymbols({"a::y1", "a::b::y2"}), RefSlab(), in TEST()
208 auto I = MemIndex::build(generateSymbols({"ns::ABC", "ns::abc"}), RefSlab(), in TEST()
[all …]
DDexTests.cpp467 auto I = Dex::build(generateSymbols({"ns::abc", "ns::xyz"}), RefSlab(), in TEST()
481 RefSlab(), RelationSlab()); in TEST()
503 auto I = Dex::build(generateNumSymbols(0, 100), RefSlab(), RelationSlab()); in TEST()
518 RefSlab(), RelationSlab()); in TEST()
528 auto I = Dex::build(generateSymbols({"OneTwoThreeFour"}), RefSlab(), in TEST()
551 auto I = Dex::build(generateSymbols({"a::y1", "b::y2", "y3"}), RefSlab(), in TEST()
560 auto I = Dex::build(generateSymbols({"a::y1", "b::y2", "y3"}), RefSlab(), in TEST()
571 RefSlab(), RelationSlab()); in TEST()
581 RefSlab(), RelationSlab()); in TEST()
589 auto I = Dex::build(generateSymbols({"a::y1", "a::b::y2"}), RefSlab(), in TEST()
[all …]
DTestTU.h86 RefSlab headerRefs() const;
DProjectAwareIndexTests.cpp32 return MemIndex::build(std::move(Builder).build(), RefSlab(), RelationSlab()); in createIndex()
DSyncAPI.cpp137 RefSlab getRefs(const SymbolIndex &Index, SymbolID ID) { in getRefs()
140 RefSlab::Builder Slab; in getRefs()
DSyncAPI.h57 RefSlab getRefs(const SymbolIndex &Index, SymbolID ID);
DFileIndexTests.cpp69 ::testing::Matcher<const RefSlab &>
88 std::unique_ptr<RefSlab> refSlab(const SymbolID &ID, const char *Path) { in refSlab()
89 RefSlab::Builder Slab; in refSlab()
94 return std::make_unique<RefSlab>(std::move(Slab).build()); in refSlab()
DRenameTests.cpp50 std::unique_ptr<RefSlab> buildRefSlab(const Annotations &Code, in buildRefSlab()
53 RefSlab::Builder Builder; in buildRefSlab()
62 return std::make_unique<RefSlab>(std::move(Builder).build()); in buildRefSlab()
DTestTU.cpp152 RefSlab TestTU::headerRefs() const { in headerRefs()
DIndexActionTests.cpp80 [&](RefSlab R) { IndexFile.Refs = std::move(R); }, in __anon7e85be7d0302()
DSerializationTests.cpp200 std::vector<std::string> YAMLFromRefs(const RefSlab &Slab) { in YAMLFromRefs()
/external/llvm-project/clang-tools-extra/clangd/indexer/
DIndexerMain.cpp68 [&](RefSlab S) { in create()
100 RefSlab::Builder Refs;
/external/llvm-project/clang-tools-extra/clangd/index/dex/
DDex.h71 static std::unique_ptr<SymbolIndex> build(SymbolSlab, RefSlab, RelationSlab);

12