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

References

tools/clang/lib/ARCMigrate/TransARCAssign.cpp
   49     if (declRef && isa<VarDecl>(declRef->getDecl())) {
   54       VarDecl *var = cast<VarDecl>(declRef->getDecl());
tools/clang/lib/ARCMigrate/TransAutoreleasePool.cpp
   57       if (DE->getDecl() == Dcl)
  189           if (VarDecl *VD = dyn_cast<VarDecl>(dref->getDecl())) {
  263       return checkRef(E->getLocation(), E->getDecl()->getLocation());
  380         if (dref->getDecl() == poolVar)
tools/clang/lib/ARCMigrate/TransBlockObjCVariable.cpp
   53         if (ref->getDecl() == Var) {
   66       if (E->getDecl() == Var)
tools/clang/lib/ARCMigrate/TransGCCalls.cpp
   47       if (FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(DRE->getDecl())) {
tools/clang/lib/ARCMigrate/TransProtectedScope.cpp
   33     if (ValueDecl *D = E->getDecl())
  183       if (isInRange(DRE->getDecl()->getLocation(), info.Range) &&
tools/clang/lib/ARCMigrate/TransRetainReleaseDealloc.cpp
  306       return DRE->getDecl();
tools/clang/lib/ARCMigrate/TransUnbridgedCasts.cpp
  453       if (ImplicitParamDecl *IPD = dyn_cast<ImplicitParamDecl>(DRE->getDecl()))
tools/clang/lib/ARCMigrate/TransZeroOutPropsInDealloc.cpp
   53     if (!refE || refE->getDecl() != SelfD)
tools/clang/lib/ARCMigrate/Transforms.cpp
  199     return DRE->getDecl()->getDeclContext()->isFileContext() &&
  200            DRE->getDecl()->isExternallyVisible();
  230     if (E->getDecl() == Dcl)
tools/clang/lib/AST/ASTImporter.cpp
 6252       E->getQualifierLoc(), E->getTemplateKeywordLoc(), E->getDecl(),
 6265   if (E->getDecl() != E->getFoundDecl()) {
tools/clang/lib/AST/DeclCXX.cpp
 3012   auto *VD = dyn_cast<VarDecl>(DRE->getDecl());
tools/clang/lib/AST/DeclPrinter.cpp
 1111           if (auto N = dyn_cast<NonTypeTemplateParmDecl>(E->getDecl())) {
 1615       NamedDecl *ND = cast<DeclRefExpr>(*I)->getDecl();
 1629       NamedDecl *ND = cast<DeclRefExpr>(*I)->getDecl();
tools/clang/lib/AST/Expr.cpp
  465   computeDeclRefDependence(Ctx, getDecl(), getType(), TypeDependent,
  473   if (getDecl()->isParameterPack())
 1457     return DRE->getDecl();
 3864     if (FieldDecl *Field = dyn_cast<FieldDecl>(DeclRef->getDecl()))
 3868     if (BindingDecl *BD = dyn_cast<BindingDecl>(DeclRef->getDecl()))
tools/clang/lib/AST/ExprConstant.cpp
 8743   return Success(cast<DeclRefExpr>(E->getSubExpr())->getDecl());
tools/clang/lib/AST/OpenMPClause.cpp
 1361       if (isa<OMPCapturedExprDecl>(DRE->getDecl()))
 1364         DRE->getDecl()->printQualifiedName(OS);
tools/clang/lib/AST/StmtPrinter.cpp
  950   if (const auto *OCED = dyn_cast<OMPCapturedExprDecl>(Node->getDecl())) {
tools/clang/lib/Analysis/AnalysisDeclContext.cpp
  600     if (const auto *VD = dyn_cast<VarDecl>(DR->getDecl())) {
tools/clang/lib/Analysis/LiveVariables.cpp
  381       const Decl* D = DR->getDecl();
  411   const Decl* D = DR->getDecl();
  444     VD = cast<VarDecl>(DR->getDecl());
  488     const Decl *D = DR->getDecl();
tools/clang/lib/Analysis/UninitializedValues.cpp
  769     reportUse(dr, cast<VarDecl>(dr->getDecl()));
  772     vals[cast<VarDecl>(dr->getDecl())] = Initialized;
  775       handler.handleSelfInit(cast<VarDecl>(dr->getDecl()));
tools/clang/lib/CodeGen/CGCoroutine.cpp
  361       auto *PD = DREOrig->getDecl();
tools/clang/lib/CodeGen/CGExpr.cpp
 1434   ValueDecl *value = refExpr->getDecl();
tools/clang/lib/CodeGen/CGExprConstant.cpp
 2175   const ValueDecl *decl = cast<DeclRefExpr>(uo->getSubExpr())->getDecl();
tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp
 5405       cast<VarDecl>(cast<DeclRefExpr>(D.getLowerBoundVariable())->getDecl());
 5412       cast<VarDecl>(cast<DeclRefExpr>(D.getUpperBoundVariable())->getDecl());
 5419       cast<VarDecl>(cast<DeclRefExpr>(D.getStrideVariable())->getDecl());
11122           ->getDecl());
tools/clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
 4803           cast<VarDecl>(cast<DeclRefExpr>(IT->getRef())->getDecl())
tools/clang/lib/CodeGen/CGStmtOpenMP.cpp
 1053           cast<VarDecl>(cast<DeclRefExpr>(*IC)->getDecl())->getCanonicalDecl();
 1559     const auto *PrivateVD = cast<VarDecl>(cast<DeclRefExpr>(*I)->getDecl());
 1719     const auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>((*IC))->getDecl());
 1720     const auto *PrivateVD = cast<VarDecl>(cast<DeclRefExpr>((*IPC))->getDecl());
tools/clang/lib/CodeGen/CodeGenModule.cpp
 2636       ValueDecl *VD = E->getDecl();
tools/clang/lib/Frontend/Rewrite/RewriteModernObjC.cpp
 1713     elementName = DR->getDecl()->getName();
 1714     ValueDecl *VD = DR->getDecl();
 4340       ValueDecl *VD = Exp->getDecl();
 4469         HasLocalVariableExternalStorage(DRE->getDecl()))
 4491         HasLocalVariableExternalStorage(DRE->getDecl())) {
 4492       if (!InnerContexts.count(DRE->getDecl()->getDeclContext()))
 4494       if (VarDecl *Var = cast<VarDecl>(DRE->getDecl()))
 4665   ValueDecl *VD = DeclRefExp->getDecl();
 4667                  HasLocalVariableExternalStorage(DeclRefExp->getDecl());
 4699   ValueDecl *VD = DRE->getDecl();
 5164       if (!BlockDeclRefs[i]->getDecl()->hasAttr<BlocksAttr>()) {
 5165         if (!BlockByCopyDeclsPtrSet.count(BlockDeclRefs[i]->getDecl())) {
 5166           BlockByCopyDeclsPtrSet.insert(BlockDeclRefs[i]->getDecl());
 5167           BlockByCopyDecls.push_back(BlockDeclRefs[i]->getDecl());
 5172       if (BlockDeclRefs[i]->getDecl()->hasAttr<BlocksAttr>()) {
 5173         if (!BlockByRefDeclsPtrSet.count(BlockDeclRefs[i]->getDecl())) {
 5174           BlockByRefDeclsPtrSet.insert(BlockDeclRefs[i]->getDecl());
 5175           BlockByRefDecls.push_back(BlockDeclRefs[i]->getDecl());
 5180       if (BlockDeclRefs[i]->getDecl()->hasAttr<BlocksAttr>() ||
 5183         ImportedBlockDecls.insert(BlockDeclRefs[i]->getDecl());
 5208       ValueDecl *VD = Exp->getDecl();
 5227       if (InnerBlockDeclRefs[i]->getDecl()->hasAttr<BlocksAttr>() ||
 5230         ImportedBlockDecls.insert(InnerBlockDeclRefs[i]->getDecl());
 5624     ValueDecl *VD = DRE->getDecl();
tools/clang/lib/Frontend/Rewrite/RewriteObjC.cpp
 1504     elementName = DR->getDecl()->getName();
 1505     ValueDecl *VD = DR->getDecl();
 3553       ValueDecl *VD = Exp->getDecl();
 3656         HasLocalVariableExternalStorage(DRE->getDecl()))
 3678         HasLocalVariableExternalStorage(DRE->getDecl())) {
 3679       if (!InnerContexts.count(DRE->getDecl()->getDeclContext()))
 3681       if (VarDecl *Var = cast<VarDecl>(DRE->getDecl()))
 3833   ValueDecl *VD = DeclRefExp->getDecl();
 3835                  HasLocalVariableExternalStorage(DeclRefExp->getDecl());
 3868   ValueDecl *VD = DRE->getDecl();
 4318       if (!BlockDeclRefs[i]->getDecl()->hasAttr<BlocksAttr>()) {
 4319         if (!BlockByCopyDeclsPtrSet.count(BlockDeclRefs[i]->getDecl())) {
 4320           BlockByCopyDeclsPtrSet.insert(BlockDeclRefs[i]->getDecl());
 4321           BlockByCopyDecls.push_back(BlockDeclRefs[i]->getDecl());
 4326       if (BlockDeclRefs[i]->getDecl()->hasAttr<BlocksAttr>()) {
 4327         if (!BlockByRefDeclsPtrSet.count(BlockDeclRefs[i]->getDecl())) {
 4328           BlockByRefDeclsPtrSet.insert(BlockDeclRefs[i]->getDecl());
 4329           BlockByRefDecls.push_back(BlockDeclRefs[i]->getDecl());
 4334       if (BlockDeclRefs[i]->getDecl()->hasAttr<BlocksAttr>() ||
 4337         ImportedBlockDecls.insert(BlockDeclRefs[i]->getDecl());
 4361       ValueDecl *VD = Exp->getDecl();
 4380       if (InnerBlockDeclRefs[i]->getDecl()->hasAttr<BlocksAttr>() ||
 4383         ImportedBlockDecls.insert(InnerBlockDeclRefs[i]->getDecl());
 4726     ValueDecl *VD = DRE->getDecl();
tools/clang/lib/Index/IndexBody.cpp
  139     return IndexCtx.handleReference(E->getDecl(), E->getLocation(),
tools/clang/lib/Sema/SemaCast.cpp
 1901   auto *FD = dyn_cast<FunctionDecl>(DRE->getDecl());
tools/clang/lib/Sema/SemaChecking.cpp
  470         << DRE->getDecl()->getIdentifier();
 5028   FunctionDecl *FDecl = cast<FunctionDecl>(DRE->getDecl());
 5395   FunctionDecl *FDecl = cast<FunctionDecl>(DRE->getDecl());
 6182   FunctionDecl *FDecl = cast<FunctionDecl>(DRE->getDecl());
10019       if (DRL->getDecl() == DRR->getDecl())
10019       if (DRL->getDecl() == DRR->getDecl())
11954       if (EnumConstantDecl *ECD = dyn_cast<EnumConstantDecl>(DRE->getDecl())) {
12291     D = R->getDecl();
12669       return DRE->getDecl();
13495       VarDecl *var = dyn_cast<VarDecl>(ref->getDecl());
13555       if (ref->getDecl() == Variable && !Capturer)
13793           << ArgRE->getDecl() << StringRef("'super'");
13805         if (ReceiverRE->getDecl() == ArgRE->getDecl()) {
13805         if (ReceiverRE->getDecl() == ArgRE->getDecl()) {
13806           ValueDecl *Decl = ReceiverRE->getDecl();
tools/clang/lib/Sema/SemaCodeComplete.cpp
 4998               dyn_cast<EnumConstantDecl>(DRE->getDecl())) {
 5149       FD = dyn_cast<FunctionDecl>(DRE->getDecl());
tools/clang/lib/Sema/SemaCoroutine.cpp
 1055     auto *Decl = DeclRef->getDecl();
tools/clang/lib/Sema/SemaDecl.cpp
 7403   const NamedDecl *D = cast<NamedDecl>(DRE->getDecl()->getCanonicalDecl());
10838       if (!DRE || DRE->getDecl() != OrigDecl)
11049       Decl* ReferenceDecl = DRE->getDecl();
11058                  DRE->getDecl()->getType()->isRecordType()) {
11067                                 << DRE->getDecl() << OrigDecl->getLocation()
11088             if (DRE->getDecl() == OrigDecl)
17197   EnumConstantDecl *EnumConstant = dyn_cast<EnumConstantDecl>(DRE->getDecl());
tools/clang/lib/Sema/SemaDeclAttr.cpp
 1036     if (const auto *PVD = dyn_cast<ParmVarDecl>(DRE->getDecl()))
 3036     FD = dyn_cast<FunctionDecl>(DRE->getDecl());
 8174     if (DRE->getDecl() == D)
 8265     DiagnoseDeclAvailability(DRE->getDecl(),
tools/clang/lib/Sema/SemaDeclCXX.cpp
   87     NamedDecl *Decl = DRE->getDecl();
tools/clang/lib/Sema/SemaExpr.cpp
  453       if (auto *FD = dyn_cast<FunctionDecl>(DRE->getDecl()))
 3987     D = DRE->getDecl();
 5713     NDecl = DRE->getDecl();
11465   VarDecl *var = dyn_cast<VarDecl>(DRE->getDecl());
11733       if (declRef && isa<VarDecl>(declRef->getDecl())) {
11734         VarDecl *var = cast<VarDecl>(declRef->getDecl());
11869     if (RL && RR && RL->getDecl() == RR->getDecl())
11869     if (RL && RR && RL->getDecl() == RR->getDecl())
12219     return cast<DeclRefExpr>(E)->getDecl();
12385     CXXMethodDecl *MD = cast<CXXMethodDecl>(DRE->getDecl());
12725     return DRE->getDecl();
12894           if (auto *VD = dyn_cast<VarDecl>(DRE->getDecl()))
13679     ValueDecl *VD = DRE->getDecl();
15032       if (isa<FieldDecl>(E->getDecl()) &&
15036             << E->getDecl() << E->getSourceRange();
16387     if (DRE->isNonOdrUse() || IsPotentialResultOdrUsed(DRE->getDecl()))
16394         DRE->getDecl(), DRE->refersToEnclosingVariableOrCapture(),
16668       MarkVarDeclODRUsed(cast<VarDecl>(DRE->getDecl()),
16904   if (const CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(E->getDecl()))
16908   MarkExprReferenced(*this, E->getLocation(), E->getDecl(), E, OdrUse);
17014         if (VarDecl *VD = dyn_cast<VarDecl>(E->getDecl()))
17404       return resolveDecl(E, E->getDecl());
17502       return resolveDecl(E, E->getDecl());
17724         VD = DRE->getDecl();
17829     d = ref->getDecl();
17929       auto *FD = cast<FunctionDecl>(DRE->getDecl());
tools/clang/lib/Sema/SemaExprCXX.cpp
  736       if (VarDecl *Var = dyn_cast<VarDecl>(DRE->getDecl())) {
tools/clang/lib/Sema/SemaExprObjC.cpp
 1771     if (DRE->getDecl() == method->getSelfDecl())
 3426       VarDecl *var = dyn_cast<VarDecl>(e->getDecl());
tools/clang/lib/Sema/SemaInit.cpp
 5360     VarDecl *var = dyn_cast<VarDecl>(cast<DeclRefExpr>(e)->getDecl());
 6964     auto *VD = dyn_cast<VarDecl>(DRE->getDecl());
 6969       } else if (isa<ParmVarDecl>(DRE->getDecl())) {
 7061             auto *VD = dyn_cast<VarDecl>(DRE->getDecl());
 7463         auto *VD = DRE ? dyn_cast<VarDecl>(DRE->getDecl()) : nullptr;
 7507             << Entity.getType()->isReferenceType() << DRE->getDecl()
 7508             << isa<ParmVarDecl>(DRE->getDecl()) << DiagRange;
 7990           if (auto *FD = dyn_cast<FunctionDecl>(DRE->getDecl())) {
 8788     auto *FD = cast<FunctionDecl>(cast<DeclRefExpr>(OnlyArg)->getDecl());
tools/clang/lib/Sema/SemaLambda.cpp
  581           = dyn_cast<EnumConstantDecl>(DRE->getDecl())) {
tools/clang/lib/Sema/SemaOpenMP.cpp
  472                    ->getDecl() == VD;
  830                E->getDecl()) == OMPDeclareTargetDeclAttr::MT_Link &&
 1091       DSAInfo &Data = getTopOfStack().SharingMap[PrivateCopy->getDecl()];
 1959       return VD ? VD : cast<VarDecl>(DVarPrivate.PrivateCopy->getDecl());
 1970       return VD ? VD : cast<VarDecl>(DVarPrivate.PrivateCopy->getDecl());
 2165           auto *VD = cast<VarDecl>(DRE->getDecl());
 2427     auto *VD = cast<VarDecl>(DE->getDecl());
 2617     auto *VD = cast<VarDecl>(DE->getDecl());
 2789     if (auto *VD = dyn_cast<VarDecl>(E->getDecl())) {
 4111   if ((!DE || !isa<VarDecl>(DE->getDecl())) &&
 4128       getCanonicalDecl(DE ? DE->getDecl() : ME->getMemberDecl()), false);
 4193                              cast<VarDecl>(cast<DeclRefExpr>(*I)->getDecl()));
 5088   auto *NewFD = dyn_cast_or_null<FunctionDecl>(DRE->getDecl());
 5208       auto *F = cast<FunctionDecl>(DRE->getDecl());
 5666         if (auto *CED = dyn_cast<OMPCapturedExprDecl>(DRE->getDecl()))
 5670         return setLCDeclAndLB(DRE->getDecl(), DRE, BO->getRHS(), EmitDiags);
 5701         if (auto *CED = dyn_cast<OMPCapturedExprDecl>(DRE->getDecl()))
 5705         return setLCDeclAndLB(DRE->getDecl(), DRE, CE->getArg(1), EmitDiags);
 6483             VD = cast<VarDecl>(PrivateRef->getDecl());
 6867       PreInits.push_back(Pair.second->getDecl());
 6971       if (isa<OMPCapturedExprDecl>(DRE->getDecl())) {
 7492       auto *VD = cast<VarDecl>(cast<DeclRefExpr>(IS.CounterVar)->getDecl());
12430           ExprCaptures.push_back(Ref->getDecl());
12575           ExprCaptures.push_back(Ref->getDecl());
12579            Ref->getDecl()->hasAttr<OMPCaptureNoInitAttr>())) {
12667     if (auto *VD = dyn_cast<VarDecl>(E->getDecl())) {
13402       auto *DRD = cast<OMPDeclareReductionDecl>(DRDRef->getDecl());
13645         RD.ExprCaptures.emplace_back(Ref->getDecl());
13646         if (Ref->getDecl()->hasAttr<OMPCaptureNoInitAttr>()) {
13853         ExprCaptures.push_back(Ref->getDecl());
13854         if (Ref->getDecl()->hasAttr<OMPCaptureNoInitAttr>()) {
13978       CapturedRef = cast<VarDecl>(DE->getDecl())->getInit();
13981           buildDeclRefExpr(SemaRef, cast<VarDecl>(DE->getDecl()),
14131     if (!DE || !isa<VarDecl>(DE->getDecl())) {
14137     Decl *D = DE->getDecl();
14677       if (!isa<VarDecl>(CurE->getDecl()))
14688       CurComponents.emplace_back(CurE, CurE->getDecl());
tools/clang/lib/Sema/SemaOverload.cpp
 1754       if (auto *FD = dyn_cast<FunctionDecl>(DRE->getDecl()))
tools/clang/lib/Sema/SemaStmt.cpp
  994             PrevString = DeclRef->getDecl()->getName();
  997             CurrString = DeclRef->getDecl()->getName();
 1435       VarDecl *VD = dyn_cast<VarDecl>(E->getDecl());
 1509       if (VarDecl *VD = dyn_cast<VarDecl>(E->getDecl()))
 1732         LoopDRE->getDecl() != LastDRE->getDecl()) return;
 1732         LoopDRE->getDecl() != LastDRE->getDecl()) return;
 1737          << LastDRE->getDecl() << LastIncrement;
 2542           if (ParmVarDecl *PVD = dyn_cast<ParmVarDecl>(DRE->getDecl())) {
 2972   VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl());
tools/clang/lib/Sema/SemaStmtAsm.cpp
  144       if (isa<ParmVarDecl>(DRE->getDecl())) {
tools/clang/lib/Sema/SemaTemplate.cpp
 2527           dyn_cast<NonTypeTemplateParmDecl>(E->getDecl()))
 3668     if (!DRE || !DRE->getDecl())
 3671         dyn_cast<NonTypeTemplateParmDecl>(DRE->getDecl());
 6014   ValueDecl *Entity = DRE ? DRE->getDecl() : nullptr;
 6083     S.Diag(DRE->getDecl()->getLocation(), diag::note_template_arg_refers_here);
 6251     ValueDecl *VD = DRE->getDecl();
 6267   ValueDecl *Entity = DRE ? DRE->getDecl() : nullptr;
 6303   if (isa<FieldDecl>(DRE->getDecl()) ||
 6304       isa<IndirectFieldDecl>(DRE->getDecl()) ||
 6305       isa<CXXMethodDecl>(DRE->getDecl())) {
 6306     assert((isa<FieldDecl>(DRE->getDecl()) ||
 6307             isa<IndirectFieldDecl>(DRE->getDecl()) ||
 6308             !cast<CXXMethodDecl>(DRE->getDecl())->isStatic()) &&
 6316       ValueDecl *D = cast<ValueDecl>(DRE->getDecl()->getCanonicalDecl());
 6325   S.Diag(DRE->getDecl()->getLocation(), diag::note_template_arg_refers_here);
 7586       if (isa<NonTypeTemplateParmDecl>(DRE->getDecl()))
tools/clang/lib/Sema/SemaTemplateDeduction.cpp
  190     if (auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(DRE->getDecl()))
tools/clang/lib/Sema/SemaTemplateInstantiate.cpp
 1470   NamedDecl *D = E->getDecl();
tools/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
  282       if (auto *PVD = dyn_cast<ParmVarDecl>(DRE->getDecl())) {
  363       if (auto *PVD = dyn_cast<ParmVarDecl>(DRE->getDecl())) {
 3082         cast<DeclRefExpr>(D->getCombinerIn())->getDecl(),
 3083         cast<DeclRefExpr>(NewDRD->getCombinerIn())->getDecl());
 3085         cast<DeclRefExpr>(D->getCombinerOut())->getDecl(),
 3086         cast<DeclRefExpr>(NewDRD->getCombinerOut())->getDecl());
 3098           cast<DeclRefExpr>(D->getInitOrig())->getDecl(),
 3099           cast<DeclRefExpr>(NewDRD->getInitOrig())->getDecl());
 3101           cast<DeclRefExpr>(D->getInitPriv())->getDecl(),
 3102           cast<DeclRefExpr>(NewDRD->getInitPriv())->getDecl());
 3175         cast<DeclRefExpr>(D->getMapperVarRef())->getDecl(),
 3176         cast<DeclRefExpr>(NewDMD->getMapperVarRef())->getDecl());
tools/clang/lib/Sema/SemaTemplateVariadic.cpp
   94       if (E->getDecl()->isParameterPack())
   95         addUnexpanded(E->getDecl(), E->getLocation());
tools/clang/lib/Sema/SemaType.cpp
 7732     if (VarDecl *Var = dyn_cast<VarDecl>(DRE->getDecl())) {
 8354         if (VarDecl *Var = dyn_cast<VarDecl>(DRE->getDecl())) {
tools/clang/lib/Sema/TreeTransform.h
 9269                                                          E->getDecl()));
 9274   if (E->getFoundDecl() != E->getDecl()) {
 9290       ND == E->getDecl() &&
 9292       NameInfo.getName() == E->getDecl()->getDeclName() &&
 9811     if (!Callee || isa<CXXMethodDecl>(Callee->getDecl()))
13265     NamedDecl *ND = cast<DeclRefExpr>(Callee)->getDecl();
tools/clang/lib/Serialization/ASTReaderStmt.cpp
  588   ReadDeclarationNameLoc(E->DNLoc, E->getDecl()->getDeclName());
tools/clang/lib/Serialization/ASTWriterStmt.cpp
  483   Record.push_back(E->getDecl() != E->getFoundDecl());
  494   DeclarationName::NameKind nk = (E->getDecl()->getDeclName().getNameKind());
  497       (E->getDecl() == E->getFoundDecl()) &&
  506   if (E->getDecl() != E->getFoundDecl())
  513   Record.AddDeclRef(E->getDecl());
  515   Record.AddDeclarationNameLoc(E->DNLoc, E->getDecl()->getDeclName());
tools/clang/lib/StaticAnalyzer/Checkers/DeadStoresChecker.cpp
   56       if (const VarDecl *D = dyn_cast<VarDecl>(DR->getDecl()))
  332         if (VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) {
tools/clang/lib/StaticAnalyzer/Core/CheckerHelpers.cpp
   89         VD = dyn_cast_or_null<VarDecl>(DE->getDecl());
tools/clang/tools/extra/clang-tidy/misc/UnusedParametersCheck.cpp
   91     if (const auto *Fn = dyn_cast<FunctionDecl>(DeclRef->getDecl())) {
tools/clang/tools/extra/clang-tidy/modernize/LoopConvertUtils.cpp
   75   if (auto *V = dyn_cast_or_null<VarDecl>(DeclRef->getDecl()))
  128   if (auto *D = dyn_cast<NamedDecl>(DeclRef->getDecl()))
  745   const ValueDecl *TheDecl = E->getDecl();
tools/clang/tools/extra/clang-tidy/modernize/PassByValueCheck.cpp
   88       if (const ParmVarDecl *To = dyn_cast<ParmVarDecl>(D->getDecl())) {
tools/clang/tools/extra/clangd/SemanticHighlighting.cpp
  201       addToken(Ref->getLocation(), Ref->getDecl());
tools/clang/tools/extra/clangd/refactor/tweaks/ExtractFunction.cpp
  481       const Decl *D = DRE->getDecl();
tools/clang/tools/extra/clangd/refactor/tweaks/ExtractVariable.cpp
   77       ReferencedDecls.push_back(DeclRef->getDecl());
tools/clang/tools/extra/unittests/clang-tidy/OverlappingReplacementsTest.cpp
   92         if (const ValueDecl *D = E->getDecl()) {
tools/clang/tools/libclang/CIndex.cpp
 3933     ValueDecl *V = D->getDecl();