/external/clang/lib/AST/ |
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); 113 return *VD->getInitAddress();
|
APValue.cpp | 404 if (const ValueDecl *VD = Base.dyn_cast<const ValueDecl*>()) 405 Out << *VD; 428 if (const ValueDecl *VD = Base.dyn_cast<const ValueDecl*>()) { 429 Out << *VD; 430 ElemTy = VD->getType(); 450 const ValueDecl *VD = cast<ValueDecl>(BaseOrMember); 454 Out << *VD; 455 ElemTy = VD->getType(); 530 if (const ValueDecl *VD = getMemberPointerDecl()) { 531 Out << '&' << *cast<CXXRecordDecl>(VD->getDeclContext()) << "::" << *VD [all...] |
/external/clang/lib/StaticAnalyzer/Checkers/ |
UndefinedAssignmentChecker.cpp | 79 const VarDecl *VD = dyn_cast<VarDecl>(DS->getSingleDecl()); 80 ex = VD->getInit();
|
UndefCapturedBlockVarChecker.cpp | 38 const VarDecl *VD) { 40 if (BR->getDecl() == VD) 46 const DeclRefExpr *BR = FindBlockDeclRefExpr(child, VD); 72 const VarDecl *VD = VR->getDecl(); 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))
|
VLASizeChecker.cpp | 83 const VarDecl *VD = dyn_cast<VarDecl>(DS->getSingleDecl()); 84 if (!VD) 88 const VariableArrayType *VLA = Ctx.getAsVariableArrayType(VD->getType()); 148 state->getRegion(VD, LC)->getExtent(svalBuilder);
|
MacOSKeychainAPIChecker.cpp | 166 const ValueDecl *VD = DRE->getDecl(); 167 if (isa<ImplicitParamDecl>(VD) || isa<ParmVarDecl>(VD))
|
/external/clang/test/CodeGenCXX/ |
mangle-alias-template.cpp | 20 Vec<double> VD; 21 g(VD);
|
/external/clang/test/Layout/ |
ms-x86-member-pointers.cpp | 10 struct VD { char a; int V::*mp; }; 32 // CHECK-NEXT: 0 | struct VD 75 sizeof(VD) +
|
/external/clang/lib/Analysis/ |
PseudoConstantAnalysis.cpp | 41 bool PseudoConstantAnalysis::isPseudoConstant(const VarDecl *VD) { 43 if (!VD->hasLocalStorage() && !VD->isStaticLocal()) 53 return !NonConstants->count(VD); 57 bool PseudoConstantAnalysis::wasReferenced(const VarDecl *VD) { 65 return UsedVars->count(VD); 124 const VarDecl *VD = dyn_cast<VarDecl>(LHSDecl); 126 if (VD) 127 NonConstants->insert(VD); 158 const VarDecl *VD = dyn_cast<VarDecl>(D) [all...] |
AnalysisDeclContext.cpp | 137 const VarDecl *VD = I.getVariable(); 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);
|
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; 365 if (isAlwaysAlive(VD)) 367 val.liveDecls = LV.DSetFact.add(val.liveDecls, VD); 379 if (const auto *VD = dyn_cast<VarDecl>(DI)) [all...] |
ThreadSafetyCommon.cpp | 167 const ValueDecl *VD = cast<ValueDecl>(DRE->getDecl()->getCanonicalDecl()); 170 if (const ParmVarDecl *PV = dyn_cast_or_null<ParmVarDecl>(VD)) { 182 VD = FD->getParamDecl(I); 186 return new (Arena) til::LiteralPtr(VD); 288 const ValueDecl *VD = nullptr; 291 VD = DRE->getDecl(); 292 CV = lookupVarDecl(VD); 298 E1 = addStatement(E1, nullptr, VD); 300 if (VD && CV) 301 return updateVarDecl(VD, E1) [all...] |
UninitializedValues.cpp | 35 static bool isTrackedVar(const VarDecl *vd, const DeclContext *dc) { 36 if (vd->isLocalVarDecl() && !vd->hasGlobalStorage() && 37 !vd->isExceptionVariable() && !vd->isInitCapture() && 38 vd->getDeclContext() == dc) { 39 QualType ty = vd->getType(); 71 const VarDecl *vd = *I; local 72 if (isTrackedVar(vd, &dc)) 73 map[vd] = count++ 267 const VarDecl *vd; member in class:__anon21599::FindVarResult 636 const VarDecl *vd = I.getVariable(); local [all...] |
/frameworks/compile/slang/ |
slang_rs_context.cpp | 70 bool RSContext::processExportVar(const clang::VarDecl *VD) { 71 slangAssert(!VD->getName().empty() && "Variable name should not be empty"); 75 RSExportType *ET = RSExportType::CreateFromDecl(this, VD); 79 RSExportVar *EV = new RSExportVar(this, VD, ET); 217 clang::VarDecl *VD = (clang::VarDecl*) (*DI); 218 if (VD->getFormalLinkage() == clang::ExternalLinkage) { 219 if (!processExportVar(VD)) {
|
slang_rs_export_type.cpp | 170 const clang::VarDecl *VD, 197 const clang::VarDecl *VD, 202 ReportTypeError(Context, VD, TopLevelRecord, 212 ReportTypeError(Context, VD, TopLevelRecord, 218 ReportTypeError(Context, VD, TopLevelRecord, 224 if (TypeExportableHelper(ElementType, SPS, Context, VD, 245 clang::VarDecl const *VD, 268 ReportTypeError(Context, VD, T->getAsUnionType()->getDecl(), 311 if (!TypeExportableHelper(FT, SPS, Context, VD, TopLevelRecord)) { 331 ReportTypeError(Context, VD, TopLevelRecord [all...] |
/external/clang/lib/Frontend/ |
ASTConsumers.cpp | 426 VarDecl* VD = cast<VarDecl>(I); 427 Out << "<var> " << *VD << '\n';
|
/external/clang/lib/Sema/ |
SemaAttr.cpp | 447 VarDecl *VD = Lookup.getAsSingle<VarDecl>(); 448 if (!VD) { 455 if (VD->isUsed()) 458 VD->addAttr(UnusedAttr::CreateImplicit(Context, IdTok.getLocation()));
|
SemaTemplateVariadic.cpp | 186 VarDecl *VD = I->getCapturedVar(); 187 if (VD->isParameterPack()) 188 Unexpanded.push_back(std::make_pair(VD, I->getLocation())); [all...] |
SemaExceptionSpec.cpp | 811 const ValueDecl *VD = dyn_cast<ValueDecl>(D); 812 if (!VD) // If we have no clue what we're calling, assume the worst. 820 QualType T = VD->getType(); [all...] |
Sema.cpp | 396 if (const VarDecl *VD = dyn_cast<VarDecl>(D)) { 402 if (VD->isReferenced() && 403 VD->isUsableInConstantExpressions(SemaRef->Context)) 408 const VarDecl *DeclToCheck = VD->getDefinition(); 414 DeclToCheck = VD->getMostRecentDecl(); 415 if (DeclToCheck != VD) 738 VarDecl *VD = (*T)->getActingDefinition(); 743 if (!VD || VD->isInvalidDecl() || !Seen.insert(VD)) [all...] |
/external/clang/lib/StaticAnalyzer/Core/ |
ExprEngineCXX.cpp | 485 const VarDecl *VD = CS->getExceptionDecl(); 486 if (!VD) { 492 SVal V = svalBuilder.conjureSymbolVal(CS, LCtx, VD->getType(), 495 state = state->bindLoc(state->getLValue(VD, LCtx), V);
|
ExprEngineC.cpp | 446 const VarDecl *VD = dyn_cast_or_null<VarDecl>(*DS->decl_begin()); 448 if (!VD) { 467 if (const Expr *InitEx = VD->getInit()) { 480 if (AMgr.getLangOpts().CPlusPlus && VD->getType()->isRecordType() && 481 !VD->getType()->isReferenceType()) { 504 evalBind(Dst2, DS, UpdatedN, state->getLValue(VD, LC), InitVal, true); [all...] |
BugReporterVisitors.cpp | 605 const VarDecl *VD = cast<VarDecl>(DS->getSingleDecl()); 606 if (VD->getInit()) { 844 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) { 845 if (!VD->getType()->isReferenceType()) 849 return MRMgr.getVarRegion(VD, N->getLocationContext()); [all...] |
/external/clang/include/clang/Analysis/Analyses/ |
ThreadSafetyCommon.h | 63 void handleDestructorCall(const VarDecl *VD, const CXXDestructorDecl *DD) {} 155 VarDecl *VD = const_cast<VarDecl*>(AD.getVarDecl()); 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/test/SemaCXX/ |
destructor.cpp | 205 struct VD: VB {}; 239 VD vd; use(vd); local 268 VD* vd = new VD[4]; local 269 delete[] vd; 295 VB* vb = new VD(); 299 VD* vd = new VD() local [all...] |