Lines Matching defs:DRE
7756 auto *DRE = dyn_cast<DeclRefExpr>(E);
7757 if (!DRE)
7759 const NamedDecl *D = cast<NamedDecl>(DRE->getDecl()->getCanonicalDecl());
11369 DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Base);
11370 if (!DRE || DRE->getDecl() != OrigDecl)
11397 HandleDeclRefExpr(DRE);
11406 if (DeclRefExpr* DRE = dyn_cast<DeclRefExpr>(E)) {
11407 HandleDeclRefExpr(DRE);
11452 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Base))
11453 HandleDeclRefExpr(DRE);
11496 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Base)) {
11498 HandleDeclRefExpr(DRE);
11580 void HandleDeclRefExpr(DeclRefExpr *DRE) {
11581 Decl* ReferenceDecl = DRE->getDecl();
11590 DRE->getDecl()->getType()->isRecordType()) {
11597 S.DiagRuntimeBehavior(DRE->getBeginLoc(), DRE,
11599 << DRE->getDecl() << OrigDecl->getLocation()
11600 << DRE->getSourceRange());
11619 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(ICE->getSubExpr()))
11620 if (DRE->getDecl() == OrigDecl)
17975 DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(InitExpr);
17976 if (!DRE)
17979 EnumConstantDecl *EnumConstant = dyn_cast<EnumConstantDecl>(DRE->getDecl());