Lines Matching refs:Decl
171 const Decl *Context;
182 bool VisitNamedDecl(const NamedDecl *Decl) { in VisitNamedDecl() argument
184 if (llvm::isa<UsingDecl>(Decl)) in VisitNamedDecl()
188 if (llvm::isa<CXXDestructorDecl>(Decl)) in VisitNamedDecl()
191 if (Decl->isImplicit()) in VisitNamedDecl()
194 if (isInUSRSet(Decl)) { in VisitNamedDecl()
197 if (const auto* TAT = dyn_cast<TypeAliasTemplateDecl>(Decl)) in VisitNamedDecl()
198 Decl = TAT->getTemplatedDecl(); in VisitNamedDecl()
200 auto StartLoc = Decl->getLocation(); in VisitNamedDecl()
216 const NamedDecl *Decl = Expr->getFoundDecl(); in VisitMemberExpr() local
219 if (isInUSRSet(Decl)) { in VisitMemberExpr()
232 const FieldDecl *Decl = D.getField(); in VisitDesignatedInitExpr() local
233 if (isInUSRSet(Decl)) { in VisitDesignatedInitExpr()
269 const NamedDecl *Decl = Expr->getFoundDecl(); in VisitDeclRefExpr() local
272 if (auto *UsingShadow = llvm::dyn_cast<UsingShadowDecl>(Decl)) { in VisitDeclRefExpr()
273 Decl = UsingShadow->getTargetDecl(); in VisitDeclRefExpr()
283 if (const auto *MD = llvm::dyn_cast<CXXMethodDecl>(Decl)) { in VisitDeclRefExpr()
302 if (const auto *T = llvm::dyn_cast<EnumConstantDecl>(Decl)) { in VisitDeclRefExpr()
312 Decl = ED; in VisitDeclRefExpr()
328 if (isInUSRSet(Decl) && in VisitDeclRefExpr()
332 Decl, in VisitDeclRefExpr()
482 const Decl *getClosestAncestorDecl(const ASTNodeType &Node) { in getClosestAncestorDecl()
487 if (ASTNodeKind::getFromNodeKind<Decl>().isBaseOf(Parents[0].getNodeKind())) in getClosestAncestorDecl()
488 return Parents[0].template get<Decl>(); in getClosestAncestorDecl()
503 bool isInUSRSet(const Decl *Decl) const { in isInUSRSet()
504 auto USR = getUSRForDecl(Decl); in isInUSRSet()
521 StringRef PrevName, Decl *Decl) { in getOccurrencesOfUSRs() argument
522 USRLocFindingASTVisitor Visitor(USRs, PrevName, Decl->getASTContext()); in getOccurrencesOfUSRs()
523 Visitor.TraverseDecl(Decl); in getOccurrencesOfUSRs()
529 llvm::StringRef NewName, Decl *TranslationUnitDecl) { in createRenameAtomicChanges()