Searched refs:Roles (Results 1 - 10 of 10) sorted by relevance

/freebsd-11-stable/contrib/llvm-project/clang/include/clang/Index/
H A DIndexDataConsumer.h42 virtual bool handleDeclOccurrence(const Decl *D, SymbolRoleSet Roles, argument
50 const MacroInfo *MI, SymbolRoleSet Roles,
61 const Module *Mod, SymbolRoleSet Roles,
49 handleMacroOccurrence(const IdentifierInfo *Name, const MacroInfo *MI, SymbolRoleSet Roles, SourceLocation Loc) argument
60 handleModuleOccurrence(const ImportDecl *ImportD, const Module *Mod, SymbolRoleSet Roles, SourceLocation Loc) argument
H A DDeclOccurrence.h23 SymbolRoleSet Roles; member in struct:clang::index::DeclOccurrence
30 : Roles(R), Offset(Offset), Dcl(D),
H A DIndexSymbol.h131 SymbolRoleSet Roles; member in struct:clang::index::SymbolRelation
134 SymbolRelation(SymbolRoleSet Roles, const Decl *Sym) argument
135 : Roles(Roles), RelatedSymbol(Sym) {}
151 void applyForEachSymbolRole(SymbolRoleSet Roles,
153 bool applyForEachSymbolRoleInterruptible(SymbolRoleSet Roles,
155 void printSymbolRoles(SymbolRoleSet Roles, raw_ostream &OS);
/freebsd-11-stable/contrib/llvm-project/clang/lib/Index/
H A DIndexBody.cpp59 SymbolRoleSet Roles{};
62 return Roles;
67 Roles |= (unsigned)(unsigned)SymbolRole::Read;
77 Roles |= (unsigned)SymbolRole::Write;
81 Roles |= (unsigned)SymbolRole::Read;
82 Roles |= (unsigned)SymbolRole::Write;
84 Roles |= (unsigned)SymbolRole::AddressOf;
89 Roles |= (unsigned)SymbolRole::Read;
90 Roles |= (unsigned)SymbolRole::Write;
95 addCallRole(Roles, Relation
127 addCallRole(SymbolRoleSet &Roles, SmallVectorImpl<SymbolRelation> &Relations) argument
138 SymbolRoleSet Roles = getRolesForRef(E, Relations); local
148 SymbolRoleSet Roles = getRolesForRef(E, Relations); local
180 SymbolRoleSet Roles = getRolesForRef(E, Relations); local
211 SymbolRoleSet Roles = getRolesForRef(E, Relations); local
294 SymbolRoleSet Roles = getRolesForRef(E, Relations); local
304 SymbolRoleSet Roles = getRolesForRef(E, Relations); local
[all...]
H A DIndexingContext.cpp53 SymbolRoleSet Roles,
55 return handleDecl(D, D->getLocation(), Roles, Relations);
59 SymbolRoleSet Roles,
70 Roles, Relations,
77 SymbolRoleSet Roles,
90 return handleDeclOccurrence(D, Loc, /*IsRef=*/true, Parent, Roles, Relations,
143 SymbolRoleSet Roles = (unsigned)SymbolRole::Declaration; local
145 Roles |= (unsigned)SymbolRole::Implicit;
147 return DataConsumer.handleModuleOccurrence(ImportD, Mod, Roles, Loc);
305 bool IsRef, SymbolRoleSet Roles, ArrayRe
52 handleDecl(const Decl *D, SymbolRoleSet Roles, ArrayRef<SymbolRelation> Relations) argument
58 handleDecl(const Decl *D, SourceLocation Loc, SymbolRoleSet Roles, ArrayRef<SymbolRelation> Relations, const DeclContext *DC) argument
74 handleReference(const NamedDecl *D, SourceLocation Loc, const NamedDecl *Parent, const DeclContext *DC, SymbolRoleSet Roles, ArrayRef<SymbolRelation> Relations, const Expr *RefE, const Decl *RefD) argument
304 shouldReportOccurrenceForSystemDeclOnlyMode( bool IsRef, SymbolRoleSet Roles, ArrayRef<SymbolRelation> Relations) argument
351 handleDeclOccurrence(const Decl *D, SourceLocation Loc, bool IsRef, const Decl *Parent, SymbolRoleSet Roles, ArrayRef<SymbolRelation> Relations, const Expr *OrigE, const Decl *OrigD, const DeclContext *ContainerDC) argument
451 SymbolRoleSet Roles = (unsigned)SymbolRole::Definition; local
458 SymbolRoleSet Roles = (unsigned)SymbolRole::Undefinition; local
465 SymbolRoleSet Roles = (unsigned)SymbolRole::Reference; local
[all...]
H A DFileIndexRecord.cpp19 void FileIndexRecord::addDeclOccurence(SymbolRoleSet Roles, unsigned Offset, argument
33 Decls.emplace_back(Roles, Offset, D, Relations);
37 DeclOccurrence NewInfo(Roles, Offset, D, Relations);
H A DFileIndexRecord.h45 /// \param Roles the roles the occurrence fulfills in this position.
49 void addDeclOccurence(SymbolRoleSet Roles, unsigned Offset, const Decl *D,
H A DIndexingContext.h70 bool handleDecl(const Decl *D, SymbolRoleSet Roles = SymbolRoleSet(),
74 SymbolRoleSet Roles = SymbolRoleSet(),
81 SymbolRoleSet Roles = SymbolRoleSet(),
129 SymbolRoleSet Roles,
H A DIndexSymbol.cpp398 bool index::applyForEachSymbolRoleInterruptible(SymbolRoleSet Roles, argument
401 if (Roles & (unsigned)SymbolRole::Role) \
432 void index::applyForEachSymbolRole(SymbolRoleSet Roles, argument
434 applyForEachSymbolRoleInterruptible(Roles, [&](SymbolRole r) -> bool {
440 void index::printSymbolRoles(SymbolRoleSet Roles, raw_ostream &OS) { argument
442 applyForEachSymbolRole(Roles, [&](SymbolRole Role) {
H A DIndexDecl.cpp158 SymbolRoleSet Roles = (SymbolRoleSet)SymbolRole::Dynamic; local
163 Roles |= (SymbolRoleSet)SymbolRole::Implicit;
170 TRY_DECL(D, IndexCtx.handleDecl(D, MethodLoc, Roles, Relations));
233 SymbolRoleSet Roles{};
237 Roles |= (unsigned)SymbolRole::Dynamic;
248 TRY_DECL(D, IndexCtx.handleDecl(D, Roles, Relations));
522 SymbolRoleSet Roles = 0; local
529 Roles |= (SymbolRoleSet)SymbolRole::Implicit;
531 TRY_DECL(D, IndexCtx.handleDecl(D, Loc, Roles, Relations));

Completed in 58 milliseconds