Home
last modified time | relevance | path

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

12345

/external/clang/test/Index/
Dannotate-subscripting.m39 // CHECK: Identifier: "array" [24:3 - 24:8] DeclRefExpr=array:23:19
52 // CHECK: Identifier: "p" [25:21 - 25:22] DeclRefExpr=p:22:28
54 // CHECK: Identifier: "p" [25:24 - 25:25] DeclRefExpr=p:22:28
58 // CHECK: Identifier: "array" [26:10 - 26:15] DeclRefExpr=array:23:19
60 // CHECK: Identifier: "index" [26:16 - 26:21] DeclRefExpr=index:22:18
64 // CHECK: Identifier: "oldObject" [33:3 - 33:12] DeclRefExpr=oldObject:32:17
66 // CHECK: Identifier: "dictionary" [33:15 - 33:25] DeclRefExpr=dictionary:30:24
68 // CHECK: Identifier: "key" [33:26 - 33:29] DeclRefExpr=key:31:13
71 // CHECK: Identifier: "dictionary" [34:3 - 34:13] DeclRefExpr=dictionary:30:24
73 // CHECK: Identifier: "key" [34:14 - 34:17] DeclRefExpr=key:31:13
[all …]
Dfile-refs-subscripting.m43 // CHECK-NEXT: DeclRefExpr=index:22:18 =[26:16 - 26:21]
48 // CHECK-NEXT: DeclRefExpr=p:22:28 =[25:21 - 25:22]
49 // CHECK-NEXT: DeclRefExpr=p:22:28 =[25:24 - 25:25]
52 // CHECK-NEXT: DeclRefExpr=key:31:13
54 // CHECK-NEXT: DeclRefExpr=key:31:13 =[33:26 - 33:29]
55 // CHECK-NEXT: DeclRefExpr=key:31:13 =[34:14 - 34:17]
56 // CHECK-NEXT: DeclRefExpr=key:31:13 =[35:27 - 35:30]
57 // CHECK-NEXT: DeclRefExpr=key:31:13 =[35:43 - 35:46]
60 // CHECK-NEXT: DeclRefExpr=newObject:32:6
62 // CHECK-NEXT: DeclRefExpr=newObject:32:6 =[34:21 - 34:30]
[all …]
Dindex-subscripting-literals.m44 …ference]: kind: variable | name: idx | USR: c:@idx | lang: C | cursor: DeclRefExpr=idx:22:5 | loc:…
45 …tyReference]: kind: variable | name: p | USR: c:@p | lang: C | cursor: DeclRefExpr=p:23:4 | loc: 2…
49 …tyReference]: kind: variable | name: p | USR: c:@p | lang: C | cursor: DeclRefExpr=p:23:4 | loc: 2…
50 …tyReference]: kind: variable | name: p | USR: c:@p | lang: C | cursor: DeclRefExpr=p:23:4 | loc: 2…
51 …ference]: kind: variable | name: idx | USR: c:@idx | lang: C | cursor: DeclRefExpr=idx:22:5 | loc:…
56 …ference]: kind: variable | name: key | USR: c:@key | lang: C | cursor: DeclRefExpr=key:32:11 | loc…
58 …ference]: kind: variable | name: key | USR: c:@key | lang: C | cursor: DeclRefExpr=key:32:11 | loc…
59 …nd: variable | name: newObject | USR: c:@newObject | lang: C | cursor: DeclRefExpr=newObject:33:4 …
63 …ference]: kind: variable | name: key | USR: c:@key | lang: C | cursor: DeclRefExpr=key:32:11 | loc…
64 …nd: variable | name: newObject | USR: c:@newObject | lang: C | cursor: DeclRefExpr=newObject:33:4 …
[all …]
Dannotate-literals.m47 // CHECK-LITERALS: Identifier: "o1" [33:19 - 33:21] DeclRefExpr=o1:32:30
49 // CHECK-LITERALS: Identifier: "o2" [33:23 - 33:25] DeclRefExpr=o2:32:44
57 // CHECK-LITERALS: Identifier: "k1" [34:16 - 34:18] DeclRefExpr=k1:32:23
59 // CHECK-LITERALS: Identifier: "o1" [34:21 - 34:23] DeclRefExpr=o1:32:30
61 // CHECK-LITERALS: Identifier: "k2" [35:16 - 35:18] DeclRefExpr=k2:32:37
63 // CHECK-LITERALS: Identifier: "o2" [35:21 - 35:23] DeclRefExpr=o2:32:44
65 // CHECK-LITERALS: Identifier: "k3" [36:16 - 36:18] DeclRefExpr=k3:32:51
Dc-index-getCursor-test.m122 // CHECK: [46:10 - 46:13] DeclRefExpr=bee:45:8
141 // CHECK: [49:2 - 49:3] DeclRefExpr=d:48:13
143 // CHECK: [49:6 - 49:7] DeclRefExpr=c:47:12
146 // CHECK: [50:3 - 50:4] DeclRefExpr=d:48:13
150 // CHECK: [51:3 - 51:6] DeclRefExpr=bee:45:8
153 // CHECK: [51:27 - 51:30] DeclRefExpr=bee:45:8
157 // CHECK: [52:3 - 52:7] DeclRefExpr=main:44:5
159 // CHECK: [52:8 - 52:16] DeclRefExpr=someEnum:41:3
162 // CHECK: [52:33 - 52:36] DeclRefExpr=bee:45:8
Dc-index-api-loadTU-test.m121 // CHECK: c-index-api-loadTU-test.m:48:10: DeclRefExpr=bee:47:8 Extent=[48:10 - 48:13]
134 // CHECK: c-index-api-loadTU-test.m:51:2: DeclRefExpr=d:50:13 Extent=[51:2 - 51:3]
137 // CHECK: c-index-api-loadTU-test.m:51:6: DeclRefExpr=c:49:12 Extent=[51:6 - 51:7]
140 // CHECK: c-index-api-loadTU-test.m:52:3: DeclRefExpr=d:50:13 Extent=[52:3 - 52:4]
143 // CHECK: c-index-api-loadTU-test.m:53:3: DeclRefExpr=bee:47:8 Extent=[53:3 - 53:6]
146 // CHECK: c-index-api-loadTU-test.m:53:27: DeclRefExpr=bee:47:8 Extent=[53:27 - 53:30]
149 // CHECK: c-index-api-loadTU-test.m:54:3: DeclRefExpr=main:46:5 Extent=[54:3 - 54:7]
150 // CHECK: c-index-api-loadTU-test.m:54:8: DeclRefExpr=someEnum:43:3 Extent=[54:8 - 54:16]
153 // CHECK: c-index-api-loadTU-test.m:54:33: DeclRefExpr=bee:47:8 Extent=[54:33 - 54:36]
/external/clang/lib/StaticAnalyzer/Checkers/
DDeadStoresChecker.cpp55 bool VisitDeclRefExpr(DeclRefExpr *DR) { in VisitDeclRefExpr()
222 void CheckDeclRef(const DeclRefExpr *DR, const Expr *Val, DeadStoreKind dsk, in CheckDeclRef()
238 const DeclRefExpr *DR; in isIncrement()
240 if ((DR = dyn_cast<DeclRefExpr>(BRHS->getLHS()->IgnoreParenCasts()))) in isIncrement()
244 if ((DR = dyn_cast<DeclRefExpr>(BRHS->getRHS()->IgnoreParenCasts()))) in isIncrement()
265 if (DeclRefExpr *DR = dyn_cast<DeclRefExpr>(B->getLHS())) in observeStmt()
280 if (const DeclRefExpr *RhsDR = dyn_cast<DeclRefExpr>(RHS)) in observeStmt()
302 if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(Ex)) in observeStmt()
350 if (const DeclRefExpr *DRE = in observeStmt()
351 dyn_cast<DeclRefExpr>(E->IgnoreParenCasts())) in observeStmt()
[all …]
DIdempotentOperationChecker.cpp95 static bool isConstantOrPseudoConstant(const DeclRefExpr *DR,
474 const DeclRefExpr *LHS_DR = dyn_cast<DeclRefExpr>(LHS); in isSelfAssign()
482 const DeclRefExpr *RHS_DR = dyn_cast<DeclRefExpr>(RHS); in isSelfAssign()
499 const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(E->IgnoreParenCasts()); in isUnused()
518 const DeclRefExpr *LHS_DR = dyn_cast<DeclRefExpr>(LHS->IgnoreParenCasts()); in isTruncationExtensionAssignment()
526 const DeclRefExpr *RHS_DR = dyn_cast<DeclRefExpr>(RHS->IgnoreParenCasts()); in isTruncationExtensionAssignment()
533 return dyn_cast<DeclRefExpr>(RHS->IgnoreParenLValueCasts()) == NULL; in isTruncationExtensionAssignment()
666 return !isConstantOrPseudoConstant(cast<DeclRefExpr>(Ex), AC); in CanVary()
702 const DeclRefExpr *DR, in isConstantOrPseudoConstant()
729 const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(S); in containsNonLocalVarDecl()
DCStringSyntaxChecker.cpp39 if (const DeclRefExpr *D1 = dyn_cast<DeclRefExpr>(A1->IgnoreParenCasts())) in sameDecl()
40 if (const DeclRefExpr *D2 = dyn_cast<DeclRefExpr>(A2->IgnoreParenCasts())) in sameDecl()
74 if (const DeclRefExpr *D = dyn_cast<DeclRefExpr>(E->IgnoreParenCasts())) in getPrintableName()
DUndefCapturedBlockVarChecker.cpp37 static const DeclRefExpr *FindBlockDeclRefExpr(const Stmt *S, in FindBlockDeclRefExpr()
39 if (const DeclRefExpr *BR = dyn_cast<DeclRefExpr>(S)) in FindBlockDeclRefExpr()
46 const DeclRefExpr *BR = FindBlockDeclRefExpr(child, VD); in FindBlockDeclRefExpr()
DMallocOverflowSecurityChecker.cpp91 else if (isa<DeclRefExpr>(e) || isa<MemberExpr>(e)) in CheckMallocArgument()
135 if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(E)) { in CheckExpr()
139 if (const DeclRefExpr *DR_i = dyn_cast<DeclRefExpr>(i->variable)) { in CheckExpr()
DCheckSecuritySyntaxOnly.cpp175 static const DeclRefExpr*
184 if (const DeclRefExpr *lhs = getIncrementedVar(B->getLHS(), x, y)) in getIncrementedVar()
187 if (const DeclRefExpr *rhs = getIncrementedVar(B->getRHS(), x, y)) in getIncrementedVar()
193 if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(expr)) { in getIncrementedVar()
240 const DeclRefExpr *drLHS = in checkLoopConditionForFloat()
241 dyn_cast<DeclRefExpr>(B->getLHS()->IgnoreParenLValueCasts()); in checkLoopConditionForFloat()
242 const DeclRefExpr *drRHS = in checkLoopConditionForFloat()
243 dyn_cast<DeclRefExpr>(B->getRHS()->IgnoreParenLValueCasts()); in checkLoopConditionForFloat()
259 const DeclRefExpr *drInc = getIncrementedVar(increment, vdLHS, vdRHS); in checkLoopConditionForFloat()
267 const DeclRefExpr *drCond = vdLHS == drInc->getDecl() ? drLHS : drRHS; in checkLoopConditionForFloat()
/external/clang/lib/StaticAnalyzer/Core/
DCheckerHelpers.cpp36 const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(S); in containsEnum()
52 const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(S); in containsStaticLocal()
/external/clang/lib/Analysis/
DUninitializedValues.cpp269 const DeclRefExpr *dr;
271 FindVarResult(const VarDecl *vd, const DeclRefExpr *dr) : vd(vd), dr(dr) {} in FindVarResult()
273 const DeclRefExpr *getDeclRefExpr() const { return dr; } in getDeclRefExpr()
294 if (const DeclRefExpr *DRE = in findVar()
295 dyn_cast<DeclRefExpr>(stripCasts(DC->getParentASTContext(), E))) in findVar()
316 llvm::DenseMap<const DeclRefExpr*, Class> Classification;
335 Class get(const DeclRefExpr *DRE) const { in get()
336 llvm::DenseMap<const DeclRefExpr*, Class>::const_iterator I in get()
350 static const DeclRefExpr *getSelfInitExpr(VarDecl *VD) { in getSelfInitExpr()
352 const DeclRefExpr *DRE in getSelfInitExpr()
[all …]
DPseudoConstantAnalysis.cpp70 if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(E)) in getDecl()
202 const DeclRefExpr *DR = cast<DeclRefExpr>(Head); in RunAnalysis()
DLiveVariables.cpp106 llvm::DenseMap<const DeclRefExpr *, unsigned> inAssignment;
224 void VisitDeclRefExpr(DeclRefExpr *DR);
357 if (DeclRefExpr *DR = dyn_cast<DeclRefExpr>(LHS)) in VisitBinaryOperator()
386 void TransferFunctions::VisitDeclRefExpr(DeclRefExpr *DR) { in VisitDeclRefExpr()
403 DeclRefExpr *DR = 0; in VisitObjCForCollectionStmt()
410 else if ((DR = dyn_cast<DeclRefExpr>(cast<Expr>(element)->IgnoreParens()))) { in VisitObjCForCollectionStmt()
454 if (DeclRefExpr *DR = dyn_cast<DeclRefExpr>(UO->getSubExpr()->IgnoreParens())) in VisitUnaryOperator()
542 if (const DeclRefExpr *DR = in computeLiveness()
543 dyn_cast<DeclRefExpr>(BO->getLHS()->IgnoreParens())) { in computeLiveness()
DBodyFarm.cpp61 DeclRefExpr *makeDeclRefExpr(const VarDecl *D);
109 DeclRefExpr *ASTMaker::makeDeclRefExpr(const VarDecl *D) { in makeDeclRefExpr()
110 DeclRefExpr *DR = in makeDeclRefExpr()
111 DeclRefExpr::Create(/* Ctx = */ C, in makeDeclRefExpr()
195 DeclRefExpr *DR = M.makeDeclRefExpr(Block); in create_dispatch_once()
258 DeclRefExpr *DR = M.makeDeclRefExpr(PV); in create_dispatch_sync()
/external/clang/lib/ARCMigrate/
DTransProtectedScope.cpp27 SmallVectorImpl<DeclRefExpr *> &Refs;
30 LocalRefsCollector(SmallVectorImpl<DeclRefExpr *> &refs) in LocalRefsCollector()
33 bool VisitDeclRefExpr(DeclRefExpr *E) { in VisitDeclRefExpr()
99 SmallVector<DeclRefExpr *, 16> LocalRefs;
176 DeclRefExpr *DRE = LocalRefs[i]; in hasVarReferencedOutside()
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()
DTransBlockObjCVariable.cpp52 if (DeclRefExpr * in TraverseImplicitCastExpr()
53 ref = dyn_cast<DeclRefExpr>(castE->getSubExpr())) { in TraverseImplicitCastExpr()
66 bool VisitDeclRefExpr(DeclRefExpr *E) { in VisitDeclRefExpr()
DTransARCAssign.cpp49 DeclRefExpr *declRef = dyn_cast<DeclRefExpr>(E->IgnoreParenCasts()); in VisitBinaryOperator()
DTransGCCalls.cpp53 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(CEE)) { in VisitCallExpr()
/external/clang/lib/Sema/
DScopeInfo.cpp53 D = cast<DeclRefExpr>(E)->getDecl(); in getBaseInfo()
115 const DeclRefExpr *DRE) in WeakObjectProfileTy()
160 else if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) in markSafeWeakUse()
/external/clang/lib/CodeGen/
DCGCUDARuntime.cpp41 if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(CE->getSubExpr())) { in EmitCUDAKernelCallExpr()
/external/clang/include/clang/Analysis/Analyses/
DLiveVariables.h27 class DeclRefExpr; variable
68 virtual void observerKill(const DeclRefExpr *DR) {} in observerKill()

12345