/netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/ |
H A D | DeadStoresChecker.cpp | 55 bool VisitDeclRefExpr(DeclRefExpr *DR) { in VisitDeclRefExpr() 289 void CheckDeclRef(const DeclRefExpr *DR, const Expr *Val, DeadStoreKind dsk, in CheckDeclRef() 305 const DeclRefExpr *DR; in isIncrement() 307 if ((DR = dyn_cast<DeclRefExpr>(BRHS->getLHS()->IgnoreParenCasts()))) in isIncrement() 311 if ((DR = dyn_cast<DeclRefExpr>(BRHS->getRHS()->IgnoreParenCasts()))) in isIncrement() 332 if (DeclRefExpr *DR = dyn_cast<DeclRefExpr>(B->getLHS())) in observeStmt() 350 if (const DeclRefExpr *RhsDR = dyn_cast<DeclRefExpr>(RHS)) in observeStmt() 372 if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(Ex)) in observeStmt() 421 if (const DeclRefExpr *DRE = in observeStmt() 422 dyn_cast<DeclRefExpr>(E->IgnoreParenCasts())) in observeStmt() [all …]
|
H A D | MallocOverflowSecurityChecker.cpp | 105 else if (isa<DeclRefExpr>(e) || isa<MemberExpr>(e)) in CheckMallocArgument() 143 static const Decl *getDecl(const DeclRefExpr *DR) { return DR->getDecl(); } in getDecl() 163 if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(E)) in CheckExpr() 164 Erase<DeclRefExpr>(DR, PredTrue); in CheckExpr() 220 if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(E)) in CheckAssignmentExpr() 221 Erase<DeclRefExpr>(DR, pred); in CheckAssignmentExpr()
|
H A D | UndefCapturedBlockVarChecker.cpp | 36 static const DeclRefExpr *FindBlockDeclRefExpr(const Stmt *S, in FindBlockDeclRefExpr() 38 if (const DeclRefExpr *BR = dyn_cast<DeclRefExpr>(S)) in FindBlockDeclRefExpr() 44 if (const DeclRefExpr *BR = FindBlockDeclRefExpr(Child, VD)) in FindBlockDeclRefExpr()
|
H A D | CStringSyntaxChecker.cpp | 39 if (const auto *D1 = dyn_cast<DeclRefExpr>(A1->IgnoreParenCasts())) in sameDecl() 40 if (const auto *D2 = dyn_cast<DeclRefExpr>(A2->IgnoreParenCasts())) in sameDecl() 73 if (const auto *D = dyn_cast<DeclRefExpr>(E->IgnoreParenCasts())) in getPrintableName() 159 const auto *DstArgDRE = dyn_cast<DeclRefExpr>(DstArg->IgnoreParenImpCasts()); in containsBadStrlcpyStrlcatPattern() 161 dyn_cast<DeclRefExpr>(LenArg->IgnoreParenLValueCasts()); in containsBadStrlcpyStrlcatPattern() 190 DstArgDRE = dyn_cast<DeclRefExpr>(BE->getLHS()->IgnoreParenImpCasts()); in containsBadStrlcpyStrlcatPattern()
|
H A D | IdenticalExprChecker.cpp | 225 const DeclRefExpr *DeclRef1 = dyn_cast<DeclRefExpr>(LHS); in checkComparisonOp() 226 const DeclRefExpr *DeclRef2 = dyn_cast<DeclRefExpr>(RHS); in checkComparisonOp() 462 const DeclRefExpr *DeclRef1 = cast<DeclRefExpr>(Stmt1); in isIdenticalStmt() 463 const DeclRefExpr *DeclRef2 = cast<DeclRefExpr>(Stmt2); in isIdenticalStmt()
|
H A D | CheckSecuritySyntaxOnly.cpp | 228 static const DeclRefExpr* 237 if (const DeclRefExpr *lhs = getIncrementedVar(B->getLHS(), x, y)) in getIncrementedVar() 240 if (const DeclRefExpr *rhs = getIncrementedVar(B->getRHS(), x, y)) in getIncrementedVar() 246 if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(expr)) { in getIncrementedVar() 293 const DeclRefExpr *drLHS = in checkLoopConditionForFloat() 294 dyn_cast<DeclRefExpr>(B->getLHS()->IgnoreParenLValueCasts()); in checkLoopConditionForFloat() 295 const DeclRefExpr *drRHS = in checkLoopConditionForFloat() 296 dyn_cast<DeclRefExpr>(B->getRHS()->IgnoreParenLValueCasts()); in checkLoopConditionForFloat() 312 const DeclRefExpr *drInc = getIncrementedVar(increment, vdLHS, vdRHS); in checkLoopConditionForFloat() 321 const DeclRefExpr *drCond = vdLHS == vdInc ? drLHS : drRHS; in checkLoopConditionForFloat()
|
H A D | DereferenceChecker.cpp | 67 const DeclRefExpr *DR = cast<DeclRefExpr>(Ex); in AddDerefSource() 118 if (const auto *DRE = dyn_cast<DeclRefExpr>(E)) in isDeclRefExprToReference()
|
/netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Core/ |
H A D | CheckerHelpers.cpp | 39 const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(S); in containsEnum() 53 const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(S); in containsStaticLocal() 89 if (auto DE = dyn_cast_or_null<DeclRefExpr>(Assign->getLHS())) in parseAssignment()
|
/netbsd-src/external/apache2/llvm/dist/clang/lib/Analysis/ |
H A D | UninitializedValues.cpp | 224 const DeclRefExpr *dr; 227 FindVarResult(const VarDecl *vd, const DeclRefExpr *dr) : vd(vd), dr(dr) {} in FindVarResult() 229 const DeclRefExpr *getDeclRefExpr() const { return dr; } in getDeclRefExpr() 253 dyn_cast<DeclRefExpr>(stripCasts(DC->getParentASTContext(), E))) in findVar() 277 llvm::DenseMap<const DeclRefExpr *, Class> Classification; 297 Class get(const DeclRefExpr *DRE) const { in get() 298 llvm::DenseMap<const DeclRefExpr*, Class>::const_iterator I in get() 313 static const DeclRefExpr *getSelfInitExpr(VarDecl *VD) { in getSelfInitExpr() 318 dyn_cast<DeclRefExpr>(stripCasts(VD->getASTContext(), Init)); in getSelfInitExpr() 367 if (const DeclRefExpr *DRE = Var.getDeclRefExpr()) in classify() [all …]
|
H A D | CalledOnceCheck.cpp | 285 : public ConstStmtVisitor<DeclRefFinder, const DeclRefExpr *> { 309 static const DeclRefExpr *find(const Expr *E, in find() 314 const DeclRefExpr *VisitDeclRefExpr(const DeclRefExpr *DR) { return DR; } in VisitDeclRefExpr() 316 const DeclRefExpr *VisitUnaryOperator(const UnaryOperator *UO) { in VisitUnaryOperator() 333 const DeclRefExpr *VisitBinaryOperator(const BinaryOperator *BO) { in VisitBinaryOperator() 340 const DeclRefExpr *LHS = Visit(BO->getLHS()); in VisitBinaryOperator() 348 const DeclRefExpr *VisitOpaqueValueExpr(const OpaqueValueExpr *OVE) { in VisitOpaqueValueExpr() 352 const DeclRefExpr *VisitCallExpr(const CallExpr *CE) { in VisitCallExpr() 363 const DeclRefExpr *Candidate = Visit(CE->getArg(0)); in VisitCallExpr() 375 const DeclRefExpr *VisitExpr(const Expr *E) { in VisitExpr() [all …]
|
H A D | LiveVariables.cpp | 36 llvm::DenseMap<const DeclRefExpr *, unsigned> inAssignment; 166 void VisitDeclRefExpr(DeclRefExpr *DR); 329 if (const auto *DR = dyn_cast<DeclRefExpr>(B->getLHS()->IgnoreParens())) { in VisitBinaryOperator() 340 if (DeclRefExpr *DR = dyn_cast<DeclRefExpr>(LHS)) { in VisitBinaryOperator() 370 void TransferFunctions::VisitDeclRefExpr(DeclRefExpr *DR) { in VisitDeclRefExpr() 396 DeclRefExpr *DR = nullptr; in VisitObjCForCollectionStmt() 403 else if ((DR = dyn_cast<DeclRefExpr>(cast<Expr>(element)->IgnoreParens()))) { in VisitObjCForCollectionStmt() 447 if (auto *DR = dyn_cast<DeclRefExpr>(UO->getSubExpr()->IgnoreParens())) { in VisitUnaryOperator()
|
H A D | BodyFarm.cpp | 64 DeclRefExpr *makeDeclRefExpr(const VarDecl *D, 136 DeclRefExpr *ASTMaker::makeDeclRefExpr( in makeDeclRefExpr() 141 DeclRefExpr *DR = DeclRefExpr::Create( in makeDeclRefExpr() 250 DeclRefExpr *Call = M.makeDeclRefExpr(Callback); in create_call_once_funcptr_call() 280 DeclRefExpr *callOperatorDeclRef = in create_call_once_lambda_call() 281 DeclRefExpr::Create(/* Ctx =*/ C, in create_call_once_lambda_call() 437 DeclRefExpr *FlagDecl = in create_call_once() 581 DeclRefExpr *DR = M.makeDeclRefExpr(PV); in create_dispatch_sync()
|
/netbsd-src/external/apache2/llvm/dist/clang/lib/ARCMigrate/ |
H A D | TransProtectedScope.cpp | 27 SmallVectorImpl<DeclRefExpr *> &Refs; 30 LocalRefsCollector(SmallVectorImpl<DeclRefExpr *> &refs) in LocalRefsCollector() 33 bool VisitDeclRefExpr(DeclRefExpr *E) { in VisitDeclRefExpr() 100 SmallVector<DeclRefExpr *, 16> LocalRefs; 183 DeclRefExpr *DRE = LocalRefs[i]; in hasVarReferencedOutside()
|
H A D | TransAutoreleasePool.cpp | 56 if (DeclRefExpr *DE = dyn_cast<DeclRefExpr>(instance)) { in VisitObjCMessageExpr() 188 if (DeclRefExpr *dref = dyn_cast<DeclRefExpr>(bop->getLHS())) { in VisitCompoundStmt() 262 bool VisitDeclRefExpr(DeclRefExpr *E) { in VisitDeclRefExpr() 308 isa<DeclRefExpr>(retS->getRetValue()->IgnoreParenCasts())) && in handlePoolScope() 379 if (DeclRefExpr *dref = dyn_cast<DeclRefExpr>(rec)) in isPoolDrain()
|
H A D | TransBlockObjCVariable.cpp | 51 if (DeclRefExpr * in TraverseImplicitCastExpr() 52 ref = dyn_cast<DeclRefExpr>(castE->getSubExpr())) { in TraverseImplicitCastExpr() 65 bool VisitDeclRefExpr(DeclRefExpr *E) { in VisitDeclRefExpr()
|
H A D | TransGCCalls.cpp | 46 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(CEE)) { in VisitCallExpr()
|
H A D | TransARCAssign.cpp | 48 DeclRefExpr *declRef = dyn_cast<DeclRefExpr>(E->IgnoreParenCasts()); in VisitBinaryOperator()
|
H A D | TransZeroOutPropsInDealloc.cpp | 52 DeclRefExpr *refE = dyn_cast<DeclRefExpr>(receiver->IgnoreParenCasts()); in VisitObjCMessageExpr()
|
/netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/ |
H A D | CGStmtOpenMP.cpp | 88 DeclRefExpr DRE( in OMPLexicalScope() 142 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl()); in emitPreInitStmt() 151 cast<VarDecl>(cast<DeclRefExpr>(IRef)->getDecl()); in emitPreInitStmt() 226 const Decl *D = cast<DeclRefExpr>(E)->getDecl(); in OMPSimdLexicalScope() 242 CGF.EmitVarDecl(*cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl())); in OMPSimdLexicalScope() 251 CopyArrayTemps.insert(cast<DeclRefExpr>(E)->getDecl()); in OMPSimdLexicalScope() 262 DeclRefExpr DRE(CGF.getContext(), const_cast<VarDecl *>(VD), in OMPSimdLexicalScope() 286 if (const auto *OrigDRE = dyn_cast<DeclRefExpr>(E)) { in EmitOMPSharedLValue() 293 DeclRefExpr DRE(getContext(), const_cast<VarDecl *>(OrigVD), IsCaptured, in EmitOMPSharedLValue() 795 cast<VarDecl>(cast<DeclRefExpr>(D)->getDecl())->getCanonicalDecl(), in EmitOMPFirstprivateClause() [all …]
|
/netbsd-src/external/apache2/llvm/dist/clang/lib/Sema/ |
H A D | ScopeInfo.cpp | 77 D = cast<DeclRefExpr>(E)->getDecl(); in getBaseInfo() 140 const DeclRefExpr *DRE) in WeakObjectProfileTy() 193 else if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) { in markSafeWeakUse() 236 if (auto *DRE = dyn_cast<DeclRefExpr>(E)) { in visitPotentialCaptures()
|
H A D | SemaOpenMP.cpp | 72 DeclRefExpr *PrivateCopy = nullptr; 77 const Expr *RefExpr, DeclRefExpr *PrivateCopy, in DSAVarData() 105 DeclRefExpr *PrivateCopy = nullptr; 190 llvm::SmallVector<DeclRefExpr *, 4> DeclareTargetLinkVarDecls; 522 DeclRefExpr *PrivateCopy = nullptr, unsigned Modifier = 0, 560 cast<DeclRefExpr>(getStackElemAtLevel(Level).TaskgroupReductionRef) in isTaskgroupReductionRef() 1029 void addToParentTargetRegionLinkGlobals(DeclRefExpr *E) { in addToParentTargetRegionLinkGlobals() 1043 ArrayRef<DeclRefExpr *> getLinkGlobals() const { in getLinkGlobals() 1357 DeclRefExpr *PrivateCopy, unsigned Modifier, in addDSA() 1397 DeclRefExpr *OrigRef = nullptr) { in buildVarDecl() [all …]
|
/netbsd-src/external/apache2/llvm/dist/clang/lib/Frontend/Rewrite/ |
H A D | RewriteObjC.cpp | 125 SmallVector<DeclRefExpr *, 32> InnerDeclRefs; 127 SmallVector<DeclRefExpr *, 32> BlockDeclRefs; 318 Stmt *RewriteBlockDeclRefExpr(DeclRefExpr *VD); 319 Stmt *RewriteLocalVariableExternalStorage(DeclRefExpr *DRE); 391 const SmallVectorImpl<DeclRefExpr *> &InnerBlockDeclRefs); 405 SmallVectorImpl<DeclRefExpr *> &InnerBlockDeclRefs, 1511 DeclRefExpr *DR = cast<DeclRefExpr>(S->getElement()); in RewriteObjCForCollectionStmt() 2020 DeclRefExpr *DRE = new (Context) DeclRefExpr(*Context, FD, false, msgSendType, in SynthesizeCallToFunctionDecl() 2517 DeclRefExpr *DRE = new (Context) in RewriteObjCStringLiteral() 2518 DeclRefExpr(*Context, NewVD, false, strType, VK_LValue, SourceLocation()); in RewriteObjCStringLiteral() [all …]
|
H A D | RewriteModernObjC.cpp | 134 SmallVector<DeclRefExpr *, 32> InnerDeclRefs; 136 SmallVector<DeclRefExpr *, 32> BlockDeclRefs; 390 Stmt *RewriteBlockDeclRefExpr(DeclRefExpr *VD); 391 Stmt *RewriteLocalVariableExternalStorage(DeclRefExpr *DRE); 481 const SmallVectorImpl<DeclRefExpr *> &InnerBlockDeclRefs); 494 SmallVectorImpl<DeclRefExpr *> &InnerBlockDeclRefs, 1718 DeclRefExpr *DR = cast<DeclRefExpr>(S->getElement()); in RewriteObjCForCollectionStmt() 2103 DeclRefExpr *DRE = new (Context) DeclRefExpr(*Context, FD, false, msgSendType, in SynthesizeCallToFunctionDecl() 2590 DeclRefExpr *DRE = new (Context) in RewriteObjCStringLiteral() 2591 DeclRefExpr(*Context, NewVD, false, strType, VK_LValue, SourceLocation()); in RewriteObjCStringLiteral() [all …]
|
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Analysis/Analyses/ |
H A D | LiveVariables.h | 25 class DeclRefExpr; variable 67 virtual void observerKill(const DeclRefExpr *DR) {} in observerKill()
|
/netbsd-src/external/apache2/llvm/dist/clang/lib/AST/ |
H A D | Expr.cpp | 381 DeclRefExpr::DeclRefExpr(const ASTContext &Ctx, ValueDecl *D, in DeclRefExpr() function in DeclRefExpr 398 DeclRefExpr::DeclRefExpr(const ASTContext &Ctx, in DeclRefExpr() function in DeclRefExpr 435 DeclRefExpr *DeclRefExpr::Create(const ASTContext &Context, in Create() 449 DeclRefExpr *DeclRefExpr::Create(const ASTContext &Context, in Create() 470 void *Mem = Context.Allocate(Size, alignof(DeclRefExpr)); in Create() 471 return new (Mem) DeclRefExpr(Context, QualifierLoc, TemplateKWLoc, D, in Create() 476 DeclRefExpr *DeclRefExpr::CreateEmpty(const ASTContext &Context, in CreateEmpty() 487 void *Mem = Context.Allocate(Size, alignof(DeclRefExpr)); in CreateEmpty() 488 return new (Mem) DeclRefExpr(EmptyShell()); in CreateEmpty() 491 void DeclRefExpr::setDecl(ValueDecl *NewD) { in setDecl() [all …]
|