Home
last modified time | relevance | path

Searched refs:SymbolRole (Results 1 – 19 of 19) sorted by relevance

/external/llvm-project/clang/lib/Index/
DIndexingContext.cpp103 ImportD, Mod, (SymbolRoleSet)SymbolRole::Reference, IdLocs.back()); in reportModuleReferences()
143 SymbolRoleSet Roles = (unsigned)SymbolRole::Declaration; in importedModule()
145 Roles |= (unsigned)SymbolRole::Implicit; in importedModule()
320 applyForEachSymbolRoleInterruptible(roles, [&accept](SymbolRole r) -> bool { in shouldReportOccurrenceForSystemDeclOnlyMode()
322 case SymbolRole::RelationChildOf: in shouldReportOccurrenceForSystemDeclOnlyMode()
323 case SymbolRole::RelationBaseOf: in shouldReportOccurrenceForSystemDeclOnlyMode()
324 case SymbolRole::RelationOverrideOf: in shouldReportOccurrenceForSystemDeclOnlyMode()
325 case SymbolRole::RelationExtendedBy: in shouldReportOccurrenceForSystemDeclOnlyMode()
326 case SymbolRole::RelationAccessorOf: in shouldReportOccurrenceForSystemDeclOnlyMode()
327 case SymbolRole::RelationIBTypeOf: in shouldReportOccurrenceForSystemDeclOnlyMode()
[all …]
DIndexSymbol.cpp408 llvm::function_ref<bool(SymbolRole)> Fn) { in applyForEachSymbolRoleInterruptible()
410 if (Roles & (unsigned)SymbolRole::Role) \ in applyForEachSymbolRoleInterruptible()
411 if (!Fn(SymbolRole::Role)) \ in applyForEachSymbolRoleInterruptible()
442 llvm::function_ref<void(SymbolRole)> Fn) { in applyForEachSymbolRole()
443 applyForEachSymbolRoleInterruptible(Roles, [&](SymbolRole r) -> bool { in applyForEachSymbolRole()
451 applyForEachSymbolRole(Roles, [&](SymbolRole Role) { in printSymbolRoles()
457 case SymbolRole::Declaration: OS << "Decl"; break; in printSymbolRoles()
458 case SymbolRole::Definition: OS << "Def"; break; in printSymbolRoles()
459 case SymbolRole::Reference: OS << "Ref"; break; in printSymbolRoles()
460 case SymbolRole::Read: OS << "Read"; break; in printSymbolRoles()
[all …]
DIndexBody.cpp67 Roles |= (unsigned)(unsigned)SymbolRole::Read; in getRolesForRef()
77 Roles |= (unsigned)SymbolRole::Write; in getRolesForRef()
81 Roles |= (unsigned)SymbolRole::Read; in getRolesForRef()
82 Roles |= (unsigned)SymbolRole::Write; in getRolesForRef()
84 Roles |= (unsigned)SymbolRole::AddressOf; in getRolesForRef()
89 Roles |= (unsigned)SymbolRole::Read; in getRolesForRef()
90 Roles |= (unsigned)SymbolRole::Write; in getRolesForRef()
99 Roles |= (unsigned)SymbolRole::Dynamic; in getRolesForRef()
103 Relations.emplace_back((unsigned)SymbolRole::RelationReceivedBy, in getRolesForRef()
111 Roles |= (unsigned)SymbolRole::Write; in getRolesForRef()
[all …]
DIndexDecl.cpp140 Relations.emplace_back((unsigned) SymbolRole::RelationOverrideOf, in handleObjCMethod()
144 Relations.emplace_back((unsigned)SymbolRole::RelationAccessorOf, in handleObjCMethod()
163 SymbolRoleSet Roles = (SymbolRoleSet)SymbolRole::Dynamic; in handleObjCMethod()
168 Roles |= (SymbolRoleSet)SymbolRole::Implicit; in handleObjCMethod()
232 SymbolRoleSet(SymbolRole::RelationSpecializationOf), ND); in gatherTemplatePseudoOverrides()
242 Roles |= (unsigned)SymbolRole::Dynamic; in VisitFunctionDecl()
244 Relations.emplace_back((unsigned)SymbolRole::RelationOverrideOf, O); in VisitFunctionDecl()
250 SymbolRelation(SymbolRoleSet(SymbolRole::RelationSpecializationOf), in VisitFunctionDecl()
259 (unsigned)SymbolRole::NameReference); in VisitFunctionDecl()
267 (unsigned)SymbolRole::Write); in VisitFunctionDecl()
[all …]
DIndexTypeSourceInfo.cpp33 Relations.emplace_back((unsigned)SymbolRole::RelationBaseOf, Parent); in TypeIndexer()
37 Relations.emplace_back((unsigned)SymbolRole::RelationIBTypeOf, Parent); in TypeIndexer()
69 (unsigned)SymbolRole::Implicit, in VisitTypedefTypeLoc()
DIndexingAction.cpp179 static_cast<unsigned>(index::SymbolRole::Definition), in indexPreprocessorMacros()
/external/clang/lib/Index/
DIndexBody.cpp63 Roles |= (unsigned)(unsigned)SymbolRole::Read; in getRolesForRef()
73 Roles |= (unsigned)SymbolRole::Write; in getRolesForRef()
77 Roles |= (unsigned)SymbolRole::Read; in getRolesForRef()
78 Roles |= (unsigned)SymbolRole::Write; in getRolesForRef()
80 Roles |= (unsigned)SymbolRole::AddressOf; in getRolesForRef()
85 Roles |= (unsigned)SymbolRole::Read; in getRolesForRef()
86 Roles |= (unsigned)SymbolRole::Write; in getRolesForRef()
95 Roles |= (unsigned)SymbolRole::Dynamic; in getRolesForRef()
99 Relations.emplace_back((unsigned)SymbolRole::RelationReceivedBy, in getRolesForRef()
107 Roles |= (unsigned)SymbolRole::Write; in getRolesForRef()
[all …]
DIndexSymbol.cpp246 llvm::function_ref<void(SymbolRole)> Fn) { in applyForEachSymbolRole()
248 if (Roles & (unsigned)SymbolRole::Role) \ in applyForEachSymbolRole()
249 Fn(SymbolRole::Role) in applyForEachSymbolRole()
271 applyForEachSymbolRole(Roles, [&](SymbolRole Role) { in printSymbolRoles()
277 case SymbolRole::Declaration: OS << "Decl"; break; in printSymbolRoles()
278 case SymbolRole::Definition: OS << "Def"; break; in printSymbolRoles()
279 case SymbolRole::Reference: OS << "Ref"; break; in printSymbolRoles()
280 case SymbolRole::Read: OS << "Read"; break; in printSymbolRoles()
281 case SymbolRole::Write: OS << "Writ"; break; in printSymbolRoles()
282 case SymbolRole::Call: OS << "Call"; break; in printSymbolRoles()
[all …]
DIndexDecl.cpp79 if (!IndexCtx.handleDecl(D, (unsigned)SymbolRole::Dynamic)) in handleObjCMethod()
102 Roles |= (unsigned)SymbolRole::Dynamic; in VisitFunctionDecl()
105 Relations.emplace_back((unsigned)SymbolRole::RelationOverrideOf, *I); in VisitFunctionDecl()
120 (unsigned)SymbolRole::Write); in VisitFunctionDecl()
163 (unsigned)SymbolRole::Implicit); in VisitObjCIvarDecl()
214 SymbolRelation{(unsigned)SymbolRole::RelationBaseOf, ContD})); in handleReferencedProtocols()
225 SymbolRelation{(unsigned)SymbolRole::RelationBaseOf, D})); in VisitObjCInterfaceDecl()
DIndexingContext.cpp93 SymbolRoleSet Roles = (unsigned)SymbolRole::Declaration; in importedModule()
95 Roles |= (unsigned)SymbolRole::Implicit; in importedModule()
286 Roles |= (unsigned)SymbolRole::Reference; in handleDeclOccurrence()
288 Roles |= (unsigned)SymbolRole::Definition; in handleDeclOccurrence()
290 Roles |= (unsigned)SymbolRole::Declaration; in handleDeclOccurrence()
324 addRelation(SymbolRelation{(unsigned)SymbolRole::RelationChildOf, Parent}); in handleDeclOccurrence()
DIndexTypeSourceInfo.cpp33 Relations.emplace_back((unsigned)SymbolRole::RelationBaseOf, Parent); in TypeIndexer()
/external/llvm-project/clang-tools-extra/clangd/index/
DSymbolCollector.cpp169 return (Roles & static_cast<unsigned>(index::SymbolRole::Definition)) && in isPreferredDeclaration()
180 if (Roles & static_cast<unsigned>(index::SymbolRole::Declaration)) in toRefKind()
182 if (Roles & static_cast<unsigned>(index::SymbolRole::Definition)) in toRefKind()
184 if (Roles & static_cast<unsigned>(index::SymbolRole::Reference)) in toRefKind()
192 if (R.Roles & static_cast<unsigned>(index::SymbolRole::RelationBaseOf)) in indexableRelation()
194 if (R.Roles & static_cast<unsigned>(index::SymbolRole::RelationOverrideOf)) in indexableRelation()
273 !(Roles & static_cast<unsigned>(index::SymbolRole::Definition))) in handleDeclOccurrence()
307 (Roles & static_cast<unsigned>(index::SymbolRole::Reference)) && in handleDeclOccurrence()
335 !(Roles & (static_cast<unsigned>(index::SymbolRole::Declaration) | in handleDeclOccurrence()
336 static_cast<unsigned>(index::SymbolRole::Definition))); in handleDeclOccurrence()
[all …]
DYAMLSerialization.cpp76 using clang::index::SymbolRole;
/external/llvm-project/clang/include/clang/Index/
DIndexSymbol.h99 enum class SymbolRole : uint32_t { enum
155 llvm::function_ref<void(SymbolRole)> Fn);
157 llvm::function_ref<bool(SymbolRole)> Fn);
/external/llvm-project/clang/unittests/Index/
DIndexTests.cpp293 HasRole(SymbolRole::NameReference), WrittenAt(Position(3, 7))), in TEST()
297 HasRole(SymbolRole::NameReference), in TEST()
318 HasRole(SymbolRole::Reference), in TEST()
333 Contains(AllOf(QName("var"), HasRole(SymbolRole::Reference), in TEST()
347 Contains(AllOf(QName("A"), HasRole(SymbolRole::Reference), in TEST()
348 Not(HasRole(SymbolRole::RelationBaseOf))))); in TEST()
/external/clang/include/clang/Index/
DIndexSymbol.h74 enum class SymbolRole : uint16_t { enum
113 llvm::function_ref<void(SymbolRole)> Fn);
/external/llvm-project/clang/tools/libclang/
DCXIndexDataConsumer.cpp162 if (Roles & (unsigned)SymbolRole::Reference) { in handleDeclOccurrence()
185 if (Roles & (unsigned)SymbolRole::Implicit) { in handleDeclOccurrence()
213 if (SymRel.Roles & (unsigned)SymbolRole::RelationChildOf) in handleDeclOccurrence()
227 if (Roles & (SymbolRoleSet)SymbolRole::Declaration) in handleModuleOccurrence()
/external/clang/tools/libclang/
DCXIndexDataConsumer.cpp161 if (Roles & (unsigned)SymbolRole::Reference) { in handleDeclOccurence()
184 if (Roles & (unsigned)SymbolRole::Implicit) { in handleDeclOccurence()
211 if (SymRel.Roles & (unsigned)SymbolRole::RelationChildOf) in handleDeclOccurence()
/external/llvm-project/clang-tools-extra/clangd/
DXRefs.cpp1064 if (Ref.Role & index::SymbolRoleSet(index::SymbolRole::Write)) in toHighlight()
1066 else if (Ref.Role & index::SymbolRoleSet(index::SymbolRole::Read)) in toHighlight()