Lines Matching defs:DRE
523 if (auto *DRE = dyn_cast<DeclRefExpr>(E->IgnoreParenCasts()))
524 if (auto *FD = dyn_cast<FunctionDecl>(DRE->getDecl()))
2214 auto *DRE = dyn_cast<DeclRefExpr>(VD->getInit());
2215 if (!DRE)
2217 auto *Referee = dyn_cast<VarDecl>(DRE->getDecl());
4319 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Inner)) {
4320 D = DRE->getDecl();
5745 if (auto *DRE = dyn_cast<DeclRefExpr>(UO->getSubExpr()->IgnoreParens())) {
5746 return DRE->hasQualifier();
6348 const DeclRefExpr *DRE = dyn_cast_if_present<DeclRefExpr>(E);
6349 if (!DRE || !DRE->getLocation().isValid())
6352 if (DRE->getQualifier())
6364 S.Diag(DRE->getLocation(), diag::warn_unqualified_call_to_std_cast_function)
6366 << FixItHint::CreateInsertion(DRE->getLocation(), "std::");
6399 if (auto *DRE = dyn_cast<DeclRefExpr>(Fn->IgnoreParens());
6400 DRE && Call.get()->isValueDependent()) {
6401 currentEvaluationContext().ReferenceToConsteval.erase(DRE);
6514 if (auto *DRE = dyn_cast<DeclRefExpr>(NakedFn)) {
6515 NDecl = DRE->getDecl();
6528 nullptr, DRE->isNonOdrUse());
10450 if (const auto *DRE = dyn_cast<DeclRefExpr>(LHSArg)) {
10451 if (const ValueDecl *LHSArgDecl = DRE->getDecl())
10464 if (const auto *DRE = dyn_cast<DeclRefExpr>(LHSArg)) {
10465 if (const ValueDecl *LHSArgDecl = DRE->getDecl())
13124 DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E);
13125 if (!DRE) return NCCK_None;
13126 if (!DRE->refersToEnclosingVariableOrCapture()) return NCCK_None;
13129 VarDecl *var = dyn_cast<VarDecl>(DRE->getDecl());
13260 } else if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) {
13262 if (const ValueDecl *VD = DRE->getDecl()) {
13354 else if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E))
13355 DiagnoseRecursiveConstFields(S, DRE->getDecl(), RTy, Loc,
13618 const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(InnerLHS);
13619 if (!DRE || DRE->getDecl()->hasAttr<BlocksAttr>())
13955 const auto *DRE = cast<DeclRefExpr>(Op->IgnoreParens());
13957 if (Op != DRE)
13964 << DRE->getSourceRange();
13966 if (DRE->getQualifier())
13971 << DRE->getSourceRange();
13976 << DRE->getSourceRange()
13977 << FixItHint::CreateInsertion(DRE->getSourceRange().getBegin(), Qual);
14079 DeclRefExpr *DRE = cast<DeclRefExpr>(op);
14080 CXXMethodDecl *MD = cast<CXXMethodDecl>(DRE->getDecl());
14135 } else if (const auto *DRE = dyn_cast<DeclRefExpr>(op)) {
14136 if (const auto *MD = dyn_cast_or_null<CXXMethodDecl>(DRE->getDecl()))
14238 const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Exp);
14239 if (!DRE)
14241 const Decl *D = DRE->getDecl();
14497 if (auto *DRE = dyn_cast<DeclRefExpr>(E))
14498 return DRE->getDecl();
14677 if (auto *DRE = dyn_cast<DeclRefExpr>(LHS.get()->IgnoreParens()))
14678 if (auto *VD = dyn_cast<VarDecl>(DRE->getDecl()))
15520 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) {
15521 if (!DRE->getQualifier())
15524 ValueDecl *VD = DRE->getDecl();
16583 auto *DRE = dyn_cast<DeclRefExpr>(SrcExpr->IgnoreParenImpCasts());
16584 if (!DRE)
16587 auto *FD = dyn_cast<FunctionDecl>(DRE->getDecl());
19125 auto *DRE = cast<DeclRefExpr>(E);
19126 if (DRE->isNonOdrUse() || IsPotentialResultOdrUsed(DRE->getDecl()))
19132 S.Context, DRE->getQualifierLoc(), DRE->getTemplateKeywordLoc(),
19133 DRE->getDecl(), DRE->refersToEnclosingVariableOrCapture(),
19134 DRE->getNameInfo(), DRE->getType(), DRE->getValueKind(),
19135 DRE->getFoundDecl(), CopiedTemplateArgs(DRE), NOUR);
19410 if (auto *DRE = dyn_cast<DeclRefExpr>(E)) {
19411 MarkVarDeclODRUsed(cast<VarDecl>(DRE->getDecl()),
19412 DRE->getLocation(), *this);
19538 if (auto *DRE = dyn_cast_or_null<DeclRefExpr>(E))
19539 DRE->setDecl(DRE->getDecl());
19591 if (DeclRefExpr *DRE = dyn_cast_or_null<DeclRefExpr>(E))
19592 if (DRE->isNonOdrUse())
19668 // and does not capture the variable by reference, then the type of the DRE
20555 DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E);
20556 if (DRE && Proto && Proto->getParamTypes().empty() && Proto->isVariadic()) {
20576 DRE->setDecl(NewFD);
20577 VD = DRE->getDecl();
20797 auto *DRE = dyn_cast<DeclRefExpr>(E->IgnoreParenImpCasts());
20798 if (DRE) {
20799 auto *FD = cast<FunctionDecl>(DRE->getDecl());
20830 SS.Adopt(DRE->getQualifierLoc());
20832 DRE->copyTemplateArgumentsInto(TemplateArgs);
20834 FD, FD->getType(), VK_LValue, DRE->getNameInfo(),
20835 DRE->hasQualifier() ? &SS : nullptr, DRE->getFoundDecl(),
20836 DRE->getTemplateKeywordLoc(),
20837 DRE->hasExplicitTemplateArgs() ? &TemplateArgs : nullptr);