Home
last modified time | relevance | path

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

123456

/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.m56 // CHECK-LITERALS: Identifier: "o1" [41:19 - 41:21] DeclRefExpr=o1:40:30
58 // CHECK-LITERALS: Identifier: "o2" [41:23 - 41:25] DeclRefExpr=o2:40:44
66 // CHECK-LITERALS: Identifier: "k1" [42:16 - 42:18] DeclRefExpr=k1:40:23
68 // CHECK-LITERALS: Identifier: "o1" [42:21 - 42:23] DeclRefExpr=o1:40:30
70 // CHECK-LITERALS: Identifier: "k2" [43:16 - 43:18] DeclRefExpr=k2:40:37
72 // CHECK-LITERALS: Identifier: "o2" [43:21 - 43:23] DeclRefExpr=o2:40:44
74 // CHECK-LITERALS: Identifier: "k3" [44:16 - 44:18] DeclRefExpr=k3:40:51
85 // CHECK-LITERALS: Identifier: "s" [45:14 - 45:15] DeclRefExpr=s:40:64
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.m122 // CHECK: c-index-api-loadTU-test.m:48:10: DeclRefExpr=bee:47:8 Extent=[48:10 - 48:13]
135 // CHECK: c-index-api-loadTU-test.m:51:2: DeclRefExpr=d:50:13 Extent=[51:2 - 51:3]
138 // CHECK: c-index-api-loadTU-test.m:51:6: DeclRefExpr=c:49:12 Extent=[51:6 - 51:7]
141 // CHECK: c-index-api-loadTU-test.m:52:3: DeclRefExpr=d:50:13 Extent=[52:3 - 52:4]
144 // CHECK: c-index-api-loadTU-test.m:53:3: DeclRefExpr=bee:47:8 Extent=[53:3 - 53:6]
147 // CHECK: c-index-api-loadTU-test.m:53:27: DeclRefExpr=bee:47:8 Extent=[53:27 - 53:30]
150 // CHECK: c-index-api-loadTU-test.m:54:3: DeclRefExpr=main:46:5 Extent=[54:3 - 54:7]
151 // CHECK: c-index-api-loadTU-test.m:54:8: DeclRefExpr=someEnum:43:3 Extent=[54:8 - 54:16]
154 // CHECK: c-index-api-loadTU-test.m:54:33: DeclRefExpr=bee:47:8 Extent=[54:33 - 54:36]
/external/clang/lib/StaticAnalyzer/Checkers/
DDeadStoresChecker.cpp54 bool VisitDeclRefExpr(DeclRefExpr *DR) { in VisitDeclRefExpr()
229 void CheckDeclRef(const DeclRefExpr *DR, const Expr *Val, DeadStoreKind dsk, in CheckDeclRef()
245 const DeclRefExpr *DR; in isIncrement()
247 if ((DR = dyn_cast<DeclRefExpr>(BRHS->getLHS()->IgnoreParenCasts()))) in isIncrement()
251 if ((DR = dyn_cast<DeclRefExpr>(BRHS->getRHS()->IgnoreParenCasts()))) in isIncrement()
272 if (DeclRefExpr *DR = dyn_cast<DeclRefExpr>(B->getLHS())) in observeStmt()
290 if (const DeclRefExpr *RhsDR = dyn_cast<DeclRefExpr>(RHS)) in observeStmt()
312 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 …]
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()
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()
218 if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(E)) in CheckAssignmentExpr()
219 Erase<DeclRefExpr>(DR, pred); in CheckAssignmentExpr()
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()
DCheckSecuritySyntaxOnly.cpp185 static const DeclRefExpr*
194 if (const DeclRefExpr *lhs = getIncrementedVar(B->getLHS(), x, y)) in getIncrementedVar()
197 if (const DeclRefExpr *rhs = getIncrementedVar(B->getRHS(), x, y)) in getIncrementedVar()
203 if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(expr)) { in getIncrementedVar()
250 const DeclRefExpr *drLHS = in checkLoopConditionForFloat()
251 dyn_cast<DeclRefExpr>(B->getLHS()->IgnoreParenLValueCasts()); in checkLoopConditionForFloat()
252 const DeclRefExpr *drRHS = in checkLoopConditionForFloat()
253 dyn_cast<DeclRefExpr>(B->getRHS()->IgnoreParenLValueCasts()); in checkLoopConditionForFloat()
269 const DeclRefExpr *drInc = getIncrementedVar(increment, vdLHS, vdRHS); in checkLoopConditionForFloat()
277 const DeclRefExpr *drCond = vdLHS == drInc->getDecl() ? drLHS : drRHS; in checkLoopConditionForFloat()
DIdenticalExprChecker.cpp226 const DeclRefExpr *DeclRef1 = dyn_cast<DeclRefExpr>(LHS); in checkComparisonOp()
227 const DeclRefExpr *DeclRef2 = dyn_cast<DeclRefExpr>(RHS); in checkComparisonOp()
458 const DeclRefExpr *DeclRef1 = cast<DeclRefExpr>(Stmt1); in isIdenticalStmt()
459 const DeclRefExpr *DeclRef2 = cast<DeclRefExpr>(Stmt2); in isIdenticalStmt()
/external/clang/lib/StaticAnalyzer/Core/
DCheckerHelpers.cpp35 const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(S); in containsEnum()
49 const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(S); in containsStaticLocal()
85 if (auto DE = dyn_cast_or_null<DeclRefExpr>(Assign->getLHS())) in parseAssignment()
/external/clang/lib/CodeGen/
DCGStmtOpenMP.cpp67 DeclRefExpr DRE(const_cast<VarDecl *>(VD), in OMPLexicalScope()
391 dyn_cast<DeclRefExpr>(OVE->getSourceExpr()->IgnoreImpCasts())) in getReductionInit()
409 auto *LHSDRE = cast<DeclRefExpr>(cast<UnaryOperator>(LHS)->getSubExpr()); in emitInitWithReductionInitializer()
410 auto *RHSDRE = cast<DeclRefExpr>(cast<UnaryOperator>(RHS)->getSubExpr()); in emitInitWithReductionInitializer()
581 cast<VarDecl>(cast<DeclRefExpr>(D)->getDecl())->getCanonicalDecl()); in EmitOMPFirstprivateClause()
589 auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(*IRef)->getDecl()); in EmitOMPFirstprivateClause()
604 auto *VD = cast<VarDecl>(cast<DeclRefExpr>(IInit)->getDecl()); in EmitOMPFirstprivateClause()
605 auto *VDInit = cast<VarDecl>(cast<DeclRefExpr>(*InitsRef)->getDecl()); in EmitOMPFirstprivateClause()
607 DeclRefExpr DRE(const_cast<VarDecl *>(OrigVD), in EmitOMPFirstprivateClause()
674 auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(*IRef)->getDecl()); in EmitOMPPrivateClause()
[all …]
DCGCUDARuntime.cpp42 if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(CE->getSubExpr())) { in EmitCUDAKernelCallExpr()
/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()
353 const DeclRefExpr *DRE in getSelfInitExpr()
[all …]
DPseudoConstantAnalysis.cpp68 if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(E)) in getDecl()
199 const DeclRefExpr *DR = cast<DeclRefExpr>(Head); in RunAnalysis()
DLiveVariables.cpp90 llvm::DenseMap<const DeclRefExpr *, unsigned> inAssignment;
208 void VisitDeclRefExpr(DeclRefExpr *DR);
340 if (DeclRefExpr *DR = dyn_cast<DeclRefExpr>(LHS)) in VisitBinaryOperator()
366 void TransferFunctions::VisitDeclRefExpr(DeclRefExpr *DR) { in VisitDeclRefExpr()
382 DeclRefExpr *DR = nullptr; in VisitObjCForCollectionStmt()
389 else if ((DR = dyn_cast<DeclRefExpr>(cast<Expr>(element)->IgnoreParens()))) { in VisitObjCForCollectionStmt()
433 if (DeclRefExpr *DR = dyn_cast<DeclRefExpr>(UO->getSubExpr()->IgnoreParens())) in VisitUnaryOperator()
521 if (const DeclRefExpr *DR = in computeLiveness()
522 dyn_cast<DeclRefExpr>(BO->getLHS()->IgnoreParens())) { in computeLiveness()
DBodyFarm.cpp58 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()
205 DeclRefExpr *DR = M.makeDeclRefExpr(Block); in create_dispatch_once()
267 DeclRefExpr *DR = M.makeDeclRefExpr(PV); in create_dispatch_sync()
/external/clang/lib/Sema/
DScopeInfo.cpp67 D = cast<DeclRefExpr>(E)->getDecl(); in getBaseInfo()
145 const DeclRefExpr *DRE) in WeakObjectProfileTy()
198 else if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) in markSafeWeakUse()
231 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) in getPotentialVariableCapture()
/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;
182 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.cpp47 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(CEE)) { in VisitCallExpr()

123456