Home
last modified time | relevance | path

Searched refs:Roles (Results 1 – 25 of 154) sorted by relevance

1234567

/external/clang/lib/Index/
DIndexBody.cpp55 SymbolRoleSet Roles{}; in getRolesForRef() local
58 return Roles; in getRolesForRef()
63 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()
91 addCallRole(Roles, Relations); in getRolesForRef()
[all …]
DIndexingContext.cpp25 SymbolRoleSet Roles, in handleDecl() argument
28 cast<Decl>(D->getDeclContext()), Roles, Relations, in handleDecl()
33 SymbolRoleSet Roles, in handleDecl() argument
39 Roles, Relations, in handleDecl()
46 SymbolRoleSet Roles, in handleReference() argument
56 return handleDeclOccurrence(D, Loc, /*IsRef=*/true, Parent, Roles, Relations, in handleReference()
93 SymbolRoleSet Roles = (unsigned)SymbolRole::Declaration; in importedModule() local
95 Roles |= (unsigned)SymbolRole::Implicit; in importedModule()
97 return DataConsumer.handleModuleOccurence(ImportD, Roles, FID, Offset); in importedModule()
232 SymbolRoleSet Roles, in handleDeclOccurrence() argument
[all …]
DIndexingContext.h64 bool handleDecl(const Decl *D, SymbolRoleSet Roles = SymbolRoleSet(),
68 SymbolRoleSet Roles = SymbolRoleSet(),
75 SymbolRoleSet Roles,
111 SymbolRoleSet Roles,
DIndexingAction.cpp22 bool IndexDataConsumer::handleDeclOccurence(const Decl *D, SymbolRoleSet Roles, in handleDeclOccurence() argument
30 const MacroInfo *MI, SymbolRoleSet Roles, in handleMacroOccurence() argument
36 SymbolRoleSet Roles, in handleModuleOccurence() argument
DIndexSymbol.cpp245 void index::applyForEachSymbolRole(SymbolRoleSet Roles, in applyForEachSymbolRole() argument
248 if (Roles & (unsigned)SymbolRole::Role) \ in applyForEachSymbolRole()
269 void index::printSymbolRoles(SymbolRoleSet Roles, raw_ostream &OS) { in printSymbolRoles() argument
271 applyForEachSymbolRole(Roles, [&](SymbolRole Role) { in printSymbolRoles()
/external/llvm-project/clang/lib/Index/
DIndexBody.cpp59 SymbolRoleSet Roles{}; in getRolesForRef() local
62 return Roles; in getRolesForRef()
67 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()
95 addCallRole(Roles, Relations); in getRolesForRef()
[all …]
DIndexingContext.cpp53 SymbolRoleSet Roles, in handleDecl() argument
55 return handleDecl(D, D->getLocation(), Roles, Relations); in handleDecl()
59 SymbolRoleSet Roles, in handleDecl() argument
70 Roles, Relations, in handleDecl()
77 SymbolRoleSet Roles, in handleReference() argument
90 return handleDeclOccurrence(D, Loc, /*IsRef=*/true, Parent, Roles, Relations, in handleReference()
143 SymbolRoleSet Roles = (unsigned)SymbolRole::Declaration; in importedModule() local
145 Roles |= (unsigned)SymbolRole::Implicit; in importedModule()
147 return DataConsumer.handleModuleOccurrence(ImportD, Mod, Roles, Loc); in importedModule()
314 bool IsRef, SymbolRoleSet Roles, ArrayRef<SymbolRelation> Relations) { in shouldReportOccurrenceForSystemDeclOnlyMode() argument
[all …]
DFileIndexRecord.cpp20 void FileIndexRecord::addDeclOccurence(SymbolRoleSet Roles, unsigned Offset, in addDeclOccurence() argument
34 Decls.emplace_back(Roles, Offset, D, Relations); in addDeclOccurence()
38 DeclOccurrence NewInfo(Roles, Offset, D, Relations); in addDeclOccurence()
DIndexingContext.h70 bool handleDecl(const Decl *D, SymbolRoleSet Roles = SymbolRoleSet(),
74 SymbolRoleSet Roles = SymbolRoleSet(),
81 SymbolRoleSet Roles = SymbolRoleSet(),
129 SymbolRoleSet Roles,
DIndexDecl.cpp163 SymbolRoleSet Roles = (SymbolRoleSet)SymbolRole::Dynamic; in handleObjCMethod() local
168 Roles |= (SymbolRoleSet)SymbolRole::Implicit; in handleObjCMethod()
175 TRY_DECL(D, IndexCtx.handleDecl(D, MethodLoc, Roles, Relations)); in handleObjCMethod()
238 SymbolRoleSet Roles{}; in VisitFunctionDecl() local
242 Roles |= (unsigned)SymbolRole::Dynamic; in VisitFunctionDecl()
253 TRY_DECL(D, IndexCtx.handleDecl(D, Roles, Relations)); in VisitFunctionDecl()
527 SymbolRoleSet Roles = 0; in VisitObjCPropertyImplDecl() local
534 Roles |= (SymbolRoleSet)SymbolRole::Implicit; in VisitObjCPropertyImplDecl()
536 TRY_DECL(D, IndexCtx.handleDecl(D, Loc, Roles, Relations)); in VisitObjCPropertyImplDecl()
DIndexSymbol.cpp407 bool index::applyForEachSymbolRoleInterruptible(SymbolRoleSet Roles, in applyForEachSymbolRoleInterruptible() argument
410 if (Roles & (unsigned)SymbolRole::Role) \ in applyForEachSymbolRoleInterruptible()
441 void index::applyForEachSymbolRole(SymbolRoleSet Roles, in applyForEachSymbolRole() argument
443 applyForEachSymbolRoleInterruptible(Roles, [&](SymbolRole r) -> bool { in applyForEachSymbolRole()
449 void index::printSymbolRoles(SymbolRoleSet Roles, raw_ostream &OS) { in printSymbolRoles() argument
451 applyForEachSymbolRole(Roles, [&](SymbolRole Role) { in printSymbolRoles()
/external/llvm-project/clang-tools-extra/clangd/index/dex/
DTrigram.cpp28 std::vector<CharRole> Roles(Identifier.size()); in identifierTrigrams() local
30 llvm::makeMutableArrayRef(Roles.data(), Identifier.size())); in identifierTrigrams()
46 NextTail = Roles[I] == Tail ? I : 0; in identifierTrigrams()
47 if (Roles[I] == Head) { in identifierTrigrams()
56 if (Roles[I] != Head && Roles[I] != Tail) in identifierTrigrams()
75 if (Roles[I] == Head) { in identifierTrigrams()
109 std::vector<CharRole> Roles(Query.size()); in generateQueryTrigrams() local
110 calculateRoles(Query, llvm::makeMutableArrayRef(Roles.data(), Query.size())); in generateQueryTrigrams()
115 if (Roles[I] != Head && Roles[I] != Tail) in generateQueryTrigrams()
/external/llvm-project/clang/include/clang/Index/
DIndexSymbol.h134 SymbolRoleSet Roles; member
137 SymbolRelation(SymbolRoleSet Roles, const Decl *Sym) in SymbolRelation()
138 : Roles(Roles), RelatedSymbol(Sym) {} in SymbolRelation()
154 void applyForEachSymbolRole(SymbolRoleSet Roles,
156 bool applyForEachSymbolRoleInterruptible(SymbolRoleSet Roles,
158 void printSymbolRoles(SymbolRoleSet Roles, raw_ostream &OS);
DIndexDataConsumer.h42 virtual bool handleDeclOccurrence(const Decl *D, SymbolRoleSet Roles, in handleDeclOccurrence() argument
50 const MacroInfo *MI, SymbolRoleSet Roles, in handleMacroOccurrence() argument
61 const Module *Mod, SymbolRoleSet Roles, in handleModuleOccurrence() argument
DDeclOccurrence.h23 SymbolRoleSet Roles; member
30 : Roles(R), Offset(Offset), Dcl(D), in DeclOccurrence()
/external/clang/include/clang/Index/
DIndexSymbol.h97 SymbolRoleSet Roles; member
100 SymbolRelation(SymbolRoleSet Roles, const Decl *Sym) in SymbolRelation()
101 : Roles(Roles), RelatedSymbol(Sym) {} in SymbolRelation()
112 void applyForEachSymbolRole(SymbolRoleSet Roles,
114 void printSymbolRoles(SymbolRoleSet Roles, raw_ostream &OS);
DIndexDataConsumer.h40 virtual bool handleDeclOccurence(const Decl *D, SymbolRoleSet Roles,
47 const MacroInfo *MI, SymbolRoleSet Roles,
52 SymbolRoleSet Roles,
/external/llvm-project/clang-tools-extra/clangd/index/
DSymbolCollector.cpp166 bool isPreferredDeclaration(const NamedDecl &ND, index::SymbolRoleSet Roles) { in isPreferredDeclaration() argument
169 return (Roles & static_cast<unsigned>(index::SymbolRole::Definition)) && in isPreferredDeclaration()
178 RefKind toRefKind(index::SymbolRoleSet Roles, bool Spelled = false) { in toRefKind() argument
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()
257 const Decl *D, index::SymbolRoleSet Roles, in handleDeclOccurrence() argument
273 !(Roles & static_cast<unsigned>(index::SymbolRole::Definition))) in handleDeclOccurrence()
[all …]
DSymbolCollector.h105 handleDeclOccurrence(const Decl *D, index::SymbolRoleSet Roles,
111 index::SymbolRoleSet Roles,
161 index::SymbolRoleSet Roles; member
/external/clang/tools/c-index-test/
Dcore_main.cpp74 bool handleDeclOccurence(const Decl *D, SymbolRoleSet Roles, in handleDeclOccurence() argument
95 printSymbolRoles(Roles, OS); in handleDeclOccurence()
102 printSymbolRoles(SymRel.Roles, OS); in handleDeclOccurence()
111 bool handleModuleOccurence(const ImportDecl *ImportD, SymbolRoleSet Roles, in handleModuleOccurence() argument
125 printSymbolRoles(Roles, OS); in handleModuleOccurence()
/external/llvm-project/clang/tools/c-index-test/
Dcore_main.cpp97 bool handleDeclOccurrence(const Decl *D, SymbolRoleSet Roles, in handleDeclOccurrence() argument
119 printSymbolRoles(Roles, OS); in handleDeclOccurrence()
126 printSymbolRoles(SymRel.Roles, OS); in handleDeclOccurrence()
136 const clang::Module *Mod, SymbolRoleSet Roles, in handleModuleOccurrence() argument
153 printSymbolRoles(Roles, OS); in handleModuleOccurrence()
160 SymbolRoleSet Roles, SourceLocation Loc) override { in handleMacroOccurrence() argument
185 printSymbolRoles(Roles, OS); in handleMacroOccurrence()
/external/llvm-project/clang/unittests/Index/
DIndexTests.cpp61 SymbolRoleSet Roles; member
77 bool handleDeclOccurrence(const Decl *D, SymbolRoleSet Roles, in handleDeclOccurrence() argument
89 S.Roles = Roles; in handleDeclOccurrence()
95 SymbolRoleSet Roles, SourceLocation Loc) override { in handleMacroOccurrence() argument
102 S.Roles = Roles; in handleMacroOccurrence()
154 MATCHER_P(HasRole, Role, "") { return arg.Roles & static_cast<unsigned>(Role); }
/external/llvm-project/clang-tools-extra/clangd/
DFuzzyMatch.cpp155 llvm::MutableArrayRef<CharRole> Roles) { in calculateRoles() argument
156 assert(Text.size() == Roles.size()); in calculateRoles()
171 Roles[I] = packedLookup<CharRole>(CharRoles, Types); in calculateRoles()
175 Roles[Text.size() - 1] = packedLookup<CharRole>(CharRoles, Types); in calculateRoles()
/external/skia/site/docs/
Droles.md3 title: "Project Roles"
4 linkTitle: "Project Roles"
/external/llvm-project/clang-tools-extra/clangd/unittests/
DFuzzyMatchTests.cpp290 std::vector<CharRole> Roles(Text.size()); in segment() local
291 calculateRoles(Text, Roles); in segment()
294 Printed.push_back("?-+ "[static_cast<unsigned>(Roles[I])]); in segment()

1234567