Lines Matching refs:DRE
2344 DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Arg.getAsExpr());
2345 if (!DRE || !DRE->getDecl())
2348 dyn_cast<NonTypeTemplateParmDecl>(DRE->getDecl());
4427 DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Arg);
4428 ValueDecl *Entity = DRE ? DRE->getDecl() : nullptr;
4469 if (!DRE) {
4502 S.Diag(DRE->getDecl()->getLocation(), diag::note_template_arg_refers_here);
4671 DeclRefExpr *DRE = nullptr;
4696 DRE = dyn_cast<DeclRefExpr>(UnOp->getSubExpr());
4697 if (DRE && !DRE->getQualifier())
4698 DRE = nullptr;
4702 else if ((DRE = dyn_cast<DeclRefExpr>(Arg))) {
4703 if (ValueDecl *VD = dyn_cast<ValueDecl>(DRE->getDecl())) {
4717 DRE = nullptr;
4720 if (!DRE)
4725 if (isa<FieldDecl>(DRE->getDecl()) ||
4726 isa<IndirectFieldDecl>(DRE->getDecl()) ||
4727 isa<CXXMethodDecl>(DRE->getDecl())) {
4728 assert((isa<FieldDecl>(DRE->getDecl()) ||
4729 isa<IndirectFieldDecl>(DRE->getDecl()) ||
4730 !cast<CXXMethodDecl>(DRE->getDecl())->isStatic()) &&
4738 ValueDecl *D = cast<ValueDecl>(DRE->getDecl()->getCanonicalDecl());
4748 S.Diag(DRE->getDecl()->getLocation(), diag::note_template_arg_refers_here);
5844 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(ArgExpr))
5845 if (isa<NonTypeTemplateParmDecl>(DRE->getDecl()))