Home
last modified time | relevance | path

Searched refs:DeclRefExpr (Results 1 – 25 of 107) 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.m116 // CHECK: c-index-api-loadTU-test.m:48:10: DeclRefExpr=bee:47:8 Extent=[48:10 - 48:13]
127 // CHECK: c-index-api-loadTU-test.m:51:2: DeclRefExpr=d:50:13 Extent=[51:2 - 51:3]
129 // CHECK: c-index-api-loadTU-test.m:51:6: DeclRefExpr=c:49:12 Extent=[51:6 - 51:7]
131 // CHECK: c-index-api-loadTU-test.m:52:3: DeclRefExpr=d:50:13 Extent=[52:3 - 52:4]
133 // CHECK: c-index-api-loadTU-test.m:53:3: DeclRefExpr=bee:47:8 Extent=[53:3 - 53:6]
135 // CHECK: c-index-api-loadTU-test.m:53:27: DeclRefExpr=bee:47:8 Extent=[53:27 - 53:30]
138 // CHECK: c-index-api-loadTU-test.m:54:3: DeclRefExpr=main:46:5 Extent=[54:3 - 54:7]
139 // CHECK: c-index-api-loadTU-test.m:54:8: DeclRefExpr=someEnum:43:3 Extent=[54:8 - 54:16]
141 // CHECK: c-index-api-loadTU-test.m:54:33: DeclRefExpr=bee:47:8 Extent=[54:33 - 54:36]
Dboxed-exprs.m15 // CHECK-CURSOR: 7:19 DeclRefExpr=glob_str:4:13 Extent=[7:19 - 7:27] Spelling=glob_str ([7:19 - 7:2…
19 // CHECK-CURSOR2: 9:19 DeclRefExpr=cs:8:38 Extent=[9:19 - 9:21] Spelling=cs ([9:19 - 9:21])
/external/clang/lib/StaticAnalyzer/Checkers/
DDeadStoresChecker.cpp56 bool VisitDeclRefExpr(DeclRefExpr *DR) { in VisitDeclRefExpr()
223 void CheckDeclRef(const DeclRefExpr *DR, const Expr *Val, DeadStoreKind dsk, in CheckDeclRef()
239 const DeclRefExpr *DR; in isIncrement()
241 if ((DR = dyn_cast<DeclRefExpr>(BRHS->getLHS()->IgnoreParenCasts()))) in isIncrement()
245 if ((DR = dyn_cast<DeclRefExpr>(BRHS->getRHS()->IgnoreParenCasts()))) in isIncrement()
266 if (DeclRefExpr *DR = dyn_cast<DeclRefExpr>(B->getLHS())) in observeStmt()
281 if (const DeclRefExpr *RhsDR = dyn_cast<DeclRefExpr>(RHS)) in observeStmt()
303 if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(Ex)) in observeStmt()
351 if (const DeclRefExpr *DRE = in observeStmt()
352 dyn_cast<DeclRefExpr>(E->IgnoreParenCasts())) in observeStmt()
[all …]
DIdempotentOperationChecker.cpp94 static bool isConstantOrPseudoConstant(const DeclRefExpr *DR,
473 const DeclRefExpr *LHS_DR = dyn_cast<DeclRefExpr>(LHS); in isSelfAssign()
481 const DeclRefExpr *RHS_DR = dyn_cast<DeclRefExpr>(RHS); in isSelfAssign()
498 const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(E->IgnoreParenCasts()); in isUnused()
517 const DeclRefExpr *LHS_DR = dyn_cast<DeclRefExpr>(LHS->IgnoreParenCasts()); in isTruncationExtensionAssignment()
525 const DeclRefExpr *RHS_DR = dyn_cast<DeclRefExpr>(RHS->IgnoreParenCasts()); in isTruncationExtensionAssignment()
532 return dyn_cast<DeclRefExpr>(RHS->IgnoreParenLValueCasts()) == NULL; in isTruncationExtensionAssignment()
668 return !isConstantOrPseudoConstant(cast<DeclRefExpr>(Ex), AC); in CanVary()
704 const DeclRefExpr *DR, in isConstantOrPseudoConstant()
731 const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(S); in containsNonLocalVarDecl()
DCStringSyntaxChecker.cpp40 if (const DeclRefExpr *D1 = dyn_cast<DeclRefExpr>(A1->IgnoreParenCasts())) in sameDecl()
41 if (const DeclRefExpr *D2 = dyn_cast<DeclRefExpr>(A2->IgnoreParenCasts())) in sameDecl()
75 if (const DeclRefExpr *D = dyn_cast<DeclRefExpr>(E->IgnoreParenCasts())) in getPrintableName()
DUndefCapturedBlockVarChecker.cpp36 static const DeclRefExpr *FindBlockDeclRefExpr(const Stmt *S, in FindBlockDeclRefExpr()
38 if (const DeclRefExpr *BR = dyn_cast<DeclRefExpr>(S)) in FindBlockDeclRefExpr()
45 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.cpp182 static const DeclRefExpr*
191 if (const DeclRefExpr *lhs = getIncrementedVar(B->getLHS(), x, y)) in getIncrementedVar()
194 if (const DeclRefExpr *rhs = getIncrementedVar(B->getRHS(), x, y)) in getIncrementedVar()
200 if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(expr)) { in getIncrementedVar()
247 const DeclRefExpr *drLHS = in checkLoopConditionForFloat()
248 dyn_cast<DeclRefExpr>(B->getLHS()->IgnoreParenLValueCasts()); in checkLoopConditionForFloat()
249 const DeclRefExpr *drRHS = in checkLoopConditionForFloat()
250 dyn_cast<DeclRefExpr>(B->getRHS()->IgnoreParenLValueCasts()); in checkLoopConditionForFloat()
266 const DeclRefExpr *drInc = getIncrementedVar(increment, vdLHS, vdRHS); in checkLoopConditionForFloat()
273 const DeclRefExpr *drCond = vdLHS == drInc->getDecl() ? drLHS : drRHS; in checkLoopConditionForFloat()
DDereferenceChecker.cpp62 const DeclRefExpr *DR = cast<DeclRefExpr>(Ex); in AddDerefSource()
144 if (const DeclRefExpr *DR = in reportBug()
145 dyn_cast<DeclRefExpr>(IV->getBase()->IgnoreParenCasts())) { in reportBug()
/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()
DBugReporterVisitors.cpp35 if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) { in isDeclRefExprToReference()
240 if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(RetE)) in VisitNode()
480 if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(Ex)) { in trackNullOrUndefValue()
594 if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(Head)) { in registerStatementVarDecls()
719 return VisitTrueTest(Cond, cast<DeclRefExpr>(Ex), tookTrue, BRC, in VisitTrueTest()
742 if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(Ex)) { in patternMatch()
905 if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(CondVarExpr)) { in VisitConditionVariable()
920 const DeclRefExpr *DR, in VisitTrueTest()
/external/clang/lib/Analysis/
DUninitializedValues.cpp255 const DeclRefExpr *dr;
257 FindVarResult(const VarDecl *vd, const DeclRefExpr *dr) : vd(vd), dr(dr) {} in FindVarResult()
259 const DeclRefExpr *getDeclRefExpr() const { return dr; } in getDeclRefExpr()
280 if (const DeclRefExpr *DRE = in findVar()
281 dyn_cast<DeclRefExpr>(stripCasts(DC->getParentASTContext(), E))) in findVar()
302 llvm::DenseMap<const DeclRefExpr*, Class> Classification;
321 Class get(const DeclRefExpr *DRE) const { in get()
322 llvm::DenseMap<const DeclRefExpr*, Class>::const_iterator I in get()
336 static const DeclRefExpr *getSelfInitExpr(VarDecl *VD) { in getSelfInitExpr()
338 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.cpp96 llvm::DenseMap<const DeclRefExpr *, unsigned> inAssignment;
214 void VisitDeclRefExpr(DeclRefExpr *DR);
347 if (DeclRefExpr *DR = dyn_cast<DeclRefExpr>(LHS)) in VisitBinaryOperator()
376 void TransferFunctions::VisitDeclRefExpr(DeclRefExpr *DR) { in VisitDeclRefExpr()
393 DeclRefExpr *DR = 0; in VisitObjCForCollectionStmt()
400 else if ((DR = dyn_cast<DeclRefExpr>(cast<Expr>(element)->IgnoreParens()))) { in VisitObjCForCollectionStmt()
444 if (DeclRefExpr *DR = dyn_cast<DeclRefExpr>(UO->getSubExpr()->IgnoreParens())) in VisitUnaryOperator()
530 if (const DeclRefExpr *DR = in computeLiveness()
531 dyn_cast<DeclRefExpr>(BO->getLHS()->IgnoreParens())) { in computeLiveness()
/external/clang/lib/ARCMigrate/
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.cpp51 if (DeclRefExpr * in TraverseImplicitCastExpr()
52 ref = dyn_cast<DeclRefExpr>(castE->getSubExpr())) { in TraverseImplicitCastExpr()
65 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/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