| /freebsd-13.1/contrib/llvm-project/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()
|
| /freebsd-13.1/contrib/llvm-project/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()
|
| /freebsd-13.1/contrib/llvm-project/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()
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/Analysis/ |
| H A D | UninitializedValues.cpp | 224 const DeclRefExpr *dr; 229 const DeclRefExpr *getDeclRefExpr() const { return dr; } in getDeclRefExpr() 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() 375 if (const DeclRefExpr *DRE = getSelfInitExpr(VD)) in VisitDeclStmt() 489 void VisitDeclRefExpr(DeclRefExpr *dr); [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() 340 const DeclRefExpr *LHS = Visit(BO->getLHS()); in VisitBinaryOperator() 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() 392 const DeclRefExpr *findDeclRefExpr(const Expr *In, in findDeclRefExpr() 400 if (const DeclRefExpr *DR = in findReferencedParmVarDecl() [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()
|
| /freebsd-13.1/contrib/llvm-project/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 | 7282 DeclRefExpr * 7841 DeclRefExpr *Ref = nullptr; in tryBuildCapture() 12660 DeclRefExpr *IterVarRef = cast<DeclRefExpr>(LoopHelper.IterationVarRef); in ActOnOpenMPTileDirective() 12783 DeclRefExpr *OrigCntVar = cast<DeclRefExpr>(LoopHelper.Counters[0]); in ActOnOpenMPTileDirective() 15722 DeclRefExpr *Ref = nullptr; in ActOnOpenMPPrivateClause() 16017 DeclRefExpr *Ref = nullptr; in ActOnOpenMPFirstprivateClause() 16185 DeclRefExpr *Ref = nullptr; in ActOnOpenMPLastprivateClause() 16264 DeclRefExpr *Ref = nullptr; in ActOnOpenMPSharedClause() 17368 DeclRefExpr *Ref = nullptr; in actOnOMPReductionKindClause() 17621 DeclRefExpr *Ref = nullptr; in ActOnOpenMPLinearClause() [all …]
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGStmtOpenMP.cpp | 88 DeclRefExpr DRE( in OMPLexicalScope() 228 const Decl *D = cast<DeclRefExpr>(E)->getDecl(); in OMPSimdLexicalScope() 288 if (const auto *OrigDRE = dyn_cast<DeclRefExpr>(E)) { in EmitOMPSharedLValue() 2018 const DeclRefExpr *LoopVarRef = S->getLoopVarRef(); in EmitOMPCanonicalLoop() 4336 cast<DeclRefExpr>(*IRef))); in EmitOMPTaskBasedDirective() 4585 auto *OrigRef = DeclRefExpr::Create( in createImplicitFirstprivateForType() 4590 auto *PrivateRef = DeclRefExpr::Create( in createImplicitFirstprivateForType() 4596 auto *InitRef = DeclRefExpr::Create( in createImplicitFirstprivateForType() 5110 *this, cast<DeclRefExpr>( in EmitOMPDistributeLoop() 5115 *this, cast<DeclRefExpr>( in EmitOMPDistributeLoop() [all …]
|
| /freebsd-13.1/contrib/llvm-project/clang/include/clang/Analysis/Analyses/ |
| H A D | LiveVariables.h | 25 class DeclRefExpr; variable 67 virtual void observerKill(const DeclRefExpr *DR) {} in observerKill()
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/Frontend/Rewrite/ |
| H A D | RewriteObjC.cpp | 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() 2600 DeclRefExpr *STDRE = in SynthMsgSendStretCallExpr() 2941 DeclRefExpr *DRE = new (Context) DeclRefExpr( in SynthMessageExpr() 3043 DeclRefExpr *DRE = new (Context) DeclRefExpr( in RewriteObjCProtocolExpr() 3655 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(S)) in GetBlockDeclRefExprs() 3677 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(S)) { in GetInnerBlockDeclRefExprs() 3723 if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(BlockExp)) { in SynthesizeBlockCall() 4417 DeclRefExpr *Arg = new (Context) DeclRefExpr( in SynthBlockInitExpr() [all …]
|
| H A D | RewriteModernObjC.cpp | 2679 DeclRefExpr *DRE = new (Context) DeclRefExpr( in RewriteObjCBoxedExpr() 2722 DeclRefExpr *NSArrayDRE = new (Context) DeclRefExpr( in RewriteObjCArrayLiteralExpr() 2800 DeclRefExpr *DRE = new (Context) DeclRefExpr( in RewriteObjCArrayLiteralExpr() 2843 DeclRefExpr *NSDictDRE = new (Context) DeclRefExpr( in RewriteObjCDictionaryLiteralExpr() 2952 DeclRefExpr *DRE = new (Context) DeclRefExpr( in RewriteObjCDictionaryLiteralExpr() 3511 DeclRefExpr *DRE = new (Context) DeclRefExpr( in SynthMessageExpr() 3589 DeclRefExpr *DRE = new (Context) DeclRefExpr( in RewriteObjCProtocolExpr() 4468 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(S)) in GetBlockDeclRefExprs() 4490 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(S)) { in GetInnerBlockDeclRefExprs() 5279 DeclRefExpr *Arg = new (Context) DeclRefExpr( in SynthBlockInitExpr() [all …]
|
| /freebsd-13.1/contrib/llvm-project/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() 476 DeclRefExpr *DeclRefExpr::CreateEmpty(const ASTContext &Context, in CreateEmpty() 491 void DeclRefExpr::setDecl(ValueDecl *NewD) { in setDecl() 1499 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(CEE)) in getReferencedDeclOfCallee() 2420 if (isa<DeclRefExpr>(E)) in isReadIfDiscardedInCPlusPlus11() 3899 const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E); in isObjCSelfExpr() 3936 if (DeclRefExpr *DeclRef = dyn_cast<DeclRefExpr>(E)) { in getSourceBitField() [all …]
|