Home
last modified time | relevance | path

Searched refs:DeclRefExpr (Results 1 – 25 of 131) sorted by relevance

123456

/freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/
H A DDeadStoresChecker.cpp54 bool VisitDeclRefExpr(DeclRefExpr *DR) { in VisitDeclRefExpr()
230 void CheckDeclRef(const DeclRefExpr *DR, const Expr *Val, DeadStoreKind dsk, in CheckDeclRef()
246 const DeclRefExpr *DR; in isIncrement()
248 if ((DR = dyn_cast<DeclRefExpr>(BRHS->getLHS()->IgnoreParenCasts()))) in isIncrement()
252 if ((DR = dyn_cast<DeclRefExpr>(BRHS->getRHS()->IgnoreParenCasts()))) in isIncrement()
273 if (DeclRefExpr *DR = dyn_cast<DeclRefExpr>(B->getLHS())) in observeStmt()
291 if (const DeclRefExpr *RhsDR = dyn_cast<DeclRefExpr>(RHS)) in observeStmt()
313 if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(Ex)) in observeStmt()
360 if (const DeclRefExpr *DRE = in observeStmt()
361 dyn_cast<DeclRefExpr>(E->IgnoreParenCasts())) in observeStmt()
[all …]
H A DMallocOverflowSecurityChecker.cpp106 else if (isa<DeclRefExpr>(e) || isa<MemberExpr>(e)) in CheckMallocArgument()
144 static const Decl *getDecl(const DeclRefExpr *DR) { return DR->getDecl(); } in getDecl()
164 if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(E)) in CheckExpr()
165 Erase<DeclRefExpr>(DR, PredTrue); in CheckExpr()
221 if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(E)) in CheckAssignmentExpr()
222 Erase<DeclRefExpr>(DR, pred); in CheckAssignmentExpr()
H A DUndefCapturedBlockVarChecker.cpp37 static const DeclRefExpr *FindBlockDeclRefExpr(const Stmt *S, in FindBlockDeclRefExpr()
39 if (const DeclRefExpr *BR = dyn_cast<DeclRefExpr>(S)) in FindBlockDeclRefExpr()
45 if (const DeclRefExpr *BR = FindBlockDeclRefExpr(Child, VD)) in FindBlockDeclRefExpr()
H A DCStringSyntaxChecker.cpp40 if (const auto *D1 = dyn_cast<DeclRefExpr>(A1->IgnoreParenCasts())) in sameDecl()
41 if (const auto *D2 = dyn_cast<DeclRefExpr>(A2->IgnoreParenCasts())) in sameDecl()
74 if (const auto *D = dyn_cast<DeclRefExpr>(E->IgnoreParenCasts())) in getPrintableName()
162 const auto *DstArgDecl = dyn_cast<DeclRefExpr>(DstArg->IgnoreParenImpCasts()); in containsBadStrlcpyStrlcatPattern()
163 const auto *LenArgDecl = dyn_cast<DeclRefExpr>(LenArg->IgnoreParenLValueCasts()); in containsBadStrlcpyStrlcatPattern()
185 DstArgDecl = dyn_cast<DeclRefExpr>(BE->getLHS()->IgnoreParenImpCasts()); in containsBadStrlcpyStrlcatPattern()
H A DIdenticalExprChecker.cpp226 const DeclRefExpr *DeclRef1 = dyn_cast<DeclRefExpr>(LHS); in checkComparisonOp()
227 const DeclRefExpr *DeclRef2 = dyn_cast<DeclRefExpr>(RHS); in checkComparisonOp()
461 const DeclRefExpr *DeclRef1 = cast<DeclRefExpr>(Stmt1); in isIdenticalStmt()
462 const DeclRefExpr *DeclRef2 = cast<DeclRefExpr>(Stmt2); in isIdenticalStmt()
H A DCheckSecuritySyntaxOnly.cpp196 static const DeclRefExpr*
205 if (const DeclRefExpr *lhs = getIncrementedVar(B->getLHS(), x, y)) in getIncrementedVar()
208 if (const DeclRefExpr *rhs = getIncrementedVar(B->getRHS(), x, y)) in getIncrementedVar()
214 if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(expr)) { in getIncrementedVar()
261 const DeclRefExpr *drLHS = in checkLoopConditionForFloat()
262 dyn_cast<DeclRefExpr>(B->getLHS()->IgnoreParenLValueCasts()); in checkLoopConditionForFloat()
263 const DeclRefExpr *drRHS = in checkLoopConditionForFloat()
264 dyn_cast<DeclRefExpr>(B->getRHS()->IgnoreParenLValueCasts()); in checkLoopConditionForFloat()
280 const DeclRefExpr *drInc = getIncrementedVar(increment, vdLHS, vdRHS); in checkLoopConditionForFloat()
288 const DeclRefExpr *drCond = vdLHS == drInc->getDecl() ? drLHS : drRHS; in checkLoopConditionForFloat()
H A DDereferenceChecker.cpp64 const DeclRefExpr *DR = cast<DeclRefExpr>(Ex); in AddDerefSource()
115 if (const auto *DRE = dyn_cast<DeclRefExpr>(E)) in isDeclRefExprToReference()
/freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Core/
H A DCheckerHelpers.cpp39 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-12.1/contrib/llvm/tools/clang/lib/Sema/
H A DScopeInfo.cpp77 D = cast<DeclRefExpr>(E)->getDecl(); in getBaseInfo()
155 const DeclRefExpr *DRE) in WeakObjectProfileTy()
208 else if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) { in markSafeWeakUse()
241 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) in getPotentialVariableCapture()
H A DSemaOpenMP.cpp66 DeclRefExpr *PrivateCopy = nullptr;
4021 DeclRefExpr *
4455 DeclRefExpr *Ref = nullptr; in tryBuildCapture()
9925 DeclRefExpr *Ref = nullptr; in ActOnOpenMPPrivateClause()
10210 DeclRefExpr *Ref = nullptr; in ActOnOpenMPFirstprivateClause()
10355 DeclRefExpr *Ref = nullptr; in ActOnOpenMPLastprivateClause()
10433 DeclRefExpr *Ref = nullptr; in ActOnOpenMPSharedClause()
11407 DeclRefExpr *Ref = nullptr; in actOnOMPReductionKindClause()
11623 DeclRefExpr *Ref = nullptr; in ActOnOpenMPLinearClause()
11843 DeclRefExpr *Ref = nullptr; in ActOnOpenMPAlignedClause()
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/lib/CodeGen/
H A DCGStmtOpenMP.cpp75 DeclRefExpr DRE( in OMPLexicalScope()
175 const Decl *D = cast<DeclRefExpr>(E)->getDecl(); in OMPSimdLexicalScope()
218 if (const auto *OrigDRE = dyn_cast<DeclRefExpr>(E)) { in EmitOMPSharedLValue()
1023 cast<VarDecl>(cast<DeclRefExpr>(*IRef)->getDecl()); in EmitOMPLastprivateClauseFinal()
1674 const DeclRefExpr *Helper) { in EmitOMPHelperVar()
2860 cast<DeclRefExpr>(*IRef)}); in EmitOMPTaskBasedDirective()
3045 auto *OrigRef = DeclRefExpr::Create( in createImplicitFirstprivateForType()
3050 auto *PrivateRef = DeclRefExpr::Create( in createImplicitFirstprivateForType()
3056 auto *InitRef = DeclRefExpr::Create( in createImplicitFirstprivateForType()
3323 *this, cast<DeclRefExpr>( in EmitOMPDistributeLoop()
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/lib/ARCMigrate/
H A DTransProtectedScope.cpp27 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 DTransAutoreleasePool.cpp57 if (DeclRefExpr *DE = dyn_cast<DeclRefExpr>(instance)) { in VisitObjCMessageExpr()
189 if (DeclRefExpr *dref = dyn_cast<DeclRefExpr>(bop->getLHS())) { in VisitCompoundStmt()
263 bool VisitDeclRefExpr(DeclRefExpr *E) { in VisitDeclRefExpr()
309 isa<DeclRefExpr>(retS->getRetValue()->IgnoreParenCasts())) && in handlePoolScope()
380 if (DeclRefExpr *dref = dyn_cast<DeclRefExpr>(rec)) in isPoolDrain()
H A DTransBlockObjCVariable.cpp52 if (DeclRefExpr * in TraverseImplicitCastExpr()
53 ref = dyn_cast<DeclRefExpr>(castE->getSubExpr())) { in TraverseImplicitCastExpr()
66 bool VisitDeclRefExpr(DeclRefExpr *E) { in VisitDeclRefExpr()
H A DTransGCCalls.cpp47 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(CEE)) { in VisitCallExpr()
H A DTransARCAssign.cpp49 DeclRefExpr *declRef = dyn_cast<DeclRefExpr>(E->IgnoreParenCasts()); in VisitBinaryOperator()
H A DTransZeroOutPropsInDealloc.cpp53 DeclRefExpr *refE = dyn_cast<DeclRefExpr>(receiver->IgnoreParenCasts()); in VisitObjCMessageExpr()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Analysis/
H A DUninitializedValues.cpp286 const DeclRefExpr *dr;
291 const DeclRefExpr *getDeclRefExpr() const { return dr; } in getDeclRefExpr()
338 llvm::DenseMap<const DeclRefExpr *, Class> Classification;
357 Class get(const DeclRefExpr *DRE) const { in get()
358 llvm::DenseMap<const DeclRefExpr*, Class>::const_iterator I in get()
373 static const DeclRefExpr *getSelfInitExpr(VarDecl *VD) { in getSelfInitExpr()
378 dyn_cast<DeclRefExpr>(stripCasts(VD->getASTContext(), Init)); in getSelfInitExpr()
427 if (const DeclRefExpr *DRE = Var.getDeclRefExpr()) in classify()
435 if (const DeclRefExpr *DRE = getSelfInitExpr(VD)) in VisitDeclStmt()
532 void VisitDeclRefExpr(DeclRefExpr *dr);
[all …]
H A DLiveVariables.cpp84 llvm::DenseMap<const DeclRefExpr *, unsigned> inAssignment;
215 void VisitDeclRefExpr(DeclRefExpr *DR);
381 if (DeclRefExpr *DR = dyn_cast<DeclRefExpr>(LHS)) { in VisitBinaryOperator()
411 void TransferFunctions::VisitDeclRefExpr(DeclRefExpr *DR) { in VisitDeclRefExpr()
437 DeclRefExpr *DR = nullptr; in VisitObjCForCollectionStmt()
444 else if ((DR = dyn_cast<DeclRefExpr>(cast<Expr>(element)->IgnoreParens()))) { in VisitObjCForCollectionStmt()
488 if (auto *DR = dyn_cast<DeclRefExpr>(UO->getSubExpr()->IgnoreParens())) { in VisitUnaryOperator()
579 dyn_cast<DeclRefExpr>(BO->getLHS()->IgnoreParens())) { in computeLiveness()
H A DBodyFarm.cpp65 DeclRefExpr *makeDeclRefExpr(const VarDecl *D,
139 DeclRefExpr *ASTMaker::makeDeclRefExpr( in makeDeclRefExpr()
144 DeclRefExpr *DR = DeclRefExpr::Create( in makeDeclRefExpr()
255 DeclRefExpr *Call = M.makeDeclRefExpr(Callback); in create_call_once_funcptr_call()
285 DeclRefExpr *callOperatorDeclRef = in create_call_once_lambda_call()
286 DeclRefExpr::Create(/* Ctx =*/ C, in create_call_once_lambda_call()
441 DeclRefExpr *FlagDecl = in create_call_once()
580 DeclRefExpr *DR = M.makeDeclRefExpr(PV); in create_dispatch_sync()
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/Analysis/Analyses/
H A DLiveVariables.h26 class DeclRefExpr; variable
68 virtual void observerKill(const DeclRefExpr *DR) {} in observerKill()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Frontend/Rewrite/
H A DRewriteObjC.cpp1503 DeclRefExpr *DR = cast<DeclRefExpr>(S->getElement()); in RewriteObjCForCollectionStmt()
2012 DeclRefExpr *DRE = new (Context) DeclRefExpr(*Context, FD, false, msgSendType, in SynthesizeCallToFunctionDecl()
2508 DeclRefExpr *DRE = new (Context) in RewriteObjCStringLiteral()
2590 DeclRefExpr *STDRE = in SynthMsgSendStretCallExpr()
2938 DeclRefExpr *DRE = new (Context) DeclRefExpr( in SynthMessageExpr()
3043 DeclRefExpr *DRE = new (Context) DeclRefExpr( in RewriteObjCProtocolExpr()
3654 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(S)) in GetBlockDeclRefExprs()
3676 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(S)) { in GetInnerBlockDeclRefExprs()
3722 if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(BlockExp)) { in SynthesizeBlockCall()
4419 DeclRefExpr *Arg = new (Context) DeclRefExpr( in SynthBlockInitExpr()
[all …]
H A DRewriteModernObjC.cpp2674 DeclRefExpr *DRE = new (Context) DeclRefExpr( in RewriteObjCBoxedExpr()
2717 DeclRefExpr *NSArrayDRE = new (Context) DeclRefExpr( in RewriteObjCArrayLiteralExpr()
2795 DeclRefExpr *DRE = new (Context) DeclRefExpr( in RewriteObjCArrayLiteralExpr()
2838 DeclRefExpr *NSDictDRE = new (Context) DeclRefExpr( in RewriteObjCDictionaryLiteralExpr()
2946 DeclRefExpr *DRE = new (Context) DeclRefExpr( in RewriteObjCDictionaryLiteralExpr()
3513 DeclRefExpr *DRE = new (Context) DeclRefExpr( in SynthMessageExpr()
3591 DeclRefExpr *DRE = new (Context) DeclRefExpr( in RewriteObjCProtocolExpr()
4471 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(S)) in GetBlockDeclRefExprs()
4493 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(S)) { in GetInnerBlockDeclRefExprs()
5286 DeclRefExpr *Arg = new (Context) DeclRefExpr( in SynthBlockInitExpr()
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/lib/AST/
H A DExpr.cpp344 DeclRefExpr::DeclRefExpr(const ASTContext &Ctx, ValueDecl *D, in DeclRefExpr() function in DeclRefExpr
360 DeclRefExpr::DeclRefExpr(const ASTContext &Ctx, in DeclRefExpr() function in DeclRefExpr
406 DeclRefExpr *DeclRefExpr::Create(const ASTContext &Context, in Create()
422 DeclRefExpr *DeclRefExpr::Create(const ASTContext &Context, in Create()
450 DeclRefExpr *DeclRefExpr::CreateEmpty(const ASTContext &Context, in CreateEmpty()
1358 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(CEE)) in getReferencedDeclOfCallee()
1376 const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(ICE->getSubExpr()); in getBuiltinCallee()
2426 const DeclRefExpr *DRE = in isUnusedResultAWarning()
3580 const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E); in isObjCSelfExpr()
3617 if (DeclRefExpr *DeclRef = dyn_cast<DeclRefExpr>(E)) { in getSourceBitField()
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/Sema/
H A DScopeInfo.h269 WeakObjectProfileTy(const DeclRefExpr *RE);
905 assert(isa<DeclRefExpr>(VarExpr) || isa<MemberExpr>(VarExpr)); in addPotentialCapture()
957 assert(isa<DeclRefExpr>(CapturingVarExpr) in markVariableExprAsNonODRUsed()
962 assert(isa<DeclRefExpr>(CapturingVarExpr) in isVariableExprMarkedAsNonODRUsed()

123456