HomeSort by: relevance | last modified time | path
    Searched refs:DeclRefExpr (Results 1 - 25 of 146) sorted by relevancy

1 2 3 4 5 6

  /src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/
UndefCapturedBlockVarChecker.cpp 36 static const DeclRefExpr *FindBlockDeclRefExpr(const Stmt *S,
38 if (const DeclRefExpr *BR = dyn_cast<DeclRefExpr>(S))
44 if (const DeclRefExpr *BR = FindBlockDeclRefExpr(Child, VD))
DeadStoresChecker.cpp 55 bool VisitDeclRefExpr(DeclRefExpr *DR) {
289 void CheckDeclRef(const DeclRefExpr *DR, const Expr *Val, DeadStoreKind dsk,
305 const DeclRefExpr *DR;
307 if ((DR = dyn_cast<DeclRefExpr>(BRHS->getLHS()->IgnoreParenCasts())))
311 if ((DR = dyn_cast<DeclRefExpr>(BRHS->getRHS()->IgnoreParenCasts())))
332 if (DeclRefExpr *DR = dyn_cast<DeclRefExpr>(B->getLHS()))
350 if (const DeclRefExpr *RhsDR = dyn_cast<DeclRefExpr>(RHS))
372 if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(Ex)
    [all...]
MallocOverflowSecurityChecker.cpp 105 else if (isa<DeclRefExpr>(e) || isa<MemberExpr>(e))
143 static const Decl *getDecl(const DeclRefExpr *DR) { return DR->getDecl(); }
163 if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(E))
164 Erase<DeclRefExpr>(DR, PredTrue);
220 if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(E))
221 Erase<DeclRefExpr>(DR, pred);
CStringSyntaxChecker.cpp 39 if (const auto *D1 = dyn_cast<DeclRefExpr>(A1->IgnoreParenCasts()))
40 if (const auto *D2 = dyn_cast<DeclRefExpr>(A2->IgnoreParenCasts()))
73 if (const auto *D = dyn_cast<DeclRefExpr>(E->IgnoreParenCasts()))
159 const auto *DstArgDRE = dyn_cast<DeclRefExpr>(DstArg->IgnoreParenImpCasts());
161 dyn_cast<DeclRefExpr>(LenArg->IgnoreParenLValueCasts());
190 DstArgDRE = dyn_cast<DeclRefExpr>(BE->getLHS()->IgnoreParenImpCasts());
CheckSizeofPointer.cpp 61 if (!isa<DeclRefExpr>(ArgEx->IgnoreParens()))
IdenticalExprChecker.cpp 225 const DeclRefExpr *DeclRef1 = dyn_cast<DeclRefExpr>(LHS);
226 const DeclRefExpr *DeclRef2 = dyn_cast<DeclRefExpr>(RHS);
462 const DeclRefExpr *DeclRef1 = cast<DeclRefExpr>(Stmt1);
463 const DeclRefExpr *DeclRef2 = cast<DeclRefExpr>(Stmt2);
CheckSecuritySyntaxOnly.cpp 228 static const DeclRefExpr*
237 if (const DeclRefExpr *lhs = getIncrementedVar(B->getLHS(), x, y))
240 if (const DeclRefExpr *rhs = getIncrementedVar(B->getRHS(), x, y))
246 if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(expr)) {
293 const DeclRefExpr *drLHS =
294 dyn_cast<DeclRefExpr>(B->getLHS()->IgnoreParenLValueCasts());
295 const DeclRefExpr *drRHS =
296 dyn_cast<DeclRefExpr>(B->getRHS()->IgnoreParenLValueCasts());
312 const DeclRefExpr *drInc = getIncrementedVar(increment, vdLHS, vdRHS)
    [all...]
DereferenceChecker.cpp 67 const DeclRefExpr *DR = cast<DeclRefExpr>(Ex);
118 if (const auto *DRE = dyn_cast<DeclRefExpr>(E))
CastToStructChecker.cpp 79 if (const auto *SE = dyn_cast<DeclRefExpr>(U->getSubExpr()))
  /src/external/apache2/llvm/dist/clang/lib/ARCMigrate/
TransARCAssign.cpp 48 DeclRefExpr *declRef = dyn_cast<DeclRefExpr>(E->IgnoreParenCasts());
TransGCCalls.cpp 46 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(CEE)) {
TransBlockObjCVariable.cpp 51 if (DeclRefExpr *
52 ref = dyn_cast<DeclRefExpr>(castE->getSubExpr())) {
65 bool VisitDeclRefExpr(DeclRefExpr *E) {
TransProtectedScope.cpp 27 SmallVectorImpl<DeclRefExpr *> &Refs;
30 LocalRefsCollector(SmallVectorImpl<DeclRefExpr *> &refs)
33 bool VisitDeclRefExpr(DeclRefExpr *E) {
100 SmallVector<DeclRefExpr *, 16> LocalRefs;
183 DeclRefExpr *DRE = LocalRefs[i];
TransAutoreleasePool.cpp 56 if (DeclRefExpr *DE = dyn_cast<DeclRefExpr>(instance)) {
188 if (DeclRefExpr *dref = dyn_cast<DeclRefExpr>(bop->getLHS())) {
262 bool VisitDeclRefExpr(DeclRefExpr *E) {
308 isa<DeclRefExpr>(retS->getRetValue()->IgnoreParenCasts())) &&
379 if (DeclRefExpr *dref = dyn_cast<DeclRefExpr>(rec))
  /src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Core/
CheckerHelpers.cpp 39 const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(S);
53 const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(S);
89 if (auto DE = dyn_cast_or_null<DeclRefExpr>(Assign->getLHS()))
  /src/external/apache2/llvm/dist/clang/include/clang/Analysis/Analyses/
LiveVariables.h 25 class DeclRefExpr;
67 virtual void observerKill(const DeclRefExpr *DR) {}
  /src/external/apache2/llvm/dist/clang/lib/Sema/
ScopeInfo.cpp 77 D = cast<DeclRefExpr>(E)->getDecl();
140 const DeclRefExpr *DRE)
193 else if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) {
236 if (auto *DRE = dyn_cast<DeclRefExpr>(E)) {
UsedDeclVisitor.h 32 void VisitDeclRefExpr(DeclRefExpr *E) {
  /src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/WebKit/
ASTUtils.cpp 84 if (auto *Ref = dyn_cast<DeclRefExpr>(E)) {
  /src/external/apache2/llvm/dist/clang/lib/Analysis/
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())) {
340 if (DeclRefExpr *DR = dyn_cast<DeclRefExpr>(LHS)) {
370 void TransferFunctions::VisitDeclRefExpr(DeclRefExpr *DR) {
396 DeclRefExpr *DR = nullptr;
403 else if ((DR = dyn_cast<DeclRefExpr>(cast<Expr>(element)->IgnoreParens()))) {
447 if (auto *DR = dyn_cast<DeclRefExpr>(UO->getSubExpr()->IgnoreParens())) {
CalledOnceCheck.cpp 279 /// A simple class that finds DeclRefExpr in the given expression.
281 /// However, we don't want to find ANY nested DeclRefExpr skipping whatever
285 : public ConstStmtVisitor<DeclRefFinder, const DeclRefExpr *> {
287 /// Find a DeclRefExpr in the given expression.
293 /// that DeclRefExpr nested in E is used as an argument?
302 /// DeclRefExpr is being checked?
309 static const DeclRefExpr *find(const Expr *E,
314 const DeclRefExpr *VisitDeclRefExpr(const DeclRefExpr *DR) { return DR; }
316 const DeclRefExpr *VisitUnaryOperator(const UnaryOperator *UO)
    [all...]
UninitializedValues.cpp 224 const DeclRefExpr *dr;
227 FindVarResult(const VarDecl *vd, const DeclRefExpr *dr) : vd(vd), dr(dr) {}
229 const DeclRefExpr *getDeclRefExpr() const { return dr; }
253 dyn_cast<DeclRefExpr>(stripCasts(DC->getParentASTContext(), E)))
262 /// Classify each DeclRefExpr as an initialization or a use. Any
263 /// DeclRefExpr which isn't explicitly classified will be assumed to have
277 llvm::DenseMap<const DeclRefExpr *, Class> Classification;
297 Class get(const DeclRefExpr *DRE) const {
298 llvm::DenseMap<const DeclRefExpr*, Class>::const_iterator I
313 static const DeclRefExpr *getSelfInitExpr(VarDecl *VD)
    [all...]
BodyFarm.cpp 63 /// Create a new DeclRefExpr for the referenced variable.
64 DeclRefExpr *makeDeclRefExpr(const VarDecl *D,
80 /// DeclRefExpr in the process.
136 DeclRefExpr *ASTMaker::makeDeclRefExpr(
141 DeclRefExpr *DR = DeclRefExpr::Create(
250 DeclRefExpr *Call = M.makeDeclRefExpr(Callback);
280 DeclRefExpr *callOperatorDeclRef =
281 DeclRefExpr::Create(/* Ctx =*/ C,
437 DeclRefExpr *FlagDecl
    [all...]
  /src/external/apache2/llvm/dist/clang/lib/CodeGen/
CGStmtOpenMP.cpp 88 DeclRefExpr DRE(
142 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl());
151 cast<VarDecl>(cast<DeclRefExpr>(IRef)->getDecl());
226 const Decl *D = cast<DeclRefExpr>(E)->getDecl();
242 CGF.EmitVarDecl(*cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl()));
251 CopyArrayTemps.insert(cast<DeclRefExpr>(E)->getDecl());
262 DeclRefExpr DRE(CGF.getContext(), const_cast<VarDecl *>(VD),
286 if (const auto *OrigDRE = dyn_cast<DeclRefExpr>(E)) {
293 DeclRefExpr DRE(getContext(), const_cast<VarDecl *>(OrigVD), IsCaptured,
795 cast<VarDecl>(cast<DeclRefExpr>(D)->getDecl())->getCanonicalDecl()
    [all...]
  /src/external/apache2/llvm/dist/clang/include/clang/AST/
EvaluatedExprVisitor.h 44 void VisitDeclRefExpr(PTR(DeclRefExpr) E) { }

Completed in 59 milliseconds

1 2 3 4 5 6