/external/clang/lib/AST/ |
StmtIterator.cpp | 44 if (VarDecl* VD = dyn_cast<VarDecl>(decl)) 45 if (VD->Init) 51 if (VarDecl* VD = dyn_cast<VarDecl>(*DGI)) 52 if (VD->Init) 92 if (VarDecl* VD = dyn_cast<VarDecl>(D)) { 93 if (const VariableArrayType* VAPtr = FindVA(VD->getType().getTypePtr())) { 98 if (VD->getInit()) 142 VarDecl* VD = cast<VarDecl>(*DGI); 143 return *VD->getInitAddress(); 148 if (VarDecl* VD = dyn_cast<VarDecl>(decl)) [all...] |
APValue.cpp | 367 if (const ValueDecl *VD = Base.dyn_cast<const ValueDecl*>()) 368 Out << *VD; 386 if (const ValueDecl *VD = Base.dyn_cast<const ValueDecl*>()) { 387 Out << *VD; 388 ElemTy = VD->getType(); 407 const ValueDecl *VD = cast<ValueDecl>(BaseOrMember); 411 Out << *VD; 412 ElemTy = VD->getType(); 488 if (const ValueDecl *VD = getMemberPointerDecl()) { 489 Out << '&' << *cast<CXXRecordDecl>(VD->getDeclContext()) << "::" << *VD [all...] |
DumpXML.cpp | 540 NamedDecl *VD = const_cast<NamedDecl*>(*I); 541 push(isa<VarDecl>(VD) ? "variable" : "field"); 542 setPointer("ptr", VD);
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
UndefinedAssignmentChecker.cpp | 71 const VarDecl *VD = dyn_cast<VarDecl>(DS->getSingleDecl()); 72 ex = VD->getInit();
|
UndefCapturedBlockVarChecker.cpp | 37 const VarDecl *VD) { 39 if (BR->getDecl() == VD) 45 const DeclRefExpr *BR = FindBlockDeclRefExpr(child, VD); 71 const VarDecl *VD = VR->getDecl(); 73 if (VD->getAttr<BlocksAttr>() || !VD->hasLocalStorage()) 76 // Get the VarRegion associated with VD in the local stack frame. 78 VR = C.getSValBuilder().getRegionManager().getVarRegion(VD, LC); 90 os << "Variable '" << VD->getName() 94 if (const Expr *Ex = FindBlockDeclRefExpr(BE->getBody(), VD)) [all...] |
VLASizeChecker.cpp | 81 const VarDecl *VD = dyn_cast<VarDecl>(DS->getSingleDecl()); 82 if (!VD) 86 const VariableArrayType *VLA = Ctx.getAsVariableArrayType(VD->getType()); 146 state->getRegion(VD, LC)->getExtent(svalBuilder);
|
IdempotentOperationChecker.cpp | 477 const VarDecl *VD = dyn_cast<VarDecl>(LHS_DR->getDecl()); 478 if (!VD) 485 if (VD != RHS_DR->getDecl()) 502 const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl()); 503 if (!VD) 506 if (AC->getPseudoConstantAnalysis()->wasReferenced(VD)) 521 const VarDecl *VD = dyn_cast<VarDecl>(LHS_DR->getDecl()); 522 if (!VD) 529 if (VD != RHS_DR->getDecl()) 714 const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl()) [all...] |
MacOSKeychainAPIChecker.cpp | 175 const ValueDecl *VD = DRE->getDecl(); 176 if (isa<ImplicitParamDecl>(VD) || isa<ParmVarDecl>(VD))
|
/external/clang/test/CodeGenCXX/ |
mangle-alias-template.cpp | 24 Vec<double> VD; 25 g(VD);
|
/external/clang/lib/Sema/ |
TargetAttributesSema.cpp | 135 ValueDecl *VD = dyn_cast<ValueDecl>(D); 136 if (VD && VD->getType()->isFunctionPointerType())
|
SemaAttr.cpp | 286 VarDecl *VD = Lookup.getAsSingle<VarDecl>(); 287 if (!VD) { 294 if (VD->isUsed()) 297 VD->addAttr(::new (Context) UnusedAttr(IdTok.getLocation(), Context));
|
SemaExceptionSpec.cpp | 784 const ValueDecl *VD = dyn_cast<ValueDecl>(D); 785 if (!VD) // If we have no clue what we're calling, assume the worst. 793 QualType T = VD->getType(); [all...] |
Sema.cpp | 336 if (const VarDecl *VD = dyn_cast<VarDecl>(D)) { 339 const VarDecl *DeclToCheck = VD->getDefinition(); 345 DeclToCheck = VD->getMostRecentDecl(); 346 if (DeclToCheck != VD) 629 VarDecl *VD = (*T)->getActingDefinition(); 634 if (VD == 0 || VD->isInvalidDecl() || !Seen.insert(VD)) 638 = Context.getAsIncompleteArrayType(VD->getType())) { 639 if (RequireCompleteType(VD->getLocation() [all...] |
/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 | 101 const VarDecl *VD = it->getVariable(); 102 if (VD->getName() == "self") 103 return dyn_cast<ImplicitParamDecl>(VD); 364 bool IsTrackedDecl(const VarDecl *VD) { 365 const DeclContext *DC = VD->getDeclContext(); 377 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) { 378 if (!VD->hasLocalStorage()) { 379 if (Visited.insert(VD)) 380 BEVals.push_back(VD, BC); 382 if (Visited.insert(VD) && IsTrackedDecl(VD) [all...] |
LiveVariables.cpp | 297 if (const VarDecl *VD = dyn_cast<VarDecl>(DS->getSingleDecl())) { 298 for (const VariableArrayType* VA = FindVA(VD->getType()); 348 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) { 350 if (VD->getType()->isReferenceType()) 353 if (!isAlwaysAlive(VD)) { 355 val.liveDecls = LV.DSetFact.remove(val.liveDecls, VD); 369 const VarDecl *VD = *I; 370 if (isAlwaysAlive(VD)) 372 val.liveDecls = LV.DSetFact.add(val.liveDecls, VD); 385 if (VarDecl *VD = dyn_cast<VarDecl>(*DI)) [all...] |
UninitializedValues.cpp | 31 static bool isTrackedVar(const VarDecl *vd, const DeclContext *dc) { 32 if (vd->isLocalVarDecl() && !vd->hasGlobalStorage() && 33 !vd->isExceptionVariable() && 34 vd->getDeclContext() == dc) { 35 QualType ty = vd->getType(); 67 const VarDecl *vd = *I; local 68 if (isTrackedVar(vd, &dc)) 69 map[vd] = count++; 128 ValueVector::reference operator[](const VarDecl *vd); 254 const VarDecl *vd; member in class:__anon5106::FindVarResult 596 const VarDecl *vd = i->getVariable(); local [all...] |
/frameworks/compile/slang/ |
slang_rs_context.cpp | 86 bool RSContext::processExportVar(const clang::VarDecl *VD) { 87 slangAssert(!VD->getName().empty() && "Variable name should not be empty"); 91 RSExportType *ET = RSExportType::CreateFromDecl(this, VD); 95 RSExportVar *EV = new RSExportVar(this, VD, ET); 234 clang::VarDecl *VD = (clang::VarDecl*) (*DI); 235 if (VD->getLinkage() == clang::ExternalLinkage) { 236 if (!processExportVar(VD)) {
|
slang_rs_export_type.cpp | 88 const clang::VarDecl *VD, 124 const clang::VarDecl *VD, 129 ReportTypeError(DiagEngine, VD, TopLevelRecord, 139 ReportTypeError(DiagEngine, VD, TopLevelRecord, 145 ReportTypeError(DiagEngine, VD, TopLevelRecord, 151 if (TypeExportableHelper(ElementType, SPS, DiagEngine, VD, 163 clang::VarDecl const *VD, 195 ReportTypeError(DiagEngine, VD, T->getAsUnionType()->getDecl(), 238 if (!TypeExportableHelper(FT, SPS, DiagEngine, VD, TopLevelRecord)) { 264 ReportTypeError(DiagEngine, VD, TopLevelRecord [all...] |
/external/clang/lib/Frontend/ |
ASTConsumers.cpp | 422 VarDecl* VD = cast<VarDecl>(*I); 423 Out << "<var> " << *VD << '\n';
|
/external/clang/lib/StaticAnalyzer/Core/ |
ExprEngineCXX.cpp | 286 const VarDecl *VD = CS->getExceptionDecl(); 287 if (!VD) { 293 SVal V = svalBuilder.conjureSymbolVal(CS, LCtx, VD->getType(), 296 state = state->bindLoc(state->getLValue(VD, LCtx), V);
|
ExprEngineC.cpp | 445 const VarDecl *VD = dyn_cast<VarDecl>(D); 454 if (const Expr *InitEx = VD->getInit()) { 457 if (InitVal == state->getLValue(VD, LC) || 458 (VD->getType()->isArrayType() && 466 if (AMgr.getLangOpts().CPlusPlus && VD->getType()->isRecordType() && 467 !VD->getType()->isReferenceType() && isa<loc::MemRegionVal>(InitVal)){ 485 evalBind(Dst2, DS, N, state->getLValue(VD, LC), InitVal, true); [all...] |
BugReporterVisitors.cpp | 342 const VarDecl *VD = cast<VarDecl>(DS->getSingleDecl()); 343 if (VD->getInit()) 483 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) { 485 StateMgr.getRegionManager().getVarRegion(VD, N->getLocationContext()); 595 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) { 597 StateMgr.getRegionManager().getVarRegion(VD, N->getLocationContext()); 906 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) { 908 if (const MemRegion *R = state->getLValue(VD, LCtx).getAsRegion()) { 926 const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl()); 927 if (!VD) [all...] |
/external/clang/test/SemaCXX/ |
destructor.cpp | 192 struct VD: VB {}; 226 VD vd; use(vd); local 255 VD* vd = new VD[4]; local 256 delete[] vd; 282 VB* vb = new VD(); 286 VD* vd = new VD() local [all...] |
/external/clang/lib/CodeGen/ |
CGDecl.cpp | 90 const VarDecl &VD = cast<VarDecl>(D); 91 assert(VD.isLocalVarDecl() && 93 return EmitVarDecl(VD); [all...] |