Home
last modified time | relevance | path

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

/llvm-project-15.0.7/clang/lib/Index/
H A DIndexingContext.cpp326 case SymbolRole::Declaration: in shouldReportOccurrenceForSystemDeclOnlyMode()
327 case SymbolRole::Definition: in shouldReportOccurrenceForSystemDeclOnlyMode()
328 case SymbolRole::Reference: in shouldReportOccurrenceForSystemDeclOnlyMode()
329 case SymbolRole::Read: in shouldReportOccurrenceForSystemDeclOnlyMode()
330 case SymbolRole::Write: in shouldReportOccurrenceForSystemDeclOnlyMode()
331 case SymbolRole::Call: in shouldReportOccurrenceForSystemDeclOnlyMode()
332 case SymbolRole::Dynamic: in shouldReportOccurrenceForSystemDeclOnlyMode()
333 case SymbolRole::AddressOf: in shouldReportOccurrenceForSystemDeclOnlyMode()
334 case SymbolRole::Implicit: in shouldReportOccurrenceForSystemDeclOnlyMode()
335 case SymbolRole::Undefinition: in shouldReportOccurrenceForSystemDeclOnlyMode()
[all …]
H A DIndexSymbol.cpp418 if (Roles & (unsigned)SymbolRole::Role) \ in applyForEachSymbolRoleInterruptible()
419 if (!Fn(SymbolRole::Role)) \ in applyForEachSymbolRoleInterruptible()
459 applyForEachSymbolRole(Roles, [&](SymbolRole Role) { in printSymbolRoles()
466 case SymbolRole::Definition: OS << "Def"; break; in printSymbolRoles()
467 case SymbolRole::Reference: OS << "Ref"; break; in printSymbolRoles()
468 case SymbolRole::Read: OS << "Read"; break; in printSymbolRoles()
469 case SymbolRole::Write: OS << "Writ"; break; in printSymbolRoles()
470 case SymbolRole::Call: OS << "Call"; break; in printSymbolRoles()
471 case SymbolRole::Dynamic: OS << "Dyn"; break; in printSymbolRoles()
472 case SymbolRole::AddressOf: OS << "Addr"; break; in printSymbolRoles()
[all …]
H A DIndexBody.cpp81 Roles |= (unsigned)SymbolRole::Write; in getRolesForRef()
85 Roles |= (unsigned)SymbolRole::Read; in getRolesForRef()
86 Roles |= (unsigned)SymbolRole::Write; in getRolesForRef()
88 Roles |= (unsigned)SymbolRole::AddressOf; in getRolesForRef()
93 Roles |= (unsigned)SymbolRole::Read; in getRolesForRef()
94 Roles |= (unsigned)SymbolRole::Write; in getRolesForRef()
115 Roles |= (unsigned)SymbolRole::Write; in getRolesForRef()
119 Roles |= (unsigned)SymbolRole::Read; in getRolesForRef()
133 Roles |= (unsigned)SymbolRole::Call; in addCallRole()
265 Roles |= (unsigned)SymbolRole::Dynamic; in VisitObjCMessageExpr()
[all …]
H A DIndexDecl.cpp169 SymbolRoleSet Roles = (SymbolRoleSet)SymbolRole::Dynamic; in handleObjCMethod()
174 Roles |= (SymbolRoleSet)SymbolRole::Implicit; in handleObjCMethod()
248 Roles |= (unsigned)SymbolRole::Dynamic; in VisitFunctionDecl()
265 (unsigned)SymbolRole::NameReference); in VisitFunctionDecl()
273 (unsigned)SymbolRole::Write); in VisitFunctionDecl()
400 roles |= (SymbolRoleSet)SymbolRole::Implicit; in handleReferencedProtocols()
424 superRoles |= (SymbolRoleSet)SymbolRole::Implicit; in VisitObjCInterfaceDecl()
549 Roles |= (SymbolRoleSet)SymbolRole::Implicit; in VisitObjCPropertyImplDecl()
558 SymbolRoleSet(SymbolRole::Dynamic) | SymbolRoleSet(SymbolRole::Implicit); in VisitObjCPropertyImplDecl()
579 IvarRoles = (SymbolRoleSet)SymbolRole::Implicit; in VisitObjCPropertyImplDecl()
[all …]
H A DIndexTypeSourceInfo.cpp36 Relations.emplace_back((unsigned)SymbolRole::RelationBaseOf, Parent); in TypeIndexer()
40 Relations.emplace_back((unsigned)SymbolRole::RelationIBTypeOf, Parent); in TypeIndexer()
72 (unsigned)SymbolRole::Implicit, in VisitTypedefTypeLoc()
H A DIndexingAction.cpp227 ? SymbolRole::Definition in indexPreprocessorMacro()
228 : SymbolRole::Undefinition; in indexPreprocessorMacro()
/llvm-project-15.0.7/clang/unittests/Index/
H A DIndexTests.cpp179 HasRole(SymbolRole::Definition)))); in TEST()
184 HasRole(SymbolRole::Definition))), in TEST()
187 HasRole(SymbolRole::Undefinition))))); in TEST()
192 HasRole(SymbolRole::Definition))), in TEST()
195 HasRole(SymbolRole::Undefinition))), in TEST()
198 HasRole(SymbolRole::Definition))))); in TEST()
326 HasRole(SymbolRole::NameReference), in TEST()
347 HasRole(SymbolRole::Reference), in TEST()
362 Contains(AllOf(QName("var"), HasRole(SymbolRole::Reference), in TEST()
376 Contains(AllOf(QName("A"), HasRole(SymbolRole::Reference), in TEST()
[all …]
/llvm-project-15.0.7/clang/include/clang/Index/
H A DIndexSymbol.h102 enum class SymbolRole : uint32_t { enum
158 llvm::function_ref<void(SymbolRole)> Fn);
160 llvm::function_ref<bool(SymbolRole)> Fn);
/llvm-project-15.0.7/clang-tools-extra/clangd/index/
H A DSymbolCollector.cpp134 if (Roles & static_cast<unsigned>(index::SymbolRole::Declaration)) in toRefKind()
136 if (Roles & static_cast<unsigned>(index::SymbolRole::Definition)) in toRefKind()
138 if (Roles & static_cast<unsigned>(index::SymbolRole::Reference)) in toRefKind()
146 if (R.Roles & static_cast<unsigned>(index::SymbolRole::RelationBaseOf)) in indexableRelation()
538 !(Roles & static_cast<unsigned>(index::SymbolRole::Definition))) in handleDeclOccurrence()
576 (Roles & static_cast<unsigned>(index::SymbolRole::Reference)) && in handleDeclOccurrence()
616 if (!(Roles & (static_cast<unsigned>(index::SymbolRole::Declaration) | in handleDeclOccurrence()
617 static_cast<unsigned>(index::SymbolRole::Definition)))) in handleDeclOccurrence()
637 if (Roles & static_cast<unsigned>(index::SymbolRole::Definition)) in handleDeclOccurrence()
734 (Roles & static_cast<unsigned>(index::SymbolRole::Reference)) && in handleMacroOccurrence()
[all …]
/llvm-project-15.0.7/clang/tools/libclang/
H A DCXIndexDataConsumer.cpp167 if (Roles & (unsigned)SymbolRole::Reference) { in handleDeclOccurrence()
190 if (Roles & (unsigned)SymbolRole::Implicit) { in handleDeclOccurrence()
218 if (SymRel.Roles & (unsigned)SymbolRole::RelationChildOf) in handleDeclOccurrence()
232 if (Roles & (SymbolRoleSet)SymbolRole::Declaration) in handleModuleOccurrence()
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DXRefs.cpp1208 if (Ref.Role & index::SymbolRoleSet(index::SymbolRole::Write)) in toHighlight()
1210 else if (Ref.Role & index::SymbolRoleSet(index::SymbolRole::Read)) in toHighlight()
1423 if (Ref.Role & static_cast<unsigned>(index::SymbolRole::Declaration)) in findReferences()
1426 if (Ref.Role & static_cast<unsigned>(index::SymbolRole::Definition)) in findReferences()