/external/clang/lib/Analysis/ |
D | PseudoConstantAnalysis.cpp | 25 typedef llvm::SmallPtrSet<const VarDecl*, 32> VarDeclSet; 39 bool PseudoConstantAnalysis::isPseudoConstant(const VarDecl *VD) { in isPseudoConstant() 55 bool PseudoConstantAnalysis::wasReferenced(const VarDecl *VD) { in wasReferenced() 122 const VarDecl *VD = dyn_cast<VarDecl>(LHSDecl); in RunAnalysis() 156 const VarDecl *VD = dyn_cast<VarDecl>(D); in RunAnalysis() 174 const VarDecl *VD = dyn_cast<VarDecl>(I); in RunAnalysis() 189 if (const VarDecl *RefVD = dyn_cast<VarDecl>(D)) { in RunAnalysis() 200 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) { in RunAnalysis()
|
D | UninitializedValues.cpp | 36 static bool isTrackedVar(const VarDecl *vd, const DeclContext *dc) { in isTrackedVar() 52 llvm::DenseMap<const VarDecl *, unsigned> map; 63 Optional<unsigned> getValueIndex(const VarDecl *d) const; 69 DeclContext::specific_decl_iterator<VarDecl> I(dc.decls_begin()), in computeMap() 72 const VarDecl *vd = *I; in computeMap() 78 Optional<unsigned> DeclToIndex::getValueIndex(const VarDecl *d) const { in getValueIndex() 79 llvm::DenseMap<const VarDecl *, unsigned>::const_iterator I = map.find(d); in getValueIndex() 132 ValueVector::reference operator[](const VarDecl *vd); 135 const VarDecl *vd) { in getValue() 196 ValueVector::reference CFGBlockValues::operator[](const VarDecl *vd) { in operator []() [all …]
|
D | LiveVariables.cpp | 86 llvm::ImmutableSet<const VarDecl *>::Factory DSetFact; 123 bool LiveVariables::LivenessValues::isLive(const VarDecl *D) const { in isLive() 151 llvm::ImmutableSetRef<const VarDecl *> in merge() 173 static bool isAlwaysAlive(const VarDecl *D) { in isAlwaysAlive() 177 bool LiveVariables::isLive(const CFGBlock *B, const VarDecl *D) { in isLive() 181 bool LiveVariables::isLive(const Stmt *S, const VarDecl *D) { in isLive() 291 if (const VarDecl *VD = dyn_cast<VarDecl>(DS->getSingleDecl())) { in Visit() 341 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) { in VisitBinaryOperator() 358 for (const VarDecl *VD : in VisitBlockExpr() 367 if (const VarDecl *D = dyn_cast<VarDecl>(DR->getDecl())) in VisitDeclRefExpr() [all …]
|
/external/clang/lib/ARCMigrate/ |
D | TransBlockObjCVariable.cpp | 42 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() 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 | 37 llvm::DenseSet<const VarDecl *> &S; 56 if (const VarDecl *D = dyn_cast<VarDecl>(DR->getDecl())) in VisitDeclRefExpr() 61 EHCodeVisitor(llvm::DenseSet<const VarDecl *> &S) : in EHCodeVisitor() 130 llvm::SmallPtrSet<const VarDecl*, 20> Escaped; 133 std::unique_ptr<llvm::DenseSet<const VarDecl *>> InEH; 141 llvm::SmallPtrSet<const VarDecl *, 20> &escaped) in DeadStoreObs() argument 147 bool isLive(const LiveVariables::LivenessValues &Live, const VarDecl *D) { in isLive() 153 InEH.reset(new llvm::DenseSet<const VarDecl *>()); in isLive() 164 void Report(const VarDecl *V, DeadStoreKind dsk, in Report() 208 void CheckVarDecl(const VarDecl *VD, const Expr *Ex, const Expr *Val, in CheckVarDecl() [all …]
|
/external/clang/unittests/AST/ |
D | ASTTypeTraitsTest.cpp | 32 EXPECT_FALSE(DNT<VarDecl>().isNone()); in TEST() 36 EXPECT_TRUE(DNT<Decl>().isBaseOf(DNT<VarDecl>())); in TEST() 37 EXPECT_FALSE(DNT<Decl>().isSame(DNT<VarDecl>())); in TEST() 38 EXPECT_FALSE(DNT<VarDecl>().isBaseOf(DNT<Decl>())); in TEST() 74 EXPECT_TRUE(DNT<VarDecl>().isSame( in TEST() 75 ASTNodeKind::getMostDerivedType(DNT<VarDecl>(), DNT<VarDecl>()))); in TEST() 79 ASTNodeKind::getMostDerivedType(DNT<IfStmt>(), DNT<VarDecl>()).isNone()); in TEST() 89 EXPECT_TRUE(DNT<VarDecl>().isSame(ASTNodeKind::getMostDerivedCommonAncestor( in TEST() 90 DNT<VarDecl>(), DNT<VarDecl>()))); in TEST() 99 DNT<IfStmt>(), DNT<VarDecl>()).isNone()); in TEST()
|
/external/clang/lib/StaticAnalyzer/Core/ |
D | CheckerHelpers.cpp | 52 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) in containsStaticLocal() 76 std::pair<const clang::VarDecl *, const clang::Expr *> 78 const VarDecl *VD = nullptr; in parseAssignment() 86 VD = dyn_cast_or_null<VarDecl>(DE->getDecl()); in parseAssignment() 91 VD = dyn_cast_or_null<VarDecl>(PD->getSingleDecl()); in parseAssignment()
|
/external/clang/lib/AST/ |
D | StmtIterator.cpp | 44 if (VarDecl* VD = dyn_cast<VarDecl>(*DGI)) in NextVA() 71 if (VarDecl* VD = dyn_cast<VarDecl>(D)) { in HandleDecl() 112 VarDecl* VD = cast<VarDecl>(*DGI); in GetDeclExpr()
|
D | StmtCXX.cpp | 71 VarDecl *RangeDecl = dyn_cast_or_null<VarDecl>(RangeStmt->getSingleDecl()); in getRangeInit() 80 VarDecl *CXXForRangeStmt::getLoopVariable() { in getLoopVariable() 83 return cast<VarDecl>(LV); in getLoopVariable() 86 const VarDecl *CXXForRangeStmt::getLoopVariable() const { in getLoopVariable()
|
D | Decl.cpp | 590 if (const auto *Var = dyn_cast<VarDecl>(D)) { in getLVForNamespaceScopeDecl() 603 const VarDecl *PrevVar = Var->getPreviousDecl(); in getLVForNamespaceScopeDecl() 613 for (const VarDecl *PrevVar = Var->getPreviousDecl(); PrevVar; in getLVForNamespaceScopeDecl() 632 const VarDecl *VD = IFD->getVarDecl(); in getLVForNamespaceScopeDecl() 639 const auto *Var = dyn_cast<VarDecl>(D); in getLVForNamespaceScopeDecl() 699 if (const auto *Var = dyn_cast<VarDecl>(D)) { in getLVForNamespaceScopeDecl() 861 isa<VarDecl>(D) || in getLVForClassMember() 953 } else if (const auto *VD = dyn_cast<VarDecl>(D)) { in getLVForClassMember() 1074 if (const auto *Var = dyn_cast<VarDecl>(ND)) { in getExplicitVisibilityAux() 1076 VarDecl *InstantiatedFrom = Var->getInstantiatedFromStaticDataMember(); in getExplicitVisibilityAux() [all …]
|
/external/clang/include/clang/Analysis/Analyses/ |
D | LiveVariables.h | 36 llvm::ImmutableSet<const VarDecl *> liveDecls; 44 llvm::ImmutableSet<const VarDecl *> LiveDecls) in LivenessValues() 48 bool isLive(const VarDecl *D) const; 77 bool isLive(const CFGBlock *B, const VarDecl *D); 83 bool isLive(const Stmt *S, const VarDecl *D);
|
/external/clang/include/clang/AST/ |
D | LambdaCapture.h | 75 VarDecl *Var = nullptr, 90 return dyn_cast_or_null<VarDecl>(DeclAndBits.getPointer()); in capturesVariable() 105 VarDecl *getCapturedVar() const { in getCapturedVar() 107 return static_cast<VarDecl *>(DeclAndBits.getPointer()); in getCapturedVar()
|
D | Mangle.h | 38 class VarDecl; variable 106 virtual void mangleReferenceTemporary(const VarDecl *D, 130 virtual void mangleStaticGuardVariable(const VarDecl *D, raw_ostream &) = 0; 132 virtual void mangleDynamicInitializer(const VarDecl *D, raw_ostream &) = 0; 134 virtual void mangleDynamicAtExitDestructor(const VarDecl *D, 162 virtual void mangleItaniumThreadLocalInit(const VarDecl *D, 164 virtual void mangleItaniumThreadLocalWrapper(const VarDecl *D, 199 virtual void mangleThreadSafeStaticGuardVariable(const VarDecl *VD,
|
D | MangleNumberingContext.h | 29 class VarDecl; variable 46 virtual unsigned getStaticLocalNumber(const VarDecl *VD) = 0; 50 virtual unsigned getManglingNumber(const VarDecl *VD,
|
D | StmtCXX.h | 25 class VarDecl; variable 32 VarDecl *ExceptionDecl; 37 CXXCatchStmt(SourceLocation catchLoc, VarDecl *exDecl, Stmt *handlerBlock) in CXXCatchStmt() 50 VarDecl *getExceptionDecl() const { return ExceptionDecl; } in getExceptionDecl() 147 VarDecl *getLoopVariable(); 150 const VarDecl *getLoopVariable() const; 336 VarDecl *getPromiseDecl() const { in getPromiseDecl() 337 return cast<VarDecl>(cast<DeclStmt>(getPromiseDeclStmt())->getSingleDecl()); in getPromiseDecl()
|
/external/clang/include/clang/Sema/ |
D | ScopeInfo.h | 45 class VarDecl; variable 156 VarDecl *CoroutinePromise; 433 llvm::PointerIntPair<VarDecl*, 2> VarAndNestedAndThis; 451 Capture(VarDecl *Var, bool Block, bool ByRef, bool IsNested, in Capture() 490 VarDecl *getVariable() const { in getVariable() 521 llvm::DenseMap<VarDecl*, unsigned> CaptureMap; 538 void addCapture(VarDecl *Var, bool isBlock, bool isByref, bool isNested, in addCapture() 569 bool isCaptured(VarDecl *Var) const { in isCaptured() 578 Capture &getCapture(VarDecl *Var) { in getCapture() 583 const Capture &getCapture(VarDecl *Var) const { in getCapture() [all …]
|
/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)
|
D | annotate-literals.m | 52 // CHECK-LITERALS: Identifier: "objects" [41:6 - 41:13] VarDecl=objects:41:6 (Definition) 53 // CHECK-LITERALS: Punctuation: "=" [41:14 - 41:15] VarDecl=objects:41:6 (Definition) 62 // CHECK-LITERALS: Identifier: "dict" [42:6 - 42:10] VarDecl=dict:42:6 (Definition) 63 // CHECK-LITERALS: Punctuation: "=" [42:11 - 42:12] VarDecl=dict:42:6 (Definition) 81 // CHECK-LITERALS: Identifier: "val" [45:6 - 45:9] VarDecl=val:45:6 (Definition) 82 // CHECK-LITERALS: Punctuation: "=" [45:10 - 45:11] VarDecl=val:45:6 (Definition)
|
D | annotate-module.m | 25 // CHECK-NEXT: Keyword: "int" [4:1 - 4:4] VarDecl=glob:4:5 26 // CHECK-NEXT: Identifier: "glob" [4:5 - 4:9] VarDecl=glob:4:5 41 // CHECK-MOD-NEXT: Keyword: "int" [2:1 - 2:4] VarDecl=Module_Sub:2:6 42 // CHECK-MOD-NEXT: Punctuation: "*" [2:5 - 2:6] VarDecl=Module_Sub:2:6 43 // CHECK-MOD-NEXT: Identifier: "Module_Sub" [2:6 - 2:16] VarDecl=Module_Sub:2:6
|
/external/clang/lib/CodeGen/ |
D | CGStmtOpenMP.cpp | 36 CGF.EmitVarDecl(cast<VarDecl>(*I)); in emitPreInitStmt() 39 CGF.EmitAutoVarAlloca(cast<VarDecl>(*I)); in emitPreInitStmt() 49 static bool isCapturedVar(CodeGenFunction &CGF, const VarDecl *VD) { in isCapturedVar() 67 DeclRefExpr DRE(const_cast<VarDecl *>(VD), in OMPLexicalScope() 91 CGF.EmitVarDecl(cast<VarDecl>(*I)); in emitPreInitStmt() 215 VarDecl *CapVar = nullptr; in GenerateOpenMPCapturedStmtFunction() 412 PrivateScope.addPrivate(cast<VarDecl>(LHSDRE->getDecl()), in emitInitWithReductionInitializer() 414 PrivateScope.addPrivate(cast<VarDecl>(RHSDRE->getDecl()), in emitInitWithReductionInitializer() 535 Address SrcAddr, const VarDecl *DestVD, in EmitOMPCopy() 536 const VarDecl *SrcVD, const Expr *Copy) { in EmitOMPCopy() [all …]
|
D | CGDecl.cpp | 118 const VarDecl &VD = cast<VarDecl>(D); in EmitDecl() 140 void CodeGenFunction::EmitVarDecl(const VarDecl &D) { in EmitVarDecl() 163 static std::string getStaticDeclName(CodeGenModule &CGM, const VarDecl &D) { in getStaticDeclName() 187 const VarDecl &D, llvm::GlobalValue::LinkageTypes Linkage) { in getOrCreateStaticVarDecl() 292 CodeGenFunction::AddInitializerToStaticVarDecl(const VarDecl &D, in AddInitializerToStaticVarDecl() 352 void CodeGenFunction::EmitStaticVarDecl(const VarDecl &D, in EmitStaticVarDecl() 486 const VarDecl &Var; 487 ExtendGCLifetime(const VarDecl *var) : Var(*var) {} in ExtendGCLifetime() 492 DeclRefExpr DRE(const_cast<VarDecl*>(&Var), false, in Emit() 503 const VarDecl &Var; [all …]
|
D | CodeGenModule.h | 70 class VarDecl; variable 387 std::vector<const VarDecl *> CXXThreadLocals; 392 std::vector<const VarDecl *> CXXThreadLocalInitVars; 546 llvm::Constant *getStaticLocalDeclAddress(const VarDecl *D) { in getStaticLocalDeclAddress() 549 void setStaticLocalDeclAddress(const VarDecl *D, in setStaticLocalDeclAddress() 555 getOrCreateStaticVarDecl(const VarDecl &D, 558 llvm::GlobalVariable *getStaticLocalDeclGuardAddress(const VarDecl *D) { in getStaticLocalDeclGuardAddress() 561 void setStaticLocalDeclGuardAddress(const VarDecl *D, in setStaticLocalDeclGuardAddress() 671 void setTLSMode(llvm::GlobalValue *GV, const VarDecl &D) const; 702 unsigned GetGlobalVarAddressSpace(const VarDecl *D, unsigned AddrSpace); [all …]
|