Lines Matching defs:DeclRefExpr

215   else if (const auto *DRE = dyn_cast<DeclRefExpr>(E))
430 DeclRefExpr::DeclRefExpr(const ASTContext &Ctx, ValueDecl *D,
449 DeclRefExpr::DeclRefExpr(const ASTContext &Ctx,
478 "built a DeclRefExpr with dependent template args");
488 DeclRefExpr *DeclRefExpr::Create(const ASTContext &Context,
502 DeclRefExpr *DeclRefExpr::Create(const ASTContext &Context,
523 void *Mem = Context.Allocate(Size, alignof(DeclRefExpr));
524 return new (Mem) DeclRefExpr(Context, QualifierLoc, TemplateKWLoc, D,
529 DeclRefExpr *DeclRefExpr::CreateEmpty(const ASTContext &Context,
540 void *Mem = Context.Allocate(Size, alignof(DeclRefExpr));
541 return new (Mem) DeclRefExpr(EmptyShell());
544 void DeclRefExpr::setDecl(ValueDecl *NewD) {
551 SourceLocation DeclRefExpr::getBeginLoc() const {
556 SourceLocation DeclRefExpr::getEndLoc() const {
1568 if (auto *DRE = dyn_cast<DeclRefExpr>(CEE))
2546 if (isa<DeclRefExpr>(E))
2909 if (auto *DRE = dyn_cast<DeclRefExpr>(SubE))
2998 const Decl *D = cast<DeclRefExpr>(E)->getDecl();
4087 const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E);
4124 if (DeclRefExpr *DeclRef = dyn_cast<DeclRefExpr>(E)) {
4151 if (auto *DRE = dyn_cast<DeclRefExpr>(E))
4173 if (auto *DRE = dyn_cast<DeclRefExpr>(E))
4184 if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E))
4206 // DeclRefExpr without an ImplicitCastExpr can happen for integral
4208 const auto *DRE1 = cast<DeclRefExpr>(E1);
4209 const auto *DRE2 = cast<DeclRefExpr>(E2);
4232 const auto *DRE1 = dyn_cast<DeclRefExpr>(E1);
4233 const auto *DRE2 = dyn_cast<DeclRefExpr>(E2);
4283 // a MemberExpr or a DeclRefExpr.
4285 if (const auto *DRE = dyn_cast<DeclRefExpr>(E))
5099 if (auto *DRE = dyn_cast<DeclRefExpr>(Base))