/external/clang/lib/Analysis/ |
D | PseudoConstantAnalysis.cpp | 27 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()
|
D | UninitializedValues.cpp | 31 static bool isTrackedVar(const VarDecl *vd, const DeclContext *dc) { in isTrackedVar() 47 llvm::DenseMap<const VarDecl *, unsigned> map; 58 llvm::Optional<unsigned> getValueIndex(const VarDecl *d) const; 64 DeclContext::specific_decl_iterator<VarDecl> I(dc.decls_begin()), in computeMap() 67 const VarDecl *vd = *I; in computeMap() 73 llvm::Optional<unsigned> DeclToIndex::getValueIndex(const VarDecl *d) const { in getValueIndex() 74 llvm::DenseMap<const VarDecl *, unsigned>::const_iterator I = map.find(d); in getValueIndex() 128 ValueVector::reference operator[](const VarDecl *vd); 131 const VarDecl *vd) { in getValue() 198 ValueVector::reference CFGBlockValues::operator[](const VarDecl *vd) { in operator []() [all …]
|
D | LiveVariables.cpp | 92 llvm::ImmutableSet<const VarDecl *>::Factory DSetFact; 129 bool LiveVariables::LivenessValues::isLive(const VarDecl *D) const { in isLive() 157 llvm::ImmutableSetRef<const VarDecl *> in merge() 179 static bool isAlwaysAlive(const VarDecl *D) { in isAlwaysAlive() 183 bool LiveVariables::isLive(const CFGBlock *B, const VarDecl *D) { in isLive() 187 bool LiveVariables::isLive(const Stmt *S, const VarDecl *D) { in isLive() 297 if (const VarDecl *VD = dyn_cast<VarDecl>(DS->getSingleDecl())) { in Visit() 348 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) { in VisitBinaryOperator() 369 const VarDecl *VD = *I; in VisitBlockExpr() 377 if (const VarDecl *D = dyn_cast<VarDecl>(DR->getDecl())) in VisitDeclRefExpr() [all …]
|
/external/clang/lib/ARCMigrate/ |
D | TransBlockObjCVariable.cpp | 41 llvm::DenseSet<VarDecl *> &VarsToChange; 44 VarDecl *Var; 48 BlockVarChecker(VarDecl *var) : Var(var) { } in BlockVarChecker() 74 RootBlockObjCVarRewriter(llvm::DenseSet<VarDecl *> &VarsToChange) in RootBlockObjCVarRewriter() 78 SmallVector<VarDecl *, 4> BlockVars; in VisitBlockDecl() 82 VarDecl *var = I->getVariable(); in VisitBlockDecl() 91 VarDecl *var = BlockVars[i]; in VisitBlockDecl() 113 llvm::DenseSet<VarDecl *> &VarsToChange; 116 BlockObjCVarRewriter(llvm::DenseSet<VarDecl *> &VarsToChange) in BlockObjCVarRewriter() 129 llvm::DenseSet<VarDecl *> VarsToChange; in traverseBody() [all …]
|
D | TransARCAssign.cpp | 37 llvm::DenseSet<VarDecl *> ModifiedVars; 50 if (declRef && isa<VarDecl>(declRef->getDecl())) { in VisitBinaryOperator() 55 VarDecl *var = cast<VarDecl>(declRef->getDecl()); in VisitBinaryOperator()
|
D | TransAutoreleasePool.cpp | 85 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/ |
D | DeadStoresChecker.cpp | 39 llvm::DenseSet<const VarDecl *> &S; 58 if (const VarDecl *D = dyn_cast<VarDecl>(DR->getDecl())) in VisitDeclRefExpr() 63 EHCodeVisitor(llvm::DenseSet<const VarDecl *> &S) : in EHCodeVisitor() 127 llvm::SmallPtrSet<const VarDecl*, 20> Escaped; 130 llvm::OwningPtr<llvm::DenseSet<const VarDecl *> > InEH; 137 llvm::SmallPtrSet<const VarDecl*, 20> &escaped) in DeadStoreObs() argument 143 bool isLive(const LiveVariables::LivenessValues &Live, const VarDecl *D) { in isLive() 149 InEH.reset(new llvm::DenseSet<const VarDecl *>()); in isLive() 160 void Report(const VarDecl *V, DeadStoreKind dsk, in Report() 203 void CheckVarDecl(const VarDecl *VD, const Expr *Ex, const Expr *Val, in CheckVarDecl() [all …]
|
D | IdempotentOperationChecker.cpp | 477 const VarDecl *VD = dyn_cast<VarDecl>(LHS_DR->getDecl()); in isSelfAssign() 502 const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl()); in isUnused() 521 const VarDecl *VD = dyn_cast<VarDecl>(LHS_DR->getDecl()); in isTruncationExtensionAssignment() 714 const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl()); in isConstantOrPseudoConstant() 734 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) in containsNonLocalVarDecl()
|
D | DereferenceChecker.cpp | 63 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) { in AddDerefSource() 107 if (const VarDecl *VD = dyn_cast<VarDecl>(DS->getSingleDecl())) in reportBug() 146 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) { in reportBug()
|
/external/clang/lib/AST/ |
D | StmtIterator.cpp | 44 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()
|
D | Decl.cpp | 211 if (const VarDecl *Var = dyn_cast<VarDecl>(D)) { in getLVForNamespaceScopeDecl() 225 for (const VarDecl *PrevVar = Var->getPreviousDecl(); in getLVForNamespaceScopeDecl() 235 const VarDecl *PrevVar = Var->getPreviousDecl(); in getLVForNamespaceScopeDecl() 263 const VarDecl *Var = dyn_cast<VarDecl>(D); in getLVForNamespaceScopeDecl() 311 if (const VarDecl *Var = dyn_cast<VarDecl>(D)) { in getLVForNamespaceScopeDecl() 357 if (const VarDecl *PrevVar = Var->getPreviousDecl()) { in getLVForNamespaceScopeDecl() 497 isa<VarDecl>(D) || in getLVForClassMember() 593 } else if (const VarDecl *VD = dyn_cast<VarDecl>(D)) { in getLVForClassMember() 674 if (const VarDecl *Var = dyn_cast<VarDecl>(this)) { in getExplicitVisibility() 680 VarDecl *InstantiatedFrom = Var->getInstantiatedFromStaticDataMember(); in getExplicitVisibility() [all …]
|
D | Stmt.cpp | 825 VarDecl *RangeDecl = dyn_cast_or_null<VarDecl>(RangeStmt->getSingleDecl()); in getRangeInit() 834 VarDecl *CXXForRangeStmt::getLoopVariable() { in getLoopVariable() 837 return cast<VarDecl>(LV); in getLoopVariable() 840 const VarDecl *CXXForRangeStmt::getLoopVariable() const { in getLoopVariable() 844 IfStmt::IfStmt(ASTContext &C, SourceLocation IL, VarDecl *var, Expr *cond, in IfStmt() 854 VarDecl *IfStmt::getConditionVariable() const { in getConditionVariable() 859 return cast<VarDecl>(DS->getSingleDecl()); in getConditionVariable() 862 void IfStmt::setConditionVariable(ASTContext &C, VarDecl *V) { in setConditionVariable() 873 ForStmt::ForStmt(ASTContext &C, Stmt *Init, Expr *Cond, VarDecl *condVar, in ForStmt() 885 VarDecl *ForStmt::getConditionVariable() const { in getConditionVariable() [all …]
|
/external/clang/include/clang/Sema/ |
D | ScopeInfo.h | 31 class VarDecl; variable 173 llvm::PointerIntPair<VarDecl*, 2, CaptureKind> VarAndKind; 192 Capture(VarDecl *Var, bool block, bool byRef, bool isNested, in Capture() 212 VarDecl *getVariable() const { in getVariable() 239 llvm::DenseMap<VarDecl*, unsigned> CaptureMap; 256 void addCapture(VarDecl *Var, bool isBlock, bool isByref, bool isNested, in addCapture() 281 bool isCaptured(VarDecl *Var) const { in isCaptured() 287 Capture &getCapture(VarDecl *Var) { in getCapture() 292 const Capture &getCapture(VarDecl *Var) const { in getCapture() 293 llvm::DenseMap<VarDecl*, unsigned>::const_iterator Known in getCapture() [all …]
|
/external/clang/include/clang/Analysis/Analyses/ |
D | LiveVariables.h | 36 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);
|
D | UninitializedValues.h | 26 class VarDecl; variable 87 virtual void handleUseOfUninitVariable(const VarDecl *vd, in handleUseOfUninitVariable() 93 virtual void handleSelfInit(const VarDecl *vd) {} in handleSelfInit()
|
D | PseudoConstantAnalysis.h | 28 bool isPseudoConstant(const VarDecl *VD); 29 bool wasReferenced(const VarDecl *VD);
|
/external/clang/lib/CodeGen/ |
D | CGDecl.cpp | 90 const VarDecl &VD = cast<VarDecl>(D); in EmitDecl() 109 void CodeGenFunction::EmitVarDecl(const VarDecl &D) { in EmitVarDecl() 141 static std::string GetStaticDeclName(CodeGenFunction &CGF, const VarDecl &D, in GetStaticDeclName() 173 CodeGenFunction::CreateStaticVarDecl(const VarDecl &D, in CreateStaticVarDecl() 218 CodeGenFunction::AddInitializerToStaticVarDecl(const VarDecl &D, in AddInitializerToStaticVarDecl() 277 void CodeGenFunction::EmitStaticVarDecl(const VarDecl &D, in EmitStaticVarDecl() 406 const VarDecl &Var; 407 ExtendGCLifetime(const VarDecl *var) : Var(*var) {} in ExtendGCLifetime() 412 DeclRefExpr DRE(const_cast<VarDecl*>(&Var), false, in Emit() 422 const VarDecl &Var; [all …]
|
D | CodeGenModule.h | 62 class VarDecl; variable 404 llvm::Constant *getStaticLocalDeclAddress(const VarDecl *D) { in getStaticLocalDeclAddress() 407 void setStaticLocalDeclAddress(const VarDecl *D, in setStaticLocalDeclAddress() 412 llvm::GlobalVariable *getStaticLocalDeclGuardAddress(const VarDecl *D) { in getStaticLocalDeclGuardAddress() 415 void setStaticLocalDeclGuardAddress(const VarDecl *D, in setStaticLocalDeclGuardAddress() 479 void setTLSMode(llvm::GlobalVariable *GV, const VarDecl &D) const; 515 return GetAddrOfGlobalVar(cast<VarDecl>(GD.getDecl())); in GetAddrOfGlobal() 530 unsigned GetGlobalVarAddressSpace(const VarDecl *D, unsigned AddrSpace); 536 llvm::Constant *GetAddrOfGlobalVar(const VarDecl *D, 686 void HandleCXXStaticMemberVarInstantiation(VarDecl *VD); [all …]
|
D | CGOpenCLRuntime.h | 21 class VarDecl; variable 40 const VarDecl &D);
|
/external/clang/test/Index/ |
D | annotate-subscripting.m | 47 // 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)
|
D | c-index-getCursor-test.m | 116 // 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)
|
/external/clang/include/clang/AST/ |
D | ASTConsumer.h | 26 class VarDecl; variable 91 virtual void CompleteTentativeDefinition(VarDecl *D) {} in CompleteTentativeDefinition() 95 virtual void HandleCXXStaticMemberVarInstantiation(VarDecl *D) {} in HandleCXXStaticMemberVarInstantiation()
|
D | StmtCXX.h | 22 class VarDecl; variable 29 VarDecl *ExceptionDecl; 34 CXXCatchStmt(SourceLocation catchLoc, VarDecl *exDecl, Stmt *handlerBlock) in CXXCatchStmt() 46 VarDecl *getExceptionDecl() const { return ExceptionDecl; } in getExceptionDecl() 144 VarDecl *getLoopVariable(); 147 const VarDecl *getLoopVariable() const;
|
D | Decl.h | 710 class VarDecl : public DeclaratorDecl, public Redeclarable<VarDecl> { 746 friend class VarDecl; variable 815 VarDecl(Kind DK, DeclContext *DC, SourceLocation StartLoc, in VarDecl() function 828 typedef Redeclarable<VarDecl> redeclarable_base; 829 virtual VarDecl *getNextRedeclaration() { return RedeclLink.getNext(); } in getNextRedeclaration() 830 virtual VarDecl *getPreviousDeclImpl() { in getPreviousDeclImpl() 833 virtual VarDecl *getMostRecentDeclImpl() { in getMostRecentDeclImpl() 844 static VarDecl *Create(ASTContext &C, DeclContext *DC, 849 static VarDecl *CreateDeserialized(ASTContext &C, unsigned ID); 941 virtual VarDecl *getCanonicalDecl(); [all …]
|
/external/clang/lib/Sema/ |
D | SemaStmt.cpp | 72 VarDecl *var = cast<VarDecl>(DG.getSingleDecl()); in ActOnForEachDeclStmt() 393 VarDecl *ConditionVar = 0; in ActOnIfStmt() 395 ConditionVar = cast<VarDecl>(CondVar); in ActOnIfStmt() 523 VarDecl *ConditionVar = 0; in ActOnStartOfSwitchStmt() 525 ConditionVar = cast<VarDecl>(CondVar); in ActOnStartOfSwitchStmt() 1123 VarDecl *ConditionVar = 0; in ActOnWhileStmt() 1125 ConditionVar = cast<VarDecl>(CondVar); in ActOnWhileStmt() 1170 llvm::SmallPtrSet<VarDecl*, 8> &Decls; 1176 DeclExtractor(Sema &S, llvm::SmallPtrSet<VarDecl*, 8> &Decls, in DeclExtractor() argument 1235 VarDecl *VD = dyn_cast<VarDecl>(E->getDecl()); in VisitDeclRefExpr() [all …]
|