| /llvm-project-15.0.7/clang/lib/Index/ |
| H A D | IndexBody.cpp | 99 addCallRole(Roles, Relations); in getRolesForRef() 141 SmallVector<SymbolRelation, 4> Relations; in VisitDeclRefExpr() local 151 SmallVector<SymbolRelation, 4> Relations; in VisitMemberExpr() local 183 SmallVector<SymbolRelation, 4> Relations; in indexDependentReference() local 214 SmallVector<SymbolRelation, 4> Relations; in VisitObjCIvarRefExpr() local 235 addCallRole(Roles, Relations); in VisitObjCMessageExpr() 329 SmallVector<SymbolRelation, 2> Relations; in passObjCLiteralMethodCall() local 330 addCallRole(Roles, Relations); in passObjCLiteralMethodCall() 359 SmallVector<SymbolRelation, 2> Relations; in VisitCXXConstructExpr() local 360 addCallRole(Roles, Relations); in VisitCXXConstructExpr() [all …]
|
| H A D | IndexTypeSourceInfo.cpp | 26 SmallVector<SymbolRelation, 3> Relations; member in __anon3e46ae080111::TypeIndexer 36 Relations.emplace_back((unsigned)SymbolRole::RelationBaseOf, Parent); in TypeIndexer() 40 Relations.emplace_back((unsigned)SymbolRole::RelationIBTypeOf, Parent); in TypeIndexer() 73 Relations)); in VisitTypedefTypeLoc() 78 Relations)); in VisitTypedefTypeLoc() 131 Relations); in VisitTagTypeLoc() 157 SymbolRoleSet(), Relations); in HandleTemplateSpecializationTypeLoc() 160 SymbolRoleSet(), Relations); in HandleTemplateSpecializationTypeLoc() 182 SmallVector<SymbolRelation, 3> SavedRelations = Relations; in TraverseTemplateSpecializationTypeLoc() 183 Relations.clear(); in TraverseTemplateSpecializationTypeLoc() [all …]
|
| H A D | IndexDecl.cpp | 141 SmallVector<SymbolRelation, 4> Relations; in handleObjCMethod() local 237 Relations.emplace_back( in gatherTemplatePseudoOverrides() 245 SmallVector<SymbolRelation, 4> Relations; in VisitFunctionDecl() local 253 gatherTemplatePseudoOverrides(D, Relations); in VisitFunctionDecl() 255 Relations.push_back( in VisitFunctionDecl() 306 SmallVector<SymbolRelation, 4> Relations; in VisitVarDecl() local 307 gatherTemplatePseudoOverrides(D, Relations); in VisitVarDecl() 321 SmallVector<SymbolRelation, 4> Relations; in VisitFieldDecl() local 356 SmallVector<SymbolRelation, 4> Relations; in VisitTypedefNameDecl() local 370 IndexCtx.indexTagDecl(D, Relations); in VisitTagDecl() [all …]
|
| H A D | IndexingContext.h | 71 ArrayRef<SymbolRelation> Relations = None); 75 ArrayRef<SymbolRelation> Relations = None, 82 ArrayRef<SymbolRelation> Relations = None, 100 ArrayRef<SymbolRelation> Relations = None); 132 ArrayRef<SymbolRelation> Relations,
|
| H A D | IndexingContext.cpp | 54 ArrayRef<SymbolRelation> Relations) { in handleDecl() argument 55 return handleDecl(D, D->getLocation(), Roles, Relations); in handleDecl() 60 ArrayRef<SymbolRelation> Relations, in handleDecl() argument 70 Roles, Relations, in handleDecl() 78 ArrayRef<SymbolRelation> Relations, in handleReference() argument 89 return handleDeclOccurrence(D, Loc, /*IsRef=*/true, Parent, Roles, Relations, in handleReference() 310 bool IsRef, SymbolRoleSet Roles, ArrayRef<SymbolRelation> Relations) { in shouldReportOccurrenceForSystemDeclOnlyMode() argument 348 for (auto &Rel : Relations) { in shouldReportOccurrenceForSystemDeclOnlyMode() 359 ArrayRef<SymbolRelation> Relations, in handleDeclOccurrence() argument 416 FinalRelations.reserve(Relations.size()+1); in handleDeclOccurrence() [all …]
|
| H A D | FileIndexRecord.cpp | 33 ArrayRef<SymbolRelation> Relations) { in addDeclOccurence() argument 37 Decls.emplace_back(Roles, Offset, D, Relations); in addDeclOccurence()
|
| H A D | FileIndexRecord.h | 49 ArrayRef<SymbolRelation> Relations);
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/index/ |
| H A D | Relation.h | 60 const_iterator begin() const { return Relations.begin(); } in begin() 61 const_iterator end() const { return Relations.end(); } in end() 62 size_t size() const { return Relations.size(); } in size() 63 bool empty() const { return Relations.empty(); } in empty() 66 return sizeof(*this) + sizeof(value_type) * Relations.capacity(); in bytes() 78 void insert(const Relation &R) { Relations.push_back(R); } in insert() 84 std::vector<Relation> Relations; 88 RelationSlab(std::vector<Relation> Relations) in RelationSlab() argument 89 : Relations(std::move(Relations)) {} in RelationSlab() 91 std::vector<Relation> Relations; variable
|
| H A D | Relation.cpp | 32 auto IterPair = std::equal_range(Relations.begin(), Relations.end(), in lookup() 43 llvm::sort(Relations); in build() 46 Relations.erase(std::unique(Relations.begin(), Relations.end()), in build() 47 Relations.end()); in build() 49 return RelationSlab{std::move(Relations)}; in build()
|
| H A D | MemIndex.h | 25 MemIndex(SymbolRange &&Symbols, RefRange &&Refs, RelationRange &&Relations) { in MemIndex() argument 30 for (const Relation &R : Relations) in MemIndex() 31 this->Relations[std::make_pair(R.Subject, in MemIndex() 38 MemIndex(SymbolRange &&Symbols, RefRange &&Refs, RelationRange &&Relations, in MemIndex() argument 42 std::forward<RelationRange>(Relations)) { in MemIndex() 50 MemIndex(SymbolRange &&Symbols, RefRange &&Refs, RelationRange &&Relations, in MemIndex() argument 55 std::forward<RelationRange>(Relations), in MemIndex() 63 RelationSlab Relations); 92 llvm::DenseMap<std::pair<SymbolID, uint8_t>, std::vector<SymbolID>> Relations; variable
|
| H A D | Serialization.h | 45 llvm::Optional<RelationSlab> Relations; member 58 const RelationSlab *Relations = nullptr; member 69 Relations(I.Relations ? I.Relations.getPointer() : nullptr), in IndexFileOut()
|
| H A D | FileIndex.cpp | 93 auto Relations = Collector.takeRelations(); in indexSymbols() local 101 Relations.size(), Relations.bytes()); in indexSymbols() 103 std::move(Relations)); in indexSymbols() 161 if (Index.Relations) { in FileShardedIndex() 162 for (const auto &R : *Index.Relations) { in FileShardedIndex() 167 SubjectFile->Relations.insert(&R); in FileShardedIndex() 169 ObjectFile->Relations.insert(&R); in FileShardedIndex() 214 for (const auto *Rel : It->getValue().Relations) { in getShard() 217 IF.Relations = std::move(RelB).build(); in getShard() 263 if (!Relations) in update() [all …]
|
| H A D | MemIndex.cpp | 18 RelationSlab Relations) { in build() argument 22 return std::make_unique<MemIndex>(Data.first, Data.second, Relations, in build() 94 auto It = Relations.find( in relations() 96 if (It != Relations.end()) { in relations() 117 Relations.getMemorySize() + BackingDataSize; in estimateMemoryUsage()
|
| H A D | Serialization.cpp | 529 RelationSlab::Builder Relations; in readRIFF() local 534 Result.Relations = std::move(Relations).build(); in readRIFF() 597 std::vector<Relation> Relations; in writeRIFF() local 598 if (Data.Relations) { in writeRIFF() 600 Relations.emplace_back(Relation); in writeRIFF() 642 if (Data.Relations) { in writeRIFF() 645 for (const auto &Relation : Relations) in writeRIFF() 715 RelationSlab Relations; in loadIndex() local 723 if (I->Relations) in loadIndex() 724 Relations = std::move(*I->Relations); in loadIndex() [all …]
|
| H A D | SymbolCollector.h | 115 ArrayRef<index::SymbolRelation> Relations, 127 RelationSlab takeRelations() { return std::move(Relations).build(); } in takeRelations() 141 ArrayRef<index::SymbolRelation> Relations); 165 RelationSlab::Builder Relations; variable
|
| H A D | FileIndex.h | 79 std::unique_ptr<RelationSlab> Relations, bool CountReferences); 191 llvm::DenseSet<const Relation *> Relations; member
|
| H A D | YAMLSerialization.cpp | 401 if (O.Relations) in writeYAML() 402 for (auto &R : *O.Relations) { in writeYAML() 425 RelationSlab::Builder Relations; in readYAML() local 447 Relations.insert(*Variant.Relation); in readYAML() 465 Result.Relations.emplace(std::move(Relations).build()); in readYAML()
|
| H A D | Index.h | 97 Relations = 1 << 3, enumerator 98 All = Symbols | References | Relations
|
| H A D | Background.cpp | 246 std::make_unique<RelationSlab>(std::move(*IF->Relations)), in update() 311 [&](RelationSlab R) { Index.Relations = std::move(R); }, in index() 383 LS.Shard->Relations in loadProject() 384 ? std::make_unique<RelationSlab>(std::move(*LS.Shard->Relations)) in loadProject()
|
| /llvm-project-15.0.7/clang/include/clang/Index/ |
| H A D | DeclOccurrence.h | 28 SmallVector<SymbolRelation, 3> Relations; member 31 ArrayRef<SymbolRelation> Relations) in DeclOccurrence() 33 Relations(Relations.begin(), Relations.end()) {} in DeclOccurrence()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/index/dex/ |
| H A D | Dex.h | 39 Dex(SymbolRange &&Symbols, RefsRange &&Refs, RelationsRange &&Relations) in Dex() argument 45 for (auto &&Rel : Relations) in Dex() 46 this->Relations[std::make_pair(Rel.Subject, in Dex() 54 Dex(SymbolRange &&Symbols, RefsRange &&Refs, RelationsRange &&Relations, in Dex() argument 57 std::forward<RelationsRange>(Relations)) { in Dex() 65 Dex(SymbolRange &&Symbols, RefsRange &&Refs, RelationsRange &&Relations, in Dex() argument 69 std::forward<RelationsRange>(Relations), in Dex() 121 llvm::DenseMap<std::pair<SymbolID, uint8_t>, std::vector<SymbolID>> Relations; variable
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/unittests/ |
| H A D | FindTargetTests.cpp | 35 PrintedDecl(const char *Name, DeclRelationSet Relations = {}) in PrintedDecl() 36 : Name(Name), Relations(Relations) {} 37 PrintedDecl(const NamedDecl *D, DeclRelationSet Relations = {}) in PrintedDecl() 38 : Relations(Relations) { 49 DeclRelationSet Relations; member 52 return std::tie(L.Name, L.Relations) == std::tie(R.Name, R.Relations); in operator ==() 55 return OS << D.Name << " Rel=" << D.Relations; in operator <<()
|
| H A D | SerializationTests.cpp | 174 ASSERT_TRUE(bool(ParsedYAML->Relations)); in TEST() 176 *ParsedYAML->Relations, in TEST() 228 ASSERT_TRUE(In2->Relations); in TEST() 235 EXPECT_THAT(yamlFromRelations(*In2->Relations), in TEST() 236 UnorderedElementsAreArray(yamlFromRelations(*In->Relations))); in TEST()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/indexer/ |
| H A D | IndexerMain.cpp | 81 Relations.insert(R); in create() 101 Result.Relations = std::move(Relations).build(); in ~IndexActionFactory() 113 RelationSlab::Builder Relations; member in clang::clangd::__anon30e346fd0111::IndexActionFactory
|
| /llvm-project-15.0.7/clang/tools/c-index-test/ |
| H A D | core_main.cpp | 105 ArrayRef<SymbolRelation> Relations, in handleDeclOccurrence() argument 129 OS << "rel: " << Relations.size() << '\n'; in handleDeclOccurrence() 131 for (auto &SymRel : Relations) { in handleDeclOccurrence()
|