| /llvm-project-15.0.7/clang-tools-extra/clangd/index/ |
| H A D | Ref.h | 108 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 D | FileIndex.cpp | 206 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 D | Ref.cpp | 36 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 D | FileIndex.h | 78 std::unique_ptr<RefSlab> Refs, 96 std::shared_ptr<RefSlab> Slab; 154 using SlabTuple = std::tuple<SymbolSlab, RefSlab, RelationSlab>;
|
| H A D | Serialization.h | 44 llvm::Optional<RefSlab> Refs; 57 const RefSlab *Refs = nullptr;
|
| H A D | IndexAction.cpp | 132 std::function<void(RefSlab)> RefsCallback, in IndexAction() 200 std::function<void(RefSlab)> RefsCallback; 215 std::function<void(RefSlab)> RefsCallback, in createStaticIndexingAction()
|
| H A D | SymbolCollector.h | 126 RefSlab takeRefs() { return std::move(Refs).build(); } in takeRefs() 163 RefSlab::Builder Refs;
|
| H A D | IndexAction.h | 29 std::function<void(RefSlab)> RefsCallback,
|
| H A D | Background.cpp | 245 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 D | MemIndex.h | 62 static std::unique_ptr<SymbolIndex> build(SymbolSlab Symbols, RefSlab Refs,
|
| H A D | MemIndex.cpp | 17 std::unique_ptr<SymbolIndex> MemIndex::build(SymbolSlab Slab, RefSlab Refs, in build()
|
| H A D | Serialization.cpp | 517 RefSlab::Builder Refs; in readRIFF() 714 RefSlab Refs; in loadIndex()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/unittests/ |
| H A D | IndexTests.cpp | 117 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 D | DexTests.cpp | 492 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 D | TestTU.h | 92 RefSlab headerRefs() const;
|
| H A D | SyncAPI.cpp | 137 RefSlab getRefs(const SymbolIndex &Index, SymbolID ID) { in getRefs() 140 RefSlab::Builder Slab; in getRefs()
|
| H A D | ProjectAwareIndexTests.cpp | 32 return MemIndex::build(std::move(Builder).build(), RefSlab(), RelationSlab()); in createIndex()
|
| H A D | SyncAPI.h | 59 RefSlab getRefs(const SymbolIndex &Index, SymbolID ID);
|
| H A D | FileIndexTests.cpp | 66 ::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 D | RenameTests.cpp | 63 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 D | TestTU.cpp | 167 RefSlab TestTU::headerRefs() const { in headerRefs()
|
| H A D | DiagnosticsTests.cpp | 1074 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 D | IndexActionTests.cpp | 81 [&](RefSlab R) { IndexFile.Refs = std::move(R); }, in __anonae56ce760302()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/indexer/ |
| H A D | IndexerMain.cpp | 70 [&](RefSlab S) { in create() 111 RefSlab::Builder Refs;
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/index/dex/ |
| H A D | Dex.h | 76 static std::unique_ptr<SymbolIndex> build(SymbolSlab, RefSlab, RelationSlab);
|