Home
last modified time | relevance | path

Searched refs:VarDecl (Results 1 – 25 of 191) sorted by relevance

12345678

/external/clang/lib/Analysis/
DPseudoConstantAnalysis.cpp27 typedef llvm::SmallPtrSet<const VarDecl*, VARDECL_SET_SIZE> VarDeclSet;
41 bool PseudoConstantAnalysis::isPseudoConstant(const VarDecl *VD) { in isPseudoConstant()
57 bool PseudoConstantAnalysis::wasReferenced(const VarDecl *VD) { in wasReferenced()
124 const VarDecl *VD = dyn_cast<VarDecl>(LHSDecl); in RunAnalysis()
158 const VarDecl *VD = dyn_cast<VarDecl>(D); in RunAnalysis()
177 const VarDecl *VD = dyn_cast<VarDecl>(*I); in RunAnalysis()
192 if (const VarDecl *RefVD = dyn_cast<VarDecl>(D)) { in RunAnalysis()
203 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) { in RunAnalysis()
DUninitializedValues.cpp35 static bool isTrackedVar(const VarDecl *vd, const DeclContext *dc) { in isTrackedVar()
51 llvm::DenseMap<const VarDecl *, unsigned> map;
62 Optional<unsigned> getValueIndex(const VarDecl *d) const;
68 DeclContext::specific_decl_iterator<VarDecl> I(dc.decls_begin()), in computeMap()
71 const VarDecl *vd = *I; in computeMap()
77 Optional<unsigned> DeclToIndex::getValueIndex(const VarDecl *d) const { in getValueIndex()
78 llvm::DenseMap<const VarDecl *, unsigned>::const_iterator I = map.find(d); in getValueIndex()
131 ValueVector::reference operator[](const VarDecl *vd);
134 const VarDecl *vd) { in getValue()
195 ValueVector::reference CFGBlockValues::operator[](const VarDecl *vd) { in operator []()
[all …]
DLiveVariables.cpp102 llvm::ImmutableSet<const VarDecl *>::Factory DSetFact;
139 bool LiveVariables::LivenessValues::isLive(const VarDecl *D) const { in isLive()
167 llvm::ImmutableSetRef<const VarDecl *> in merge()
189 static bool isAlwaysAlive(const VarDecl *D) { in isAlwaysAlive()
193 bool LiveVariables::isLive(const CFGBlock *B, const VarDecl *D) { in isLive()
197 bool LiveVariables::isLive(const Stmt *S, const VarDecl *D) { in isLive()
307 if (const VarDecl *VD = dyn_cast<VarDecl>(DS->getSingleDecl())) { in Visit()
358 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) { in VisitBinaryOperator()
379 const VarDecl *VD = *I; in VisitBlockExpr()
387 if (const VarDecl *D = dyn_cast<VarDecl>(DR->getDecl())) in VisitDeclRefExpr()
[all …]
/external/clang/lib/ARCMigrate/
DTransBlockObjCVariable.cpp42 llvm::DenseSet<VarDecl *> &VarsToChange;
45 VarDecl *Var;
49 BlockVarChecker(VarDecl *var) : Var(var) { } in BlockVarChecker()
75 RootBlockObjCVarRewriter(llvm::DenseSet<VarDecl *> &VarsToChange) in RootBlockObjCVarRewriter()
79 SmallVector<VarDecl *, 4> BlockVars; in VisitBlockDecl()
83 VarDecl *var = I->getVariable(); in VisitBlockDecl()
92 VarDecl *var = BlockVars[i]; in VisitBlockDecl()
114 llvm::DenseSet<VarDecl *> &VarsToChange;
117 BlockObjCVarRewriter(llvm::DenseSet<VarDecl *> &VarsToChange) in BlockObjCVarRewriter()
130 llvm::DenseSet<VarDecl *> VarsToChange; in traverseBody()
[all …]
DTransARCAssign.cpp37 llvm::DenseSet<VarDecl *> ModifiedVars;
50 if (declRef && isa<VarDecl>(declRef->getDecl())) { in VisitBinaryOperator()
55 VarDecl *var = cast<VarDecl>(declRef->getDecl()); in VisitBinaryOperator()
DTransAutoreleasePool.cpp85 SmallVector<VarDecl *, 8> VarsToHandle; in ~AutoreleasePoolRewriter()
87 for (std::map<VarDecl *, PoolVarInfo>::iterator in ~AutoreleasePoolRewriter()
89 VarDecl *var = I->first; in ~AutoreleasePoolRewriter()
172 if (VarDecl *VD = dyn_cast<VarDecl>(DclS->getSingleDecl())) { in VisitCompoundStmt()
190 if (VarDecl *VD = dyn_cast<VarDecl>(dref->getDecl())) { in VisitCompoundStmt()
226 VarDecl *PoolVar;
373 bool isPoolDrain(VarDecl *poolVar, Stmt *S) { in isPoolDrain()
427 std::map<VarDecl *, PoolVarInfo> PoolVars;
/external/clang/lib/StaticAnalyzer/Checkers/
DDeadStoresChecker.cpp38 llvm::DenseSet<const VarDecl *> &S;
57 if (const VarDecl *D = dyn_cast<VarDecl>(DR->getDecl())) in VisitDeclRefExpr()
62 EHCodeVisitor(llvm::DenseSet<const VarDecl *> &S) : in EHCodeVisitor()
126 llvm::SmallPtrSet<const VarDecl*, 20> Escaped;
129 OwningPtr<llvm::DenseSet<const VarDecl *> > InEH;
136 llvm::SmallPtrSet<const VarDecl*, 20> &escaped) in DeadStoreObs() argument
142 bool isLive(const LiveVariables::LivenessValues &Live, const VarDecl *D) { in isLive()
148 InEH.reset(new llvm::DenseSet<const VarDecl *>()); in isLive()
159 void Report(const VarDecl *V, DeadStoreKind dsk, in Report()
202 void CheckVarDecl(const VarDecl *VD, const Expr *Ex, const Expr *Val, in CheckVarDecl()
[all …]
DIdempotentOperationChecker.cpp478 const VarDecl *VD = dyn_cast<VarDecl>(LHS_DR->getDecl()); in isSelfAssign()
503 const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl()); in isUnused()
522 const VarDecl *VD = dyn_cast<VarDecl>(LHS_DR->getDecl()); in isTruncationExtensionAssignment()
712 const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl()); in isConstantOrPseudoConstant()
732 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) in containsNonLocalVarDecl()
/external/clang/lib/AST/
DStmtIterator.cpp44 if (VarDecl* VD = dyn_cast<VarDecl>(decl)) in NextVA()
51 if (VarDecl* VD = dyn_cast<VarDecl>(*DGI)) in NextVA()
92 if (VarDecl* VD = dyn_cast<VarDecl>(D)) { in HandleDecl()
142 VarDecl* VD = cast<VarDecl>(*DGI); in GetDeclExpr()
148 if (VarDecl* VD = dyn_cast<VarDecl>(decl)) { in GetDeclExpr()
DDecl.cpp491 if (const VarDecl *Var = dyn_cast<VarDecl>(D)) { in getLVForNamespaceScopeDecl()
505 for (const VarDecl *PrevVar = Var->getPreviousDecl(); in getLVForNamespaceScopeDecl()
515 const VarDecl *PrevVar = Var->getPreviousDecl(); in getLVForNamespaceScopeDecl()
543 const VarDecl *Var = dyn_cast<VarDecl>(D); in getLVForNamespaceScopeDecl()
601 if (const VarDecl *Var = dyn_cast<VarDecl>(D)) { in getLVForNamespaceScopeDecl()
734 isa<VarDecl>(D) || in getLVForClassMember()
813 } else if (const VarDecl *VD = dyn_cast<VarDecl>(D)) { in getLVForClassMember()
956 if (const VarDecl *Var = dyn_cast<VarDecl>(this)) { in getExplicitVisibility()
958 VarDecl *InstantiatedFrom = Var->getInstantiatedFromStaticDataMember(); in getExplicitVisibility()
1015 if (const VarDecl *Var = dyn_cast<VarDecl>(D)) { in getLVForLocalDecl()
[all …]
DStmt.cpp813 VarDecl *RangeDecl = dyn_cast_or_null<VarDecl>(RangeStmt->getSingleDecl()); in getRangeInit()
822 VarDecl *CXXForRangeStmt::getLoopVariable() { in getLoopVariable()
825 return cast<VarDecl>(LV); in getLoopVariable()
828 const VarDecl *CXXForRangeStmt::getLoopVariable() const { in getLoopVariable()
832 IfStmt::IfStmt(ASTContext &C, SourceLocation IL, VarDecl *var, Expr *cond, in IfStmt()
842 VarDecl *IfStmt::getConditionVariable() const { in getConditionVariable()
847 return cast<VarDecl>(DS->getSingleDecl()); in getConditionVariable()
850 void IfStmt::setConditionVariable(ASTContext &C, VarDecl *V) { in setConditionVariable()
861 ForStmt::ForStmt(ASTContext &C, Stmt *Init, Expr *Cond, VarDecl *condVar, in ForStmt()
873 VarDecl *ForStmt::getConditionVariable() const { in getConditionVariable()
[all …]
/external/clang/include/clang/Analysis/Analyses/
DLiveVariables.h36 llvm::ImmutableSet<const VarDecl *> liveDecls;
44 llvm::ImmutableSet<const VarDecl *> LiveDecls) in LivenessValues()
50 bool isLive(const VarDecl *D) const;
80 bool isLive(const CFGBlock *B, const VarDecl *D);
86 bool isLive(const Stmt *S, const VarDecl *D);
DUninitializedValues.h27 class VarDecl; variable
88 virtual void handleUseOfUninitVariable(const VarDecl *vd, in handleUseOfUninitVariable()
94 virtual void handleSelfInit(const VarDecl *vd) {} in handleSelfInit()
/external/clang/unittests/AST/
DSourceLocationTest.cpp32 LocationVerifier<VarDecl> Verifier; in TEST()
38 LocationVerifier<VarDecl> Verifier; in TEST()
50 LocationVerifier<VarDecl> Verifier; in TEST()
56 RangeVerifier<VarDecl> Verifier; in TEST()
112 TEST(VarDecl, VMTypeFixedVarDeclRange) { in TEST() argument
113 RangeVerifier<VarDecl> Verifier; in TEST()
/external/clang/include/clang/Sema/
DScopeInfo.h34 class VarDecl; variable
341 llvm::PointerIntPair<VarDecl*, 2, CaptureKind> VarAndKind;
360 Capture(VarDecl *Var, bool block, bool byRef, bool isNested, in Capture()
380 VarDecl *getVariable() const { in getVariable()
407 llvm::DenseMap<VarDecl*, unsigned> CaptureMap;
424 void addCapture(VarDecl *Var, bool isBlock, bool isByref, bool isNested, in addCapture()
445 bool isCaptured(VarDecl *Var) const { in isCaptured()
451 Capture &getCapture(VarDecl *Var) { in getCapture()
456 const Capture &getCapture(VarDecl *Var) const { in getCapture()
457 llvm::DenseMap<VarDecl*, unsigned>::const_iterator Known in getCapture()
[all …]
/external/clang/test/Index/
Dannotate-subscripting.m47 // CHECK: Punctuation: "*" [25:11 - 25:12] VarDecl=arr:25:12 (Definition)
48 // CHECK: Identifier: "arr" [25:12 - 25:15] VarDecl=arr:25:12 (Definition)
49 // CHECK: Punctuation: "=" [25:16 - 25:17] VarDecl=arr:25:12 (Definition)
79 // CHECK: Punctuation: "*" [35:16 - 35:17] VarDecl=dict:35:17 (Definition)
80 // CHECK: Identifier: "dict" [35:17 - 35:21] VarDecl=dict:35:17 (Definition)
81 // CHECK: Punctuation: "=" [35:22 - 35:23] VarDecl=dict:35:17 (Definition)
Dc-index-getCursor-test.m116 // CHECK: [45:5 - 45:11] VarDecl=bee:45:8 (Definition)
120 // CHECK: [46:4 - 46:9] VarDecl=a:46:5 (Definition)
127 // CHECK: [47:4 - 47:6] VarDecl=c:47:12 (Definition)
129 // CHECK: [47:10 - 47:16] VarDecl=c:47:12 (Definition)
136 // CHECK: [48:4 - 48:6] VarDecl=d:48:13 (Definition)
138 // CHECK: [48:11 - 48:14] VarDecl=d:48:13 (Definition)
167 // CHECK: [58:4 - 58:8] VarDecl=my_var:58:8 (Definition)
Dannotate-module.m23 // CHECK-NEXT: Keyword: "int" [4:1 - 4:4] VarDecl=glob:4:5
24 // CHECK-NEXT: Identifier: "glob" [4:5 - 4:9] VarDecl=glob:4:5
39 // CHECK-MOD-NEXT: Keyword: "int" [2:1 - 2:4] VarDecl=Module_Sub:2:6
40 // CHECK-MOD-NEXT: Punctuation: "*" [2:5 - 2:6] VarDecl=Module_Sub:2:6
41 // CHECK-MOD-NEXT: Identifier: "Module_Sub" [2:6 - 2:16] VarDecl=Module_Sub:2:6
Darc-annotate.m46 // CHECK: Punctuation: "*" [8:5 - 8:6] VarDecl=avar:8:6 (Definition)
47 // CHECK: Identifier: "avar" [8:6 - 8:10] VarDecl=avar:8:6 (Definition)
55 // CHECK-REFS: VarDecl=avar:8:6 (Definition)
56 // CHECK-REFS: VarDecl=avar:8:6 (Definition) =[8:6 - 8:10]
/external/clang/lib/CodeGen/
DCodeGenModule.h67 class VarDecl; variable
434 llvm::Constant *getStaticLocalDeclAddress(const VarDecl *D) { in getStaticLocalDeclAddress()
437 void setStaticLocalDeclAddress(const VarDecl *D, in setStaticLocalDeclAddress()
442 llvm::GlobalVariable *getStaticLocalDeclGuardAddress(const VarDecl *D) { in getStaticLocalDeclGuardAddress()
445 void setStaticLocalDeclGuardAddress(const VarDecl *D, in setStaticLocalDeclGuardAddress()
513 void setTLSMode(llvm::GlobalVariable *GV, const VarDecl &D) const;
549 return GetAddrOfGlobalVar(cast<VarDecl>(GD.getDecl())); in GetAddrOfGlobal()
564 unsigned GetGlobalVarAddressSpace(const VarDecl *D, unsigned AddrSpace);
570 llvm::Constant *GetAddrOfGlobalVar(const VarDecl *D,
723 void HandleCXXStaticMemberVarInstantiation(VarDecl *VD);
[all …]
DCGDecl.cpp91 const VarDecl &VD = cast<VarDecl>(D); in EmitDecl()
110 void CodeGenFunction::EmitVarDecl(const VarDecl &D) { in EmitVarDecl()
142 static std::string GetStaticDeclName(CodeGenFunction &CGF, const VarDecl &D, in GetStaticDeclName()
174 CodeGenFunction::CreateStaticVarDecl(const VarDecl &D, in CreateStaticVarDecl()
219 CodeGenFunction::AddInitializerToStaticVarDecl(const VarDecl &D, in AddInitializerToStaticVarDecl()
278 void CodeGenFunction::EmitStaticVarDecl(const VarDecl &D, in EmitStaticVarDecl()
409 const VarDecl &Var;
410 ExtendGCLifetime(const VarDecl *var) : Var(*var) {} in ExtendGCLifetime()
415 DeclRefExpr DRE(const_cast<VarDecl*>(&Var), false, in Emit()
425 const VarDecl &Var;
[all …]
DCGDebugInfo.h33 class VarDecl; variable
179 void CollectRecordStaticField(const VarDecl *Var,
232 void EmitDeclareOfAutoVariable(const VarDecl *Decl, llvm::Value *AI,
237 void EmitDeclareOfBlockDeclRefVariable(const VarDecl *variable,
244 void EmitDeclareOfArgVariable(const VarDecl *Decl, llvm::Value *AI,
256 void EmitGlobalVariable(llvm::GlobalVariable *GV, const VarDecl *Decl);
274 void EmitDeclare(const VarDecl *decl, unsigned Tag, llvm::Value *AI,
279 llvm::DIType EmitTypeForVarWithBlocksAttr(const VarDecl *VD,
/external/clang/include/clang/AST/
DASTConsumer.h28 class VarDecl; variable
99 virtual void CompleteTentativeDefinition(VarDecl *D) {} in CompleteTentativeDefinition()
103 virtual void HandleCXXStaticMemberVarInstantiation(VarDecl *D) {} in HandleCXXStaticMemberVarInstantiation()
DStmtCXX.h25 class VarDecl; variable
32 VarDecl *ExceptionDecl;
37 CXXCatchStmt(SourceLocation catchLoc, VarDecl *exDecl, Stmt *handlerBlock) in CXXCatchStmt()
50 VarDecl *getExceptionDecl() const { return ExceptionDecl; } in getExceptionDecl()
143 VarDecl *getLoopVariable();
146 const VarDecl *getLoopVariable() const;
/external/clang/lib/Sema/
DSemaStmt.cpp77 VarDecl *var = cast<VarDecl>(DG.getSingleDecl()); in ActOnForEachDeclStmt()
430 VarDecl *ConditionVar = 0; in ActOnIfStmt()
432 ConditionVar = cast<VarDecl>(CondVar); in ActOnIfStmt()
560 VarDecl *ConditionVar = 0; in ActOnStartOfSwitchStmt()
562 ConditionVar = cast<VarDecl>(CondVar); in ActOnStartOfSwitchStmt()
1159 VarDecl *ConditionVar = 0; in ActOnWhileStmt()
1161 ConditionVar = cast<VarDecl>(CondVar); in ActOnWhileStmt()
1205 llvm::SmallPtrSet<VarDecl*, 8> &Decls;
1211 DeclExtractor(Sema &S, llvm::SmallPtrSet<VarDecl*, 8> &Decls, in DeclExtractor() argument
1270 VarDecl *VD = dyn_cast<VarDecl>(E->getDecl()); in VisitDeclRefExpr()
[all …]

12345678