reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

gen/tools/clang/include/clang/AST/StmtDataCollectors.inc
   90     addData(S->getDecl()->getQualifiedNameAsString());
tools/clang/include/clang/AST/Expr.h
 1227     return DeclarationNameInfo(getDecl()->getDeclName(), getLocation(), DNLoc);
tools/clang/include/clang/ASTMatchers/ASTMatchers.h
 3486   const Decl *DeclNode = Node.getDecl();
tools/clang/include/clang/ASTMatchers/ASTMatchersInternal.h
  852     return matchesDecl(Node.getDecl(), Finder, Builder);
tools/clang/lib/AST/DeclCXX.cpp
 2111     if (const auto *VD = dyn_cast<VarDecl>(DRE->getDecl()))
tools/clang/lib/AST/Expr.cpp
 1480   const FunctionDecl *FDecl = dyn_cast<FunctionDecl>(DRE->getDecl());
 1622         D = DRE->getDecl();
 2674         if (!(DRE && isa<VarDecl>(DRE->getDecl()) &&
 2675               cast<VarDecl>(DRE->getDecl())->hasLocalStorage()) &&
 2754     const Decl *D = cast<DeclRefExpr>(E)->getDecl();
 3830   const ImplicitParamDecl *Param = dyn_cast<ImplicitParamDecl>(DRE->getDecl());
 3907     if (auto *BD = dyn_cast<BindingDecl>(DRE->getDecl()))
 3918     if (const auto *VD = dyn_cast<VarDecl>(DRE->getDecl()))
 3944              DRE1->getDecl() == DRE2->getDecl();
 3944              DRE1->getDecl() == DRE2->getDecl();
 3968         return declaresSameEntity(DRE1->getDecl(), DRE2->getDecl());
 3968         return declaresSameEntity(DRE1->getDecl(), DRE2->getDecl());
 4019           return DRE->getDecl();
 4663     if (auto *PVD = dyn_cast<ParmVarDecl>(DRE->getDecl()))
tools/clang/lib/AST/ExprClassification.cpp
  226       return isa<FunctionDecl>(cast<DeclRefExpr>(E)->getDecl())
  228     return ClassifyDecl(Ctx, cast<DeclRefExpr>(E)->getDecl());
tools/clang/lib/AST/ExprConstant.cpp
 7384   if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(E->getDecl()))
 7386   if (const VarDecl *VD = dyn_cast<VarDecl>(E->getDecl()))
 7388   if (const BindingDecl *BD = dyn_cast<BindingDecl>(E->getDecl()))
 8102     return Info.Ctx.getDeclAlign(DRE->getDecl(),
 9718     if (CheckReferencedDecl(E, E->getDecl()))
13963     if (isa<EnumConstantDecl>(cast<DeclRefExpr>(E)->getDecl()))
13965     const ValueDecl *D = cast<DeclRefExpr>(E)->getDecl();
tools/clang/lib/AST/Interp/ByteCodeExprGen.cpp
  264         if (!DE->getDecl()->getType()->isReferenceType()) {
  265           if (auto *PD = dyn_cast<ParmVarDecl>(DE->getDecl()))
  267           if (auto *VD = dyn_cast<VarDecl>(DE->getDecl()))
tools/clang/lib/AST/ItaniumMangle.cpp
 4194     mangleDeclRefExpr(cast<DeclRefExpr>(E)->getDecl());
 4564       const ValueDecl *D = DRE->getDecl();
tools/clang/lib/AST/JSONNodeDumper.cpp
 1133   JOS.attribute("referencedDecl", createBareDeclRef(DRE->getDecl()));
 1134   if (DRE->getDecl() != DRE->getFoundDecl())
tools/clang/lib/AST/NSAPI.cpp
  587           EnumD = dyn_cast_or_null<EnumConstantDecl>(DRE->getDecl()))
tools/clang/lib/AST/StmtPrinter.cpp
  986     if (const auto *PD = dyn_cast<ImplicitParamDecl>(DRE->getDecl())) {
 1788       cast<FunctionDecl>(DRE->getDecl())->getTemplateSpecializationArgs();
tools/clang/lib/AST/StmtProfile.cpp
 1041   VisitDecl(S->getDecl());
tools/clang/lib/AST/TextNodeDumper.cpp
  717   dumpBareDeclRef(Node->getDecl());
  718   if (Node->getDecl() != Node->getFoundDecl()) {
tools/clang/lib/Analysis/CFG.cpp
  104     return isa<EnumConstantDecl>(DR->getDecl()) ? DR : nullptr;
  157   auto *Decl1 = cast<DeclRefExpr>(E1)->getDecl();
  158   auto *Decl2 = cast<DeclRefExpr>(E2)->getDecl();
tools/clang/lib/Analysis/CloneDetection.cpp
  551     if (auto VD = dyn_cast<VarDecl>(D->getDecl()->getCanonicalDecl()))
tools/clang/lib/Analysis/Consumed.cpp
  833   if (const auto *Var = dyn_cast_or_null<VarDecl>(DeclRef->getDecl()))
tools/clang/lib/Analysis/ReachableCode.cpp
   37   return isa<EnumConstantDecl>(DR->getDecl());
   62     if (const auto *FDecl = dyn_cast<FunctionDecl>(DRE->getDecl()))
  219       return isConfigurationValue(cast<DeclRefExpr>(S)->getDecl(), PP);
tools/clang/lib/Analysis/ThreadSafety.cpp
  635     const ValueDecl *VDec = DRE->getDecl();
 1195     return DR->getDecl();
 1442     const Expr *E = LocalVarMap.lookupExpr(DRE->getDecl(), C);
 1707     const auto *VD = dyn_cast<VarDecl>(DRE->getDecl()->getCanonicalDecl());
tools/clang/lib/Analysis/ThreadSafetyCommon.cpp
  275   const auto *VD = cast<ValueDecl>(DRE->getDecl()->getCanonicalDecl());
  443         if (DRE->getDecl()->isCXXInstanceMember()) {
  447           return new (Arena) til::Project(W, DRE->getDecl());
  502     VD = DRE->getDecl();
  568       til::SExpr *E0 = lookupVarDecl(DRE->getDecl());
tools/clang/lib/Analysis/UninitializedValues.cpp
  315     if (const auto *VD = dyn_cast<VarDecl>(DRE->getDecl()))
  363     const auto *VD = dyn_cast<VarDecl>(DRE->getDecl());
  379     if (DRE && DRE->getDecl() == VD)
tools/clang/lib/CodeGen/CGBuiltin.cpp
  581     auto *Param = dyn_cast<ParmVarDecl>(D->getDecl());
  582     auto *PS = D->getDecl()->getAttr<PassObjectSizeAttr>();
tools/clang/lib/CodeGen/CGDecl.cpp
  638       return (ref->getDecl() == &var);
tools/clang/lib/CodeGen/CGException.cpp
 1682     const auto *D = dyn_cast<VarDecl>(E->getDecl());
tools/clang/lib/CodeGen/CGExpr.cpp
  897   auto *ParamDecl = dyn_cast<ParmVarDecl>(ArrayDeclRef->getDecl());
 2213     if (const auto *VD = dyn_cast<VarDecl>(Exp->getDecl())) {
 2515   const NamedDecl *ND = E->getDecl();
 4567     if (auto FD = dyn_cast<FunctionDecl>(DRE->getDecl())) {
tools/clang/lib/CodeGen/CGExprAgg.cpp
 1080     const VarDecl *var = dyn_cast<VarDecl>(DRE->getDecl());
tools/clang/lib/CodeGen/CGExprScalar.cpp
  268       const ValueDecl *VD = DRE->getDecl();
tools/clang/lib/CodeGen/CGObjC.cpp
  319     const VarDecl *var = dyn_cast<VarDecl>(declRef->getDecl());
tools/clang/lib/CodeGen/CGOpenCLRuntime.cpp
  136       E = cast<VarDecl>(DR->getDecl())->getInit();
tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp
  797         if (const auto *DRD = dyn_cast<OMPDeclareReductionDecl>(DRE->getDecl()))
  819     PrivateScope.addPrivate(cast<VarDecl>(LHSDRE->getDecl()),
  821     PrivateScope.addPrivate(cast<VarDecl>(RHSDRE->getDecl()),
  961       cast<VarDecl>(cast<DeclRefExpr>(ClausesData[N].Private)->getDecl());
  997       cast<VarDecl>(cast<DeclRefExpr>(ClausesData[N].Private)->getDecl());
 1036       cast<VarDecl>(cast<DeclRefExpr>(ClausesData[N].Private)->getDecl());
 1057       cast<VarDecl>(cast<DeclRefExpr>(ClausesData[N].Private)->getDecl());
 1085       cast<VarDecl>(cast<DeclRefExpr>(ClausesData[N].Private)->getDecl());
 1094       cast<VarDecl>(cast<DeclRefExpr>(ClausesData[N].Private)->getDecl());
 1161     OrigVD = cast<VarDecl>(DE->getDecl());
 1167     OrigVD = cast<VarDecl>(DE->getDecl());
 1194       cast<VarDecl>(cast<DeclRefExpr>(ClausesData[N].Ref)->getDecl()));
 1410       cast<VarDecl>(cast<DeclRefExpr>(D->getCombinerIn())->getDecl()),
 1411       cast<VarDecl>(cast<DeclRefExpr>(D->getCombinerOut())->getDecl()),
 1419         cast<VarDecl>(cast<DeclRefExpr>(D->getInitOrig())->getDecl()),
 1420         cast<VarDecl>(cast<DeclRefExpr>(D->getInitPriv())->getDecl()),
 3326         cast<VarDecl>(cast<DeclRefExpr>(DestExprs[I])->getDecl());
 3330         cast<VarDecl>(cast<DeclRefExpr>(SrcExprs[I])->getDecl());
 3333     const auto *VD = cast<DeclRefExpr>(CopyprivateVars[I])->getDecl();
 4680     const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl());
 4691     const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl());
 4702     const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl());
 4971     const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl());
 4974         PrivateHelpersTy(VD, cast<VarDecl>(cast<DeclRefExpr>(*I)->getDecl()),
 4981     const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl());
 4985             VD, cast<VarDecl>(cast<DeclRefExpr>(*I)->getDecl()),
 4986             cast<VarDecl>(cast<DeclRefExpr>(*IElemInitRef)->getDecl())));
 4992     const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl());
 4995         PrivateHelpersTy(VD, cast<VarDecl>(cast<DeclRefExpr>(*I)->getDecl()),
 5547                 dyn_cast<OMPDeclareReductionDecl>(DRE->getDecl())) {
 5600         cast<VarDecl>(cast<DeclRefExpr>(RHSExprs[I])->getDecl());
 5605         cast<VarDecl>(cast<DeclRefExpr>(LHSExprs[I])->getDecl());
 5630       const auto *LHSVar = cast<VarDecl>(cast<DeclRefExpr>(*ILHS)->getDecl());
 5631       const auto *RHSVar = cast<VarDecl>(cast<DeclRefExpr>(*IRHS)->getDecl());
 5657     const auto *LHSVar = cast<VarDecl>(LHS->getDecl());
 5658     const auto *RHSVar = cast<VarDecl>(RHS->getDecl());
 5888         const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(*ILHS)->getDecl());
 5916               cast<VarDecl>(cast<DeclRefExpr>(*IRHS)->getDecl());
 5939               cast<VarDecl>(cast<DeclRefExpr>(*ILHS)->getDecl());
 5941               cast<VarDecl>(cast<DeclRefExpr>(*IRHS)->getDecl());
 5983     D = cast<VarDecl>(cast<DeclRefExpr>(Ref)->getDecl());
 6076   const auto *LHSVD = cast<VarDecl>(cast<DeclRefExpr>(LHS)->getDecl());
 6077   const auto *RHSVD = cast<VarDecl>(cast<DeclRefExpr>(RHS)->getDecl());
 7865             cast<VarDecl>(cast<DeclRefExpr>(D)->getDecl()), C->isImplicit());
 8840       cast<VarDecl>(cast<DeclRefExpr>(D->getMapperVarRef())->getDecl());
10692           const auto *PVD = cast<ParmVarDecl>(cast<DeclRefExpr>(E)->getDecl())
10708           const auto *PVD = cast<ParmVarDecl>(cast<DeclRefExpr>(E)->getDecl())
10730           const auto *PVD = cast<ParmVarDecl>(cast<DeclRefExpr>(E)->getDecl())
10741               if (const auto *StridePVD = cast<ParmVarDecl>(DRE->getDecl())) {
tools/clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
  223     return cast<ValueDecl>(DE->getDecl()->getCanonicalDecl());
  408                   cast<DeclRefExpr>(E)->getDecl()->getCanonicalDecl();
  531     const ValueDecl *VD = E->getDecl();
 3684     const ValueDecl *VD = cast<DeclRefExpr>(Private)->getDecl();
 3782     const ValueDecl *VD = cast<DeclRefExpr>(*IPriv)->getDecl();
 3885     const ValueDecl *VD = cast<DeclRefExpr>(Private)->getDecl();
 3982     const ValueDecl *VD = cast<DeclRefExpr>(*IPriv)->getDecl();
 4355       PrivatesReductions[Cnt] = cast<DeclRefExpr>(DRE)->getDecl();
tools/clang/lib/CodeGen/CGStmt.cpp
 1793   const ValueDecl &Value = *AsmDeclRef->getDecl();
tools/clang/lib/CodeGen/CGStmtOpenMP.cpp
  125       const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl());
  133         const auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(IRef)->getDecl());
  207           const Decl *D = cast<DeclRefExpr>(E)->getDecl();
  217         CGF.EmitVarDecl(*cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl()));
  251     if (const auto *OrigVD = dyn_cast<VarDecl>(OrigDRE->getDecl())) {
  749           cast<VarDecl>(cast<DeclRefExpr>(D)->getDecl())->getCanonicalDecl());
  762       const auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(*IRef)->getDecl());
  766       const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(IInit)->getDecl());
  790             cast<VarDecl>(cast<DeclRefExpr>(*InitsRef)->getDecl());
  883       const auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(*IRef)->getDecl());
  885         const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(IInit)->getDecl());
  914       const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(*IRef)->getDecl());
  951             cast<VarDecl>(cast<DeclRefExpr>(*ISrcRef)->getDecl());
  953             cast<VarDecl>(cast<DeclRefExpr>(*IDestRef)->getDecl());
  979           cast<VarDecl>(cast<DeclRefExpr>(C)->getDecl())->getCanonicalDecl());
  993       const auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(*IRef)->getDecl());
  998             cast<VarDecl>(cast<DeclRefExpr>(*IDestRef)->getDecl());
 1010           const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(IInit)->getDecl());
 1067           cast<VarDecl>(cast<DeclRefExpr>(*IRef)->getDecl());
 1077             cast<VarDecl>(cast<DeclRefExpr>(*ISrcRef)->getDecl());
 1079             cast<VarDecl>(cast<DeclRefExpr>(*IDestRef)->getDecl());
 1134     const auto *PrivateVD = cast<VarDecl>(cast<DeclRefExpr>(*IPriv)->getDecl());
 1154     const auto *LHSVD = cast<VarDecl>(cast<DeclRefExpr>(*ILHS)->getDecl());
 1155     const auto *RHSVD = cast<VarDecl>(cast<DeclRefExpr>(*IRHS)->getDecl());
 1450       const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(Init)->getDecl());
 1454         const auto *OrigVD = cast<VarDecl>(Ref->getDecl());
 1471         EmitVarDecl(*cast<VarDecl>(SaveRef->getDecl()));
 1499       const auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(*IC)->getDecl());
 1558     const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl());
 1590       const auto *VD = cast<VarDecl>(DRE->getDecl());
 1624     const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl());
 1649           cast<VarDecl>(cast<DeclRefExpr>(C)->getDecl())->getCanonicalDecl());
 1655       const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl());
 1657           cast<VarDecl>(cast<DeclRefExpr>(*CurPrivate)->getDecl());
 1765   auto VDecl = cast<VarDecl>(Helper->getDecl());
 1807   const auto *IVDecl = cast<VarDecl>(cast<DeclRefExpr>(IVExpr)->getDecl());
 1815     CGF.EmitVarDecl(*cast<VarDecl>(LIExpr->getDecl()));
 2318   const auto *IVDecl = cast<VarDecl>(IVExpr->getDecl());
 2325     EmitVarDecl(*cast<VarDecl>(LIExpr->getDecl()));
 2913       const auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(*IRef)->getDecl());
 2927       const auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(*IRef)->getDecl());
 2943       const auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(*IRef)->getDecl());
 2949           {cast<VarDecl>(cast<DeclRefExpr>(*ID)->getDecl()),
 2999         const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl());
 3006         const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl());
 3014         const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl());
 3024         const auto *OrigVD = cast<VarDecl>(Pair.second->getDecl());
 3237         const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl());
 3350       const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl());
 3378   const auto *IVDecl = cast<VarDecl>(IVExpr->getDecl());
 3385     EmitVarDecl(*cast<VarDecl>(LIExpr->getDecl()));
 4640     const auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(*OrigVarIt)->getDecl());
 4641     const auto *InitVD = cast<VarDecl>(cast<DeclRefExpr>(*InitIt)->getDecl());
 4642     const auto *PvtVD = cast<VarDecl>(cast<DeclRefExpr>(PvtVarIt)->getDecl());
 4959   const auto *VDecl = cast<VarDecl>(Helper->getDecl());
 5043     const auto *IVDecl = cast<VarDecl>(cast<DeclRefExpr>(IVExpr)->getDecl());
 5051       CGF.EmitVarDecl(*cast<VarDecl>(LIExpr->getDecl()));
 5183           const auto *VD = dyn_cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl());
 5202                     cast<DeclRefExpr>(C->getLoopCounter(I))->getDecl())) {
tools/clang/lib/CodeGen/CodeGenFunction.cpp
 2015       Dbg->EmitGlobalVariable(E->getDecl(), Init);
tools/clang/lib/CodeGen/CodeGenModule.cpp
 5750     auto *VD = cast<VarDecl>(cast<DeclRefExpr>(RefExpr)->getDecl());
tools/clang/lib/Edit/RewriteObjCFoundationAPI.cpp
  969     if (const ValueDecl *VD = DRE->getDecl())
tools/clang/lib/Sema/ScopeInfo.cpp
   76     D = cast<DeclRefExpr>(E)->getDecl();
  140   : Base(nullptr, true), Property(DRE->getDecl()) {
  193     if (isa<VarDecl>(DRE->getDecl()))
tools/clang/lib/Sema/Sema.cpp
 1999     if (const FunctionDecl *Fun = dyn_cast<FunctionDecl>(DeclRef->getDecl())) {
tools/clang/lib/Sema/SemaChecking.cpp
  763       getOpenCLArgAccess(cast<DeclRefExpr>(Arg0)->getDecl());
 5634     if (const ParmVarDecl *PV = dyn_cast<ParmVarDecl>(DR->getDecl())) {
 6889     if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) {
 9846       SrcArgDRE->getDecl() != CompareWithSrcDRE->getDecl())
 9846       SrcArgDRE->getDecl() != CompareWithSrcDRE->getDecl())
 9876       return D1->getDecl() == D2->getDecl();
 9876       return D1->getDecl() == D2->getDecl();
10483     if (isa<EnumConstantDecl>(DR->getDecl()))
10723     ED = dyn_cast<EnumConstantDecl>(DR->getDecl());
12177     if (!DRE->getDecl()->getType()->isReferenceType())
13124     return Context.getDeclAlign(DRE->getDecl());
13265     ND = DRE->getDecl();
13358       ND = DRE->getDecl();
13583         if (DRE->getDecl() != Variable)
14158     if (!LHSDeclRef->getDecl() || !RHSDeclRef->getDecl())
14158     if (!LHSDeclRef->getDecl() || !RHSDeclRef->getDecl())
14160     if (LHSDeclRef->getDecl()->getCanonicalDecl() !=
14161         RHSDeclRef->getDecl()->getCanonicalDecl())
14195     if (!LHSDeclRef->getDecl() || !RHSDeclRef->getDecl())
14195     if (!LHSDeclRef->getDecl() || !RHSDeclRef->getDecl())
14197     if (LHSDeclRef->getDecl()->getCanonicalDecl() !=
14198         RHSDeclRef->getDecl()->getCanonicalDecl())
14400       *VD = DRE->getDecl();
14739     const ValueDecl *VD = DRE->getDecl();
tools/clang/lib/Sema/SemaDeclAttr.cpp
  685           if (DRE->getDecl()->isCXXInstanceMember())
  686             ArgTy = DRE->getDecl()->getType();
tools/clang/lib/Sema/SemaExpr.cpp
 9232       if (const ValueDecl *LHSArgDecl = DRE->getDecl())
 9246       if (const ValueDecl *LHSArgDecl = DRE->getDecl())
10299     D = DR->getDecl();
11348       const auto *ECDHS = dyn_cast<EnumConstantDecl>(DREHS->getDecl());
11598     if (const ValueDecl *VD = DRE->getDecl()) {
11691     DiagnoseRecursiveConstFields(S, DRE->getDecl(), RTy, Loc,
11947         if (!DRE || DRE->getDecl()->hasAttr<BlocksAttr>())
12505   const Decl *D = DRE->getDecl();
12661     cast<ValueDecl>(LHSDeclRef->getDecl()->getCanonicalDecl());
12663     cast<ValueDecl>(RHSDeclRef->getDecl()->getCanonicalDecl());
14622   auto *FD = dyn_cast<FunctionDecl>(DRE->getDecl());
15121       const ValueDecl *Decl = DeclRef->getDecl();
tools/clang/lib/Sema/SemaExprCXX.cpp
 3148   if (const VarDecl *VD = dyn_cast<const VarDecl>(D->getDecl())) {
tools/clang/lib/Sema/SemaExprObjC.cpp
 1393                 cast<DeclRefExpr>(Receiver->IgnoreParenImpCasts())->getDecl())
tools/clang/lib/Sema/SemaInit.cpp
 5544   if (!DRE || !isa<FunctionDecl>(DRE->getDecl()))
 5548       cast<FunctionDecl>(DRE->getDecl()));
 7617     const VarDecl *VD = dyn_cast<VarDecl>(DRE->getDecl());
 8494           auto Var = cast<VarDecl>(DRE->getDecl());
tools/clang/lib/Sema/SemaOpenMP.cpp
 2399     if (const auto *VD = dyn_cast<VarDecl>(E->getDecl())) {
 4753       if (const auto *PVD = dyn_cast<ParmVarDecl>(DRE->getDecl()))
 4780       if (const auto *PVD = dyn_cast<ParmVarDecl>(DRE->getDecl())) {
 4850       if (const auto *PVD = dyn_cast<ParmVarDecl>(DRE->getDecl())) {
 4919       if (const auto *PVD = dyn_cast<ParmVarDecl>(DRE->getDecl())) {
 5592     const ValueDecl *VD = E->getDecl();
 5738     if (const auto *VD = dyn_cast<VarDecl>(DRE->getDecl()))
tools/clang/lib/Sema/SemaOverload.cpp
12418         auto *FD = dyn_cast<FunctionDecl>(DRE->getDecl());
tools/clang/lib/Sema/SemaStmt.cpp
  799     if (const VarDecl *VD = dyn_cast<VarDecl>(DRE->getDecl())) {
tools/clang/lib/Sema/SemaStmtAsm.cpp
  196     const VarDecl *Variable = dyn_cast<VarDecl>(AsmDeclRef->getDecl());
tools/clang/lib/Sema/SemaTemplate.cpp
 3135       const ValueDecl *VD = DR->getDecl();
tools/clang/lib/Sema/SemaTemplateDeduction.cpp
 5288     = dyn_cast<NonTypeTemplateParmDecl>(DRE->getDecl());
tools/clang/lib/Sema/SemaType.cpp
 8328     const ValueDecl *VD = DRE->getDecl();
tools/clang/lib/StaticAnalyzer/Checkers/CStringSyntaxChecker.cpp
   41         return D1->getDecl() == D2->getDecl();
   41         return D1->getDecl() == D2->getDecl();
   74       return D->getDecl()->getName();
  168     const auto *LenArgVal = dyn_cast<VarDecl>(LenArgDRE->getDecl());
  171       assert(isa<EnumConstantDecl>(LenArgDRE->getDecl()));
tools/clang/lib/StaticAnalyzer/Checkers/CastToStructChecker.cpp
   80       VD = SE->getDecl();
tools/clang/lib/StaticAnalyzer/Checkers/CastValueChecker.cpp
  121           Out << '\'' << DRE->getDecl()->getNameAsString() << '\'';
tools/clang/lib/StaticAnalyzer/Checkers/CheckSecuritySyntaxOnly.cpp
  228     const NamedDecl *ND = DR->getDecl();
  286   const VarDecl *vdLHS = drLHS ? dyn_cast<VarDecl>(drLHS->getDecl()) : nullptr;
  287   const VarDecl *vdRHS = drRHS ? dyn_cast<VarDecl>(drRHS->getDecl()) : nullptr;
  297   const VarDecl *vdInc = cast<VarDecl>(drInc->getDecl());
  308   os << "Variable '" << drCond->getDecl()->getName()
tools/clang/lib/StaticAnalyzer/Checkers/DeadStoresChecker.cpp
  290     if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl()))
  307       if (DR->getDecl() == VD)
  311       if (DR->getDecl() == VD)
  350             if (VD == dyn_cast<VarDecl>(RhsDR->getDecl()))
  420                 if (const VarDecl *VD = dyn_cast<VarDecl>(DRE->getDecl())) {
  477       if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl()))
tools/clang/lib/StaticAnalyzer/Checkers/DereferenceChecker.cpp
   64       if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) {
  115     return DRE->getDecl()->getType()->isReferenceType();
tools/clang/lib/StaticAnalyzer/Checkers/DynamicTypePropagation.cpp
  330     if (DRE->getDecl() == SFCtx->getSelfDecl()) {
tools/clang/lib/StaticAnalyzer/Checkers/IdenticalExprChecker.cpp
  232       if (DeclRef1->getDecl() == DeclRef2->getDecl()) {
  232       if (DeclRef1->getDecl() == DeclRef2->getDecl()) {
  462     return DeclRef1->getDecl() == DeclRef2->getDecl();
  462     return DeclRef1->getDecl() == DeclRef2->getDecl();
tools/clang/lib/StaticAnalyzer/Checkers/LocalizationChecker.cpp
 1246     if (const VarDecl *VD = dyn_cast<VarDecl>(DRE->getDecl())) {
tools/clang/lib/StaticAnalyzer/Checkers/MacOSKeychainAPIChecker.cpp
  162     const ValueDecl *VD = DRE->getDecl();
tools/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp
 3045         if (const VarDecl *D = dyn_cast<VarDecl>(ArgDRE->getDecl()))
tools/clang/lib/StaticAnalyzer/Checkers/MallocOverflowSecurityChecker.cpp
  143     static const Decl *getDecl(const DeclRefExpr *DR) { return DR->getDecl(); }
tools/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountDiagnostics.cpp
  191       const ValueDecl *VD = DRE->getDecl();
tools/clang/lib/StaticAnalyzer/Checkers/UndefCapturedBlockVarChecker.cpp
   39     if (BR->getDecl() == VD)
tools/clang/lib/StaticAnalyzer/Core/BugReporter.cpp
  772         const auto *D = dyn_cast<EnumConstantDecl>(DR->getDecl());
tools/clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
  196     if (const auto *VD = dyn_cast<VarDecl>(DRE->getDecl()))
  458       if (const auto *ID = dyn_cast<ImplicitParamDecl>(DRE->getDecl()))
 1107         if (const auto *DD = dyn_cast<DeclaratorDecl>(DR->getDecl()))
 1837     if (const auto *VD = dyn_cast<VarDecl>(DR->getDecl())) {
 2348     const bool quotes = isa<VarDecl>(DR->getDecl());
 2353       if (const MemRegion *R = state->getLValue(cast<VarDecl>(DR->getDecl()),
 2365     Out << DR->getDecl()->getDeclName().getAsString();
 2555   const auto *VD = dyn_cast<VarDecl>(DRE->getDecl());
tools/clang/lib/StaticAnalyzer/Core/CheckerHelpers.cpp
   40   if (DR && isa<EnumConstantDecl>(DR->getDecl()))
   55     if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl()))
tools/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
 1676       VisitCommonDeclRefExpr(DE, DE->getDecl(), Pred, Dst);
tools/clang/lib/StaticAnalyzer/Core/ExprEngineC.cpp
  980         const ValueDecl *VD = DRE->getDecl();
tools/clang/lib/Tooling/ASTDiff/ASTDiff.cpp
  464     return getRelativeName(D->getDecl(), getEnclosingDeclContext(AST, S));
tools/clang/tools/extra/clang-move/HelperDeclRefGraph.cpp
  119                             << FuncRef->getDecl()->getNameAsString() << " ("
  120                             << FuncRef->getDecl() << ")\n");
  123         getOutmostClassOrFunDecl(FuncRef->getDecl()->getCanonicalDecl()));
tools/clang/tools/extra/clang-tidy/bugprone/BoolPointerImplicitConversionCheck.cpp
   46   const Decl *D = Var->getDecl();
tools/clang/tools/extra/clang-tidy/bugprone/InfiniteLoopCheck.cpp
   30     return DRE->getDecl() == Var;
   96     if (const auto *Var = dyn_cast<VarDecl>(DRE->getDecl())) {
  138     if (const auto *Var = dyn_cast<VarDecl>(DRE->getDecl()))
tools/clang/tools/extra/clang-tidy/bugprone/NotNullTerminatedResultCheck.cpp
   71     if (const auto *LengthVD = dyn_cast<VarDecl>(LengthDRE->getDecl()))
   81     if (const auto *StrVD = dyn_cast<VarDecl>(StrDRE->getDecl()))
  188       return DestDRE->getDecl()->getCanonicalDecl() ==
  189              SrcDRE->getDecl()->getCanonicalDecl();
  242         return dyn_cast<VarDecl>(ArgDRE->getDecl()) == SrcVD;
tools/clang/tools/extra/clang-tidy/bugprone/SuspiciousEnumUsageCheck.cpp
  158       EnumExpr ? dyn_cast<EnumConstantDecl>(EnumExpr->getDecl()) : nullptr;
tools/clang/tools/extra/clang-tidy/bugprone/UseAfterMoveCheck.cpp
  245           if (Operator || !isStandardSmartPointer(DeclRef->getDecl())) {
  362       << MoveArg->getDecl()->getName();
  427   if (!Arg->getDecl()->getDeclContext()->isFunctionOrMethod())
  432   if (finder.find(FunctionBody, MovingCall, Arg->getDecl(), &Use))
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/OwningMemoryCheck.cpp
  209     const ValueDecl *Decl = DeletedVariable->getDecl();
tools/clang/tools/extra/clang-tidy/misc/RedundantExpressionCheck.cpp
  113     return cast<DeclRefExpr>(Left)->getDecl() ==
  114            cast<DeclRefExpr>(Right)->getDecl();
tools/clang/tools/extra/clang-tidy/misc/ThrowByValueCatchByReferenceCheck.cpp
   51   return isa<ParmVarDecl>(declRefExpr->getDecl());
   56   auto *valueDecl = declRefExpr->getDecl();
tools/clang/tools/extra/clang-tidy/misc/UnusedUsingDeclsCheck.cpp
  144     RemoveNamedDecl(DRE->getDecl());
tools/clang/tools/extra/clang-tidy/modernize/LoopConvertCheck.cpp
  375     return dyn_cast<VarDecl>(DRE->getDecl());
tools/clang/tools/extra/clang-tidy/modernize/LoopConvertUtils.cpp
  214   return Decl && areSameVariable(Target, Decl->getDecl());
  257          areSameVariable(IndexVar, Idx->getDecl());
tools/clang/tools/extra/clang-tidy/modernize/UseDefaultMemberInitCheck.cpp
  174     return cast<DeclRefExpr>(E1)->getDecl() == cast<DeclRefExpr>(E2)->getDecl();
  174     return cast<DeclRefExpr>(E1)->getDecl() == cast<DeclRefExpr>(E2)->getDecl();
tools/clang/tools/extra/clang-tidy/performance/MoveConstArgCheck.cpp
   97         IsVariable ? dyn_cast<DeclRefExpr>(Arg)->getDecl() : nullptr;
tools/clang/tools/extra/clang-tidy/readability/IdentifierNamingCheck.cpp
  804     addUsage(NamingCheckFailures, DeclRef->getDecl(), Range,
tools/clang/tools/extra/clang-tidy/readability/NonConstParameterCheck.cpp
  118   auto It = Parameters.find(dyn_cast<ParmVarDecl>(Ref->getDecl()));
  213       auto It = Parameters.find(dyn_cast<ParmVarDecl>(D->getDecl()));
tools/clang/tools/extra/clangd/FindTarget.cpp
  179         const Decl *D = DRE->getDecl();
tools/clang/tools/libclang/CIndex.cpp
 4337     return RefExpr->getDecl();
tools/clang/tools/libclang/CXCursor.cpp
  511          dyn_cast_or_null<ImplicitParamDecl>(cast<DeclRefExpr>(S)->getDecl())) {
tools/clang/unittests/Tooling/LookupTest.cpp
   45     const ValueDecl *FD = Callee->getDecl();