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

/openbsd-current/gnu/llvm/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.h24 SymbolRoleSet Roles; member in struct:clang::index::DeclOccurrence
32 : Roles(R), Offset(Offset), DeclOrMacro(D),
36 : Roles(R), Offset(Offset), DeclOrMacro(MI), MacroName(Name) {}
H A DIndexSymbol.h137 SymbolRoleSet Roles; member in struct:clang::index::SymbolRelation
140 SymbolRelation(SymbolRoleSet Roles, const Decl *Sym) argument
141 : Roles(Roles), RelatedSymbol(Sym) {}
157 void applyForEachSymbolRole(SymbolRoleSet Roles,
159 bool applyForEachSymbolRoleInterruptible(SymbolRoleSet Roles,
161 void printSymbolRoles(SymbolRoleSet Roles, raw_ostream &OS);
/openbsd-current/gnu/llvm/clang/lib/Index/
H A DIndexBody.cpp63 SymbolRoleSet Roles{};
66 return Roles;
71 Roles |= (unsigned)(unsigned)SymbolRole::Read;
81 Roles |= (unsigned)SymbolRole::Write;
85 Roles |= (unsigned)SymbolRole::Read;
86 Roles |= (unsigned)SymbolRole::Write;
88 Roles |= (unsigned)SymbolRole::AddressOf;
93 Roles |= (unsigned)SymbolRole::Read;
94 Roles |= (unsigned)SymbolRole::Write;
99 addCallRole(Roles, Relation
131 addCallRole(SymbolRoleSet &Roles, SmallVectorImpl<SymbolRelation> &Relations) argument
142 SymbolRoleSet Roles = getRolesForRef(E, Relations); local
152 SymbolRoleSet Roles = getRolesForRef(E, Relations); local
184 SymbolRoleSet Roles = getRolesForRef(E, Relations); local
215 SymbolRoleSet Roles = getRolesForRef(E, Relations); local
295 SymbolRoleSet Roles = getRolesForRef(E, Relations); local
305 SymbolRoleSet Roles = getRolesForRef(E, Relations); local
473 SymbolRoleSet Roles = getRolesForRef(E, Relations); local
[all...]
H A DFileIndexRecord.h44 /// \param Roles the roles the occurrence fulfills in this position.
48 void addDeclOccurence(SymbolRoleSet Roles, unsigned Offset, const Decl *D,
53 /// \param Roles the roles the occurrence fulfills in this position.
57 void addMacroOccurence(SymbolRoleSet Roles, unsigned Offset,
H A DFileIndexRecord.cpp31 void FileIndexRecord::addDeclOccurence(SymbolRoleSet Roles, unsigned Offset, argument
37 Decls.emplace_back(Roles, Offset, D, Relations);
40 void FileIndexRecord::addMacroOccurence(SymbolRoleSet Roles, unsigned Offset, argument
44 Decls.emplace_back(Roles, Offset, Name, MI);
H A DIndexingContext.cpp53 SymbolRoleSet Roles,
55 return handleDecl(D, D->getLocation(), Roles, Relations);
59 SymbolRoleSet Roles,
70 Roles, Relations,
77 SymbolRoleSet Roles,
89 return handleDeclOccurrence(D, Loc, /*IsRef=*/true, Parent, Roles, Relations,
142 SymbolRoleSet Roles = (unsigned)SymbolRole::Declaration; local
144 Roles |= (unsigned)SymbolRole::Implicit;
146 return DataConsumer.handleModuleOccurrence(ImportD, Mod, Roles, Loc);
310 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
309 shouldReportOccurrenceForSystemDeclOnlyMode( bool IsRef, SymbolRoleSet Roles, ArrayRef<SymbolRelation> Relations) argument
356 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
[all...]
H A DIndexingContext.h70 bool handleDecl(const Decl *D, SymbolRoleSet Roles = SymbolRoleSet(),
74 SymbolRoleSet Roles = SymbolRoleSet(),
80 SymbolRoleSet Roles = SymbolRoleSet(),
129 SymbolRoleSet Roles,
H A DIndexSymbol.cpp415 bool index::applyForEachSymbolRoleInterruptible(SymbolRoleSet Roles, argument
418 if (Roles & (unsigned)SymbolRole::Role) \
449 void index::applyForEachSymbolRole(SymbolRoleSet Roles, argument
451 applyForEachSymbolRoleInterruptible(Roles, [&](SymbolRole r) -> bool {
457 void index::printSymbolRoles(SymbolRoleSet Roles, raw_ostream &OS) { argument
459 applyForEachSymbolRole(Roles, [&](SymbolRole Role) {
H A DIndexDecl.cpp169 SymbolRoleSet Roles = (SymbolRoleSet)SymbolRole::Dynamic; local
174 Roles |= (SymbolRoleSet)SymbolRole::Implicit;
181 TRY_DECL(D, IndexCtx.handleDecl(D, MethodLoc, Roles, Relations));
244 SymbolRoleSet Roles{};
248 Roles |= (unsigned)SymbolRole::Dynamic;
259 TRY_DECL(D, IndexCtx.handleDecl(D, Roles, Relations));
542 SymbolRoleSet Roles = 0; local
549 Roles |= (SymbolRoleSet)SymbolRole::Implicit;
551 TRY_DECL(D, IndexCtx.handleDecl(D, Loc, Roles, Relations));
/openbsd-current/gnu/llvm/clang/tools/c-index-test/
H A Dcore_main.cpp104 bool handleDeclOccurrence(const Decl *D, SymbolRoleSet Roles,
126 printSymbolRoles(Roles, OS);
133 printSymbolRoles(SymRel.Roles, OS);
143 const clang::Module *Mod, SymbolRoleSet Roles,
160 printSymbolRoles(Roles, OS);
167 SymbolRoleSet Roles, SourceLocation Loc) override {
192 printSymbolRoles(Roles, OS);
/openbsd-current/gnu/llvm/clang/include/clang/Basic/
H A DSarif.h112 llvm::SmallVector<std::string, 4> Roles; member in class:clang::detail::SarifArtifact
134 Roles.assign(ArtifactRoles.begin(), ArtifactRoles.end());
/openbsd-current/gnu/llvm/clang/tools/libclang/
H A DCXIndexDataConsumer.h435 bool handleDeclOccurrence(const Decl *D, index::SymbolRoleSet Roles,
440 index::SymbolRoleSet Roles,
H A DCXIndexDataConsumer.cpp163 const Decl *D, SymbolRoleSet Roles, ArrayRef<SymbolRelation> Relations,
167 if (Roles & (unsigned)SymbolRole::Reference) {
190 if (Roles & (unsigned)SymbolRole::Implicit) {
193 CXSymbolRole CXRole = getSymbolRole(Roles);
218 if (SymRel.Roles & (unsigned)SymbolRole::RelationChildOf)
230 SymbolRoleSet Roles,
232 if (Roles & (SymbolRoleSet)SymbolRole::Declaration)
162 handleDeclOccurrence( const Decl *D, SymbolRoleSet Roles, ArrayRef<SymbolRelation> Relations, SourceLocation Loc, ASTNodeInfo ASTNode) argument
228 handleModuleOccurrence(const ImportDecl *ImportD, const Module *Mod, SymbolRoleSet Roles, SourceLocation Loc) argument
/openbsd-current/gnu/llvm/clang/lib/Basic/
H A DSarif.cpp306 if (!A.Roles.empty())
307 Artifact["roles"] = json::Array(A.Roles);

Completed in 216 milliseconds