Home
last modified time | relevance | path

Searched refs:RelationSlab (Results 1 – 25 of 26) sorted by relevance

12

/llvm-project/clang-tools-extra/clangd/index/
H A DRelation.h50 class RelationSlab {
56 RelationSlab() = default;
57 RelationSlab(RelationSlab &&Slab) = default;
58 RelationSlab &operator=(RelationSlab &&RHS) = default;
81 RelationSlab build() &&;
88 RelationSlab(std::vector<Relation> Relations) in RelationSlab() function
H A DRelation.cpp30 llvm::iterator_range<RelationSlab::iterator>
31 RelationSlab::lookup(const SymbolID &Subject, RelationKind Predicate) const { in lookup()
41 RelationSlab RelationSlab::Builder::build() && { in build()
49 return RelationSlab{std::move(Relations)}; in build()
H A DFileIndex.h79 std::unique_ptr<RelationSlab> Relations, bool CountReferences);
105 llvm::StringMap<std::shared_ptr<RelationSlab>> RelationsSnapshot;
156 using SlabTuple = std::tuple<SymbolSlab, RefSlab, RelationSlab>;
H A DFileIndex.cpp164 // FIXME: RelationSlab shouldn't contain dangling relations. in FileShardedIndex()
214 RelationSlab::Builder RelB; in getShard()
248 std::unique_ptr<RelationSlab> Relations, in update()
275 std::vector<std::shared_ptr<RelationSlab>> RelationSlabs; in buildIndex()
365 for (const auto &RelationSlab : RelationSlabs) { in buildIndex() local
366 for (const auto &R : *RelationSlab) in buildIndex()
440 std::make_unique<RelationSlab>(std::move(*IF->Relations)), in updatePreamble()
476 std::make_unique<RelationSlab>(std::move(std::get<2>(Contents))), in updateMain()
H A DSerialization.h46 std::optional<RelationSlab> Relations;
59 const RelationSlab *Relations = nullptr;
H A DIndexAction.cpp136 std::function<void(RelationSlab)> RelationsCallback, in IndexAction()
202 std::function<void(RelationSlab)> RelationsCallback;
216 std::function<void(RelationSlab)> RelationsCallback, in createStaticIndexingAction()
H A DSymbolCollector.h152 RelationSlab takeRelations() { return std::move(Relations).build(); } in takeRelations()
202 RelationSlab::Builder Relations;
H A DIndexAction.h30 std::function<void(RelationSlab)> RelationsCallback,
H A DBackground.cpp249 std::make_unique<RelationSlab>(std::move(*IF->Relations)), in update()
314 [&](RelationSlab R) { Index.Relations = std::move(R); }, in index()
387 ? std::make_unique<RelationSlab>(std::move(*LS.Shard->Relations)) in loadProject()
H A DMemIndex.h63 RelationSlab Relations);
H A DMemIndex.cpp19 RelationSlab Relations) { in build()
H A DSerialization.cpp531 RelationSlab::Builder Relations; in readRIFF()
718 RelationSlab Relations; in loadIndex()
H A DYAMLSerialization.cpp476 RelationSlab::Builder Relations; in readYAML()
/llvm-project/clang-tools-extra/clangd/unittests/
H A DIndexTests.cpp80 TEST(RelationSlab, Lookup) { in TEST() argument
86 RelationSlab::Builder Builder; in TEST()
92 RelationSlab Slab = std::move(Builder).build(); in TEST()
98 TEST(RelationSlab, Duplicates) { in TEST() argument
103 RelationSlab::Builder Builder; in TEST()
108 RelationSlab Slab = std::move(Builder).build(); in TEST()
118 RelationSlab(), std::move(Token), in TEST()
131 MemIndex I(Symbols, RefSlab(), RelationSlab()); in TEST()
137 MemIndex::build(generateNumSymbols(0, 100), RefSlab(), RelationSlab()); in TEST()
152 RefSlab(), RelationSlab()); in TEST()
[all...]
H A DDexTests.cpp479 RelationSlab(), true); in TEST()
492 RefSlab(), RelationSlab(), true); in TEST()
515 Dex::build(generateNumSymbols(0, 100), RefSlab(), RelationSlab(), true); in TEST()
530 RefSlab(), RelationSlab(), true); in TEST()
541 RelationSlab(), true); in TEST()
584 RelationSlab(), true); in TEST()
593 RelationSlab(), true); in TEST()
603 RefSlab(), RelationSlab(), true); in TEST()
613 RefSlab(), RelationSlab(), true); in TEST()
622 RelationSlab(), tru in TEST()
[all...]
H A DProjectAwareIndexTests.cpp32 return MemIndex::build(std::move(Builder).build(), RefSlab(), RelationSlab()); in createIndex()
H A DFileIndexTests.cpp99 std::unique_ptr<RelationSlab> relSlab(llvm::ArrayRef<const Relation> Rels) { in relSlab()
100 RelationSlab::Builder RelBuilder; in relSlab()
103 return std::make_unique<RelationSlab>(std::move(RelBuilder).build()); in relSlab()
635 RelationSlab::Builder B; in TEST()
H A DDiagnosticsTests.cpp1258 return MemIndex::build(std::move(Slab).build(), RefSlab(), RelationSlab()); in TEST()
1317 MemIndex::build(std::move(Slab).build(), RefSlab(), RelationSlab()); in TEST()
1361 MemIndex::build(std::move(Slab).build(), RefSlab(), RelationSlab()); in TEST()
1692 MemIndex::build(std::move(Slab).build(), RefSlab(), RelationSlab()); in TEST()
H A DIndexActionTests.cpp91 [&](RelationSlab R) { IndexFile.Relations = std::move(R); }, in __anonc593db390402()
H A DSerializationTests.cpp225 std::vector<std::string> yamlFromRelations(const RelationSlab &Slab) { in yamlFromRelations()
H A DHoverTests.cpp3104 MemIndex::build(std::move(Symbols).build(), RefSlab(), RelationSlab()); in TEST()
3312 MemIndex::build(std::move(Symbols).build(), RefSlab(), RelationSlab()); in TEST()
H A DSymbolCollectorTests.cpp376 RelationSlab Relations; in TEST_F()
/llvm-project/clang-tools-extra/clangd/indexer/
H A DIndexerMain.cpp88 [&](RelationSlab S) { in create()
123 RelationSlab::Builder Relations;
/llvm-project/clang-tools-extra/clangd/index/dex/
H A DDex.h78 static std::unique_ptr<SymbolIndex> build(SymbolSlab, RefSlab, RelationSlab,
H A DDex.cpp36 RelationSlab Rels, in build()

12