Searched refs:DeclRefExpr (Results 1 - 25 of 110) sorted by relevance

12345

/external/clang/lib/StaticAnalyzer/Core/
H A DCheckerHelpers.cpp36 const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(S);
52 const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(S);
/external/clang/lib/StaticAnalyzer/Checkers/
H A DUndefCapturedBlockVarChecker.cpp37 static const DeclRefExpr *FindBlockDeclRefExpr(const Stmt *S,
39 if (const DeclRefExpr *BR = dyn_cast<DeclRefExpr>(S))
46 const DeclRefExpr *BR = FindBlockDeclRefExpr(child, VD);
H A DCStringSyntaxChecker.cpp40 if (const DeclRefExpr *D1 = dyn_cast<DeclRefExpr>(A1->IgnoreParenCasts()))
41 if (const DeclRefExpr *D2 = dyn_cast<DeclRefExpr>(A2->IgnoreParenCasts()))
75 if (const DeclRefExpr *D = dyn_cast<DeclRefExpr>(E->IgnoreParenCasts()))
H A DDeadStoresChecker.cpp54 bool VisitDeclRefExpr(DeclRefExpr *DR) {
229 void CheckDeclRef(const DeclRefExpr *DR, const Expr *Val, DeadStoreKind dsk,
245 const DeclRefExpr *DR;
247 if ((DR = dyn_cast<DeclRefExpr>(BRHS->getLHS()->IgnoreParenCasts())))
251 if ((DR = dyn_cast<DeclRefExpr>(BRHS->getRHS()->IgnoreParenCasts())))
272 if (DeclRefExpr *DR = dyn_cast<DeclRefExpr>(B->getLHS()))
288 if (const DeclRefExpr *RhsDR = dyn_cast<DeclRefExpr>(RHS))
310 if (const DeclRefExpr *D
[all...]
H A DMallocOverflowSecurityChecker.cpp91 else if (isa<DeclRefExpr>(e) || isa<MemberExpr>(e))
135 if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(E)) {
139 if (const DeclRefExpr *DR_i = dyn_cast<DeclRefExpr>(i->variable)) {
H A DIdenticalExprChecker.cpp208 const DeclRefExpr *DeclRef1 = dyn_cast<DeclRefExpr>(LHS);
209 const DeclRefExpr *DeclRef2 = dyn_cast<DeclRefExpr>(RHS);
441 const DeclRefExpr *DeclRef1 = cast<DeclRefExpr>(Stmt1);
442 const DeclRefExpr *DeclRef2 = cast<DeclRefExpr>(Stmt2);
H A DCheckSecuritySyntaxOnly.cpp185 static const DeclRefExpr*
194 if (const DeclRefExpr *lhs = getIncrementedVar(B->getLHS(), x, y))
197 if (const DeclRefExpr *rhs = getIncrementedVar(B->getRHS(), x, y))
203 if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(expr)) {
250 const DeclRefExpr *drLHS =
251 dyn_cast<DeclRefExpr>(B->getLHS()->IgnoreParenLValueCasts());
252 const DeclRefExpr *drRHS =
253 dyn_cast<DeclRefExpr>(B->getRHS()->IgnoreParenLValueCasts());
269 const DeclRefExpr *drIn
[all...]
H A DCheckSizeofPointer.cpp62 if (!isa<DeclRefExpr>(ArgEx->IgnoreParens()))
/external/clang/lib/ARCMigrate/
H A DTransARCAssign.cpp49 DeclRefExpr *declRef = dyn_cast<DeclRefExpr>(E->IgnoreParenCasts());
H A DTransGCCalls.cpp47 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(CEE)) {
H A DTransBlockObjCVariable.cpp52 if (DeclRefExpr *
53 ref = dyn_cast<DeclRefExpr>(castE->getSubExpr())) {
66 bool VisitDeclRefExpr(DeclRefExpr *E) {
H A DTransProtectedScope.cpp27 SmallVectorImpl<DeclRefExpr *> &Refs;
30 LocalRefsCollector(SmallVectorImpl<DeclRefExpr *> &refs)
33 bool VisitDeclRefExpr(DeclRefExpr *E) {
99 SmallVector<DeclRefExpr *, 16> LocalRefs;
182 DeclRefExpr *DRE = LocalRefs[i];
H A DTransAutoreleasePool.cpp57 if (DeclRefExpr *DE = dyn_cast<DeclRefExpr>(instance)) {
189 if (DeclRefExpr *dref = dyn_cast<DeclRefExpr>(bop->getLHS())) {
263 bool VisitDeclRefExpr(DeclRefExpr *E) {
309 isa<DeclRefExpr>(retS->getRetValue()->IgnoreParenCasts())) &&
380 if (DeclRefExpr *dref = dyn_cast<DeclRefExpr>(rec))
/external/clang/lib/CodeGen/
H A DCGCUDARuntime.cpp42 if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(CE->getSubExpr())) {
/external/clang/lib/Analysis/
H A DPseudoConstantAnalysis.cpp68 // Returns a Decl from a (Block)DeclRefExpr (if any)
70 if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(E))
100 // We found a binary operator with a DeclRefExpr on the LHS. We now check
125 // The DeclRefExpr is being assigned to - mark it as non-constant
156 // If we are taking the address of the DeclRefExpr, assume it is
201 const DeclRefExpr *DR = cast<DeclRefExpr>(Head);
H A DLiveVariables.cpp91 llvm::DenseMap<const DeclRefExpr *, unsigned> inAssignment;
209 void VisitDeclRefExpr(DeclRefExpr *DR);
342 if (DeclRefExpr *DR = dyn_cast<DeclRefExpr>(LHS))
371 void TransferFunctions::VisitDeclRefExpr(DeclRefExpr *DR) {
387 DeclRefExpr *DR = nullptr;
394 else if ((DR = dyn_cast<DeclRefExpr>(cast<Expr>(element)->IgnoreParens()))) {
438 if (DeclRefExpr *DR = dyn_cast<DeclRefExpr>(UO->getSubExpr()->IgnoreParens()))
517 // to determine if a DeclRefExpr appear
[all...]
H A DUninitializedValues.cpp268 const DeclRefExpr *dr;
270 FindVarResult(const VarDecl *vd, const DeclRefExpr *dr) : vd(vd), dr(dr) {}
272 const DeclRefExpr *getDeclRefExpr() const { return dr; }
293 if (const DeclRefExpr *DRE =
294 dyn_cast<DeclRefExpr>(stripCasts(DC->getParentASTContext(), E)))
301 /// \brief Classify each DeclRefExpr as an initialization or a use. Any
302 /// DeclRefExpr which isn't explicitly classified will be assumed to have
315 llvm::DenseMap<const DeclRefExpr*, Class> Classification;
334 Class get(const DeclRefExpr *DRE) const {
335 llvm::DenseMap<const DeclRefExpr*, Clas
[all...]
H A DBodyFarm.cpp59 /// Create a new DeclRefExpr for the referenced variable.
60 DeclRefExpr *makeDeclRefExpr(const VarDecl *D);
111 DeclRefExpr *ASTMaker::makeDeclRefExpr(const VarDecl *D) {
112 DeclRefExpr *DR =
113 DeclRefExpr::Create(/* Ctx = */ C,
207 DeclRefExpr *DR = M.makeDeclRefExpr(Block);
270 DeclRefExpr *DR = M.makeDeclRefExpr(PV);
/external/clang/include/clang/Analysis/Analyses/
H A DLiveVariables.h27 class DeclRefExpr;
68 virtual void observerKill(const DeclRefExpr *DR) {}
/external/clang/lib/Sema/
H A DScopeInfo.cpp59 D = cast<DeclRefExpr>(E)->getDecl();
120 const DeclRefExpr *DRE)
171 else if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E))
204 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E))
H A DSemaOpenMP.cpp70 DeclRefExpr *RefExpr;
80 DeclRefExpr *RefExpr;
83 typedef llvm::SmallDenseMap<VarDecl *, DeclRefExpr *, 64> AlignedMapTy;
135 DeclRefExpr *addUniqueAligned(VarDecl *D, DeclRefExpr *NewDE);
138 void addDSA(VarDecl *D, DeclRefExpr *E, OpenMPClauseKind A);
302 DeclRefExpr *DSAStackTy::addUniqueAligned(VarDecl *D, DeclRefExpr *NewDE) {
316 void DSAStackTy::addDSA(VarDecl *D, DeclRefExpr *E, OpenMPClauseKind A) {
495 auto VD = cast<VarDecl>(cast<DeclRefExpr>(VarRe
[all...]
/external/clang/include/clang/AST/
H A DEvaluatedExprVisitor.h38 void VisitDeclRefExpr(DeclRefExpr *E) { }
/external/clang/include/clang/Sema/
H A DScopeInfo.h44 class DeclRefExpr;
198 WeakObjectProfileTy(const DeclRefExpr *RE);
704 assert(isa<DeclRefExpr>(VarExpr) || isa<MemberExpr>(VarExpr));
756 assert(isa<DeclRefExpr>(CapturingVarExpr)
761 assert(isa<DeclRefExpr>(CapturingVarExpr)
/external/lldb/include/lldb/Core/
H A DClangForward.h53 class DeclRefExpr;
/external/clang/lib/Rewrite/Frontend/
H A DRewriteModernObjC.cpp132 SmallVector<DeclRefExpr *, 32> InnerDeclRefs;
134 SmallVector<DeclRefExpr *, 32> BlockDeclRefs;
401 Stmt *RewriteBlockDeclRefExpr(DeclRefExpr *VD);
402 Stmt *RewriteLocalVariableExternalStorage(DeclRefExpr *DRE);
495 const SmallVectorImpl<DeclRefExpr *> &InnerBlockDeclRefs);
508 SmallVectorImpl<DeclRefExpr *> &InnerBlockDeclRefs,
1749 DeclRefExpr *DR = cast<DeclRefExpr>(S->getElement());
2133 DeclRefExpr *DRE =
2134 new (Context) DeclRefExpr(F
[all...]

Completed in 767 milliseconds

12345