Home
last modified time | relevance | path

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

12

/external/llvm-project/clang-tools-extra/clangd/index/
DRelation.h52 class RelationSlab {
58 RelationSlab() = default;
59 RelationSlab(RelationSlab &&Slab) = default;
60 RelationSlab &operator=(RelationSlab &&RHS) = default;
83 RelationSlab build() &&;
90 RelationSlab(std::vector<Relation> Relations) in RelationSlab() function
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()
DFileIndex.h80 std::unique_ptr<RelationSlab> Relations, bool CountReferences);
103 llvm::StringMap<std::shared_ptr<RelationSlab>> RelationsSnapshot;
156 using SlabTuple = std::tuple<SymbolSlab, RefSlab, RelationSlab>;
DFileIndex.cpp210 RelationSlab::Builder RelB; in getShard()
241 std::unique_ptr<RelationSlab> Relations, in update()
268 std::vector<std::shared_ptr<RelationSlab>> RelationSlabs; in buildIndex()
352 for (const auto &RelationSlab : RelationSlabs) { in buildIndex() local
353 for (const auto &R : *RelationSlab) in buildIndex()
431 std::make_unique<RelationSlab>(std::move(*IF->Relations)), in updatePreamble()
458 std::make_unique<RelationSlab>(std::move(std::get<2>(Contents))), in updateMain()
DSerialization.h45 llvm::Optional<RelationSlab> Relations;
58 const RelationSlab *Relations = nullptr;
DIndexAction.cpp133 std::function<void(RelationSlab)> RelationsCallback, in IndexAction()
195 std::function<void(RelationSlab)> RelationsCallback;
210 std::function<void(RelationSlab)> RelationsCallback, in createStaticIndexingAction()
DSymbolCollector.h118 RelationSlab takeRelations() { return std::move(Relations).build(); } in takeRelations()
153 RelationSlab::Builder Relations;
DIndexAction.h30 std::function<void(RelationSlab)> RelationsCallback,
DBackground.cpp245 std::make_unique<RelationSlab>(std::move(*IF->Relations)), in update()
310 [&](RelationSlab R) { Index.Relations = std::move(R); }, in index()
383 ? std::make_unique<RelationSlab>(std::move(*LS.Shard->Relations)) in loadProject()
DMemIndex.h49 RelationSlab Relations);
DMemIndex.cpp20 RelationSlab Relations) { in build()
DSerialization.cpp525 RelationSlab::Builder Relations; in readRIFF()
709 RelationSlab Relations; in loadIndex()
DYAMLSerialization.cpp443 RelationSlab::Builder Relations; in readYAML()
/external/llvm-project/clang-tools-extra/clangd/unittests/
DIndexTests.cpp79 TEST(RelationSlab, Lookup) { in TEST() argument
85 RelationSlab::Builder Builder; in TEST()
91 RelationSlab Slab = std::move(Builder).build(); in TEST()
97 TEST(RelationSlab, Duplicates) { in TEST() argument
102 RelationSlab::Builder Builder; in TEST()
107 RelationSlab Slab = std::move(Builder).build(); in TEST()
117 RelationSlab(), std::move(Token), 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()
[all …]
DDexTests.cpp468 RelationSlab()); in TEST()
481 RefSlab(), RelationSlab()); in TEST()
503 auto I = Dex::build(generateNumSymbols(0, 100), RefSlab(), RelationSlab()); in TEST()
518 RefSlab(), RelationSlab()); in TEST()
529 RelationSlab()); in TEST()
552 RelationSlab()); in TEST()
561 RelationSlab()); in TEST()
571 RefSlab(), RelationSlab()); in TEST()
581 RefSlab(), RelationSlab()); in TEST()
590 RelationSlab()); in TEST()
[all …]
DProjectAwareIndexTests.cpp32 return MemIndex::build(std::move(Builder).build(), RefSlab(), RelationSlab()); in createIndex()
DFileIndexTests.cpp97 std::unique_ptr<RelationSlab> relSlab(llvm::ArrayRef<const Relation> Rels) { in relSlab()
98 RelationSlab::Builder RelBuilder; in relSlab()
101 return std::make_unique<RelationSlab>(std::move(RelBuilder).build()); in relSlab()
606 RelationSlab::Builder B; in TEST()
DIndexActionTests.cpp81 [&](RelationSlab R) { IndexFile.Relations = std::move(R); }, in __anon7e85be7d0402()
DSerializationTests.cpp207 std::vector<std::string> YAMLFromRelations(const RelationSlab &Slab) { in YAMLFromRelations()
DDiagnosticsTests.cpp727 return MemIndex::build(std::move(Slab).build(), RefSlab(), RelationSlab()); in buildIndexWithSymbol()
832 MemIndex::build(std::move(Slab).build(), RefSlab(), RelationSlab()); in TEST()
DHoverTests.cpp2030 MemIndex::build(std::move(Symbols).build(), RefSlab(), RelationSlab()); in TEST()
2085 MemIndex::build(std::move(Symbols).build(), RefSlab(), RelationSlab()); in TEST()
DSymbolCollectorTests.cpp292 RelationSlab Relations;
/external/llvm-project/clang-tools-extra/clangd/indexer/
DIndexerMain.cpp76 [&](RelationSlab S) { in create()
102 RelationSlab::Builder Relations;
/external/llvm-project/clang-tools-extra/clangd/index/dex/
DDex.h71 static std::unique_ptr<SymbolIndex> build(SymbolSlab, RefSlab, RelationSlab);
DDex.cpp27 RelationSlab Rels) { in build()

12