/external/clang/lib/AST/ |
H A D | MangleNumberingContext.cpp | 41 MangleNumberingContext::getStaticLocalNumber(const VarDecl *VD) { argument
|
H A D | StmtIterator.cpp | 44 if (VarDecl* VD = dyn_cast<VarDecl>(*DGI)) 45 if (VD->Init) 71 if (VarDecl* VD = dyn_cast<VarDecl>(D)) { 72 if (const VariableArrayType* VAPtr = FindVA(VD->getType().getTypePtr())) { 77 if (VD->getInit()) 112 VarDecl* VD = cast<VarDecl>(*DGI); local 113 return *VD->getInitAddress();
|
H A D | APValue.cpp | 404 if (const ValueDecl *VD = Base.dyn_cast<const ValueDecl*>()) 405 Out << *VD; local 428 if (const ValueDecl *VD = Base.dyn_cast<const ValueDecl*>()) { 429 Out << *VD; local 430 ElemTy = VD->getType(); 450 const ValueDecl *VD = cast<ValueDecl>(BaseOrMember); local 454 Out << *VD; local 455 ElemTy = VD->getType(); 530 if (const ValueDecl *VD = getMemberPointerDecl()) { 531 Out << '&' << *cast<CXXRecordDecl>(VD [all...] |
/external/clang/test/CodeGenCXX/ |
H A D | mangle-alias-template.cpp | 20 Vec<double> VD; local 21 g(VD);
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
H A D | UndefCapturedBlockVarChecker.cpp | 38 const VarDecl *VD) { 40 if (BR->getDecl() == VD) 46 const DeclRefExpr *BR = FindBlockDeclRefExpr(child, VD); 72 const VarDecl *VD = VR->getDecl(); local 74 if (VD->hasAttr<BlocksAttr>() || !VD->hasLocalStorage()) 77 // Get the VarRegion associated with VD in the local stack frame. 89 os << "Variable '" << VD->getName() 93 if (const Expr *Ex = FindBlockDeclRefExpr(BE->getBody(), VD)) 37 FindBlockDeclRefExpr(const Stmt *S, const VarDecl *VD) argument
|
H A D | UndefinedAssignmentChecker.cpp | 79 const VarDecl *VD = dyn_cast<VarDecl>(DS->getSingleDecl()); local 80 ex = VD->getInit();
|
H A D | VLASizeChecker.cpp | 83 const VarDecl *VD = dyn_cast<VarDecl>(DS->getSingleDecl()); local 84 if (!VD) 88 const VariableArrayType *VLA = Ctx.getAsVariableArrayType(VD->getType()); 148 state->getRegion(VD, LC)->getExtent(svalBuilder);
|
H A D | LLVMConventionsChecker.cpp | 135 void VisitVarDecl(VarDecl *VD); 149 if (VarDecl *VD = dyn_cast<VarDecl>(I)) 150 VisitVarDecl(VD); 153 void StringRefCheckerVisitor::VisitVarDecl(VarDecl *VD) { argument 154 Expr *Init = VD->getInit(); 160 if (!IsLLVMStringRef(VD->getType())) 185 PathDiagnosticLocation::createBegin(VD, BR.getSourceManager());
|
H A D | DeadStoresChecker.cpp | 208 void CheckVarDecl(const VarDecl *VD, const Expr *Ex, const Expr *Val, argument 212 if (!VD->hasLocalStorage()) 216 if (VD->getType()->getAs<ReferenceType>()) 219 if (!isLive(Live, VD) && 220 !(VD->hasAttr<UnusedAttr>() || VD->hasAttr<BlocksAttr>() || 221 VD->hasAttr<ObjCPreciseLifetimeAttr>())) { 225 Report(VD, dsk, ExLoc, Val->getSourceRange()); 231 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) 232 CheckVarDecl(VD, D 235 isIncrement(VarDecl *VD, const BinaryOperator* B) argument [all...] |
/external/clang/test/Layout/ |
H A D | ms-x86-member-pointers.cpp | 10 struct VD { char a; int V::*mp; }; struct 32 // CHECK-NEXT: 0 | struct VD 75 sizeof(VD) +
|
/external/clang/unittests/AST/ |
H A D | EvaluateAsRValueTest.cpp | 45 bool VisitVarDecl(const clang::VarDecl *VD) { argument 46 if (const clang::Expr *Init = VD->getInit()) { 48 bool WasEvaluated = Init->EvaluateAsRValue(Result, VD->getASTContext()); 49 VarInfo[VD->getNameAsString()] = WasEvaluated; 50 EXPECT_EQ(WasEvaluated, Init->isConstantInitializer(VD->getASTContext(),
|
/external/clang/lib/Analysis/ |
H A D | PseudoConstantAnalysis.cpp | 41 bool PseudoConstantAnalysis::isPseudoConstant(const VarDecl *VD) { argument 43 if (!VD->hasLocalStorage() && !VD->isStaticLocal()) 53 return !NonConstants->count(VD); 57 bool PseudoConstantAnalysis::wasReferenced(const VarDecl *VD) { argument 65 return UsedVars->count(VD); 124 const VarDecl *VD = dyn_cast<VarDecl>(LHSDecl); local 126 if (VD) 127 NonConstants->insert(VD); 158 const VarDecl *VD local 176 const VarDecl *VD = dyn_cast<VarDecl>(I); local [all...] |
H A D | AnalysisDeclContext.cpp | 137 const VarDecl *VD = I.getVariable(); local 138 if (VD->getName() == "self") 139 return dyn_cast<ImplicitParamDecl>(VD); 475 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) { 476 if (!VD->hasLocalStorage()) { 477 if (Visited.insert(VD)) 478 BEVals.push_back(VD, BC);
|
H A D | LiveVariables.cpp | 292 if (const VarDecl *VD = dyn_cast<VarDecl>(DS->getSingleDecl())) { 293 for (const VariableArrayType* VA = FindVA(VD->getType()); 343 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) { 345 if (VD->getType()->isReferenceType()) 348 if (!isAlwaysAlive(VD)) { 350 val.liveDecls = LV.DSetFact.remove(val.liveDecls, VD); 364 const VarDecl *VD = *I; local 365 if (isAlwaysAlive(VD)) 367 val.liveDecls = LV.DSetFact.add(val.liveDecls, VD); 379 if (const auto *VD 388 const VarDecl *VD = nullptr; local [all...] |
/external/clang/lib/Sema/ |
H A D | ScopeInfo.cpp | 198 void LambdaScopeInfo::getPotentialVariableCapture(unsigned Idx, VarDecl *&VD, argument 205 VD = dyn_cast<VarDecl>(DRE->getFoundDecl()); 207 VD = dyn_cast<VarDecl>(ME->getMemberDecl()); 211 assert(VD);
|
H A D | SemaAttr.cpp | 447 VarDecl *VD = Lookup.getAsSingle<VarDecl>(); local 448 if (!VD) { 455 if (VD->isUsed()) 458 VD->addAttr(UnusedAttr::CreateImplicit(Context, IdTok.getLocation()));
|
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
H A D | Store.h | 87 virtual Loc getLValueVar(const VarDecl *VD, const LocationContext *LC) { argument 88 return svalBuilder.makeLoc(MRMgr.getVarRegion(VD, LC));
|
H A D | ProgramState.h | 658 inline Loc ProgramState::getLValue(const VarDecl *VD, argument 660 return getStateManager().StoreMgr->getLValueVar(VD, LC);
|
/external/clang/lib/Frontend/ |
H A D | ASTConsumers.cpp | 426 VarDecl* VD = cast<VarDecl>(I); local 427 Out << "<var> " << *VD << '\n'; local
|
H A D | MultiplexConsumer.cpp | 234 void MultiplexConsumer::HandleCXXStaticMemberVarInstantiation(VarDecl *VD) { argument 236 Consumers[i]->HandleCXXStaticMemberVarInstantiation(VD);
|
/external/clang/lib/CodeGen/ |
H A D | CGDeclCXX.cpp | 166 static llvm::Constant *createAtExitStub(CodeGenModule &CGM, const VarDecl &VD, argument 174 CGM.getCXXABI().getMangleContext().mangleDynamicAtExitDestructor(&VD, Out); 181 CGF.StartFunction(&VD, CGM.getContext().VoidTy, fn, 197 void CodeGenFunction::registerGlobalDtorWithAtExit(const VarDecl &VD, argument 201 llvm::Constant *dtorStub = createAtExitStub(CGM, VD, dtor, addr); 526 bool useEHCleanupForArray, const VarDecl *VD) { 538 StartFunction(VD, getContext().VoidTy, fn, FI, args); 524 generateDestroyHelper( llvm::Constant *addr, QualType type, Destroyer *destroyer, bool useEHCleanupForArray, const VarDecl *VD) argument
|
H A D | CGCXXABI.cpp | 319 const VarDecl *VD, 318 EmitThreadLocalVarDeclLValue(CodeGenFunction &CGF, const VarDecl *VD, QualType LValType) argument
|
/external/clang/lib/StaticAnalyzer/Core/ |
H A D | ExprEngineCXX.cpp | 485 const VarDecl *VD = CS->getExceptionDecl(); local 486 if (!VD) { 492 SVal V = svalBuilder.conjureSymbolVal(CS, LCtx, VD->getType(), 495 state = state->bindLoc(state->getLValue(VD, LCtx), V);
|
/external/clang/include/clang/Analysis/Analyses/ |
H A D | ThreadSafetyCommon.h | 63 void handleDestructorCall(const VarDecl *VD, const CXXDestructorDecl *DD) {} argument 155 VarDecl *VD = const_cast<VarDecl*>(AD.getVarDecl()); local 156 V.handleDestructorCall(VD, DD); 340 void handleDestructorCall(const VarDecl *VD, const CXXDestructorDecl *DD); 351 til::SExpr *getCurrentLVarDefinition(const ValueDecl *VD); 354 const ValueDecl *VD = nullptr); 355 til::SExpr *lookupVarDecl(const ValueDecl *VD); 356 til::SExpr *addVarDecl(const ValueDecl *VD, til::SExpr *E); 357 til::SExpr *updateVarDecl(const ValueDecl *VD, til::SExpr *E);
|
/external/clang/include/clang/Sema/ |
H A D | Scope.h | 423 void addNRVOCandidate(VarDecl *VD) { argument 427 NRVO.setPointer(VD); 430 if (NRVO.getPointer() != VD)
|