/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) 45 if (const DeclRefExpr *BR = FindBlockDeclRefExpr(Child, VD)) 69 const VarDecl *VD = VR->getDecl(); 71 if (VD->hasAttr<BlocksAttr>() || !VD->hasLocalStorage()) 74 // Get the VarRegion associated with VD in the local stack frame. 86 os << "Variable '" << VD->getName() 90 if (const Expr *Ex = FindBlockDeclRefExpr(BE->getBody(), VD))
|
DereferenceChecker.cpp | 66 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) { 68 << " variable '" << VD->getName() << "')"; 115 const VarDecl *VD; 117 std::tie(VD, Init) = parseAssignment(S); 118 if (VD && Init)
|
VLASizeChecker.cpp | 86 const VarDecl *VD = dyn_cast<VarDecl>(DS->getSingleDecl()); 87 if (!VD) 91 const VariableArrayType *VLA = Ctx.getAsVariableArrayType(VD->getType()); 170 state->getRegion(VD, LC)->getExtent(svalBuilder);
|
DeadStoresChecker.cpp | 208 void CheckVarDecl(const VarDecl *VD, const Expr *Ex, const Expr *Val, 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, DR, Val, dsk, Live) [all...] |
MacOSKeychainAPIChecker.cpp | 164 const ValueDecl *VD = DRE->getDecl(); 165 if (isa<ImplicitParamDecl>(VD) || isa<ParmVarDecl>(VD))
|
/external/clang/lib/StaticAnalyzer/Core/ |
CheckerHelpers.cpp | 52 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) 53 if (VD->isStaticLocal()) 78 const VarDecl *VD = 0; 86 VD = dyn_cast_or_null<VarDecl>(DE->getDecl()); 91 VD = dyn_cast_or_null<VarDecl>(PD->getSingleDecl()); 92 RHS = VD->getAnyInitializer(); 95 return std::make_pair(VD, RHS);
|
/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) +
|
/frameworks/compile/slang/ |
slang_rs_ast_replace.cpp | 93 clang::VarDecl* VD; 94 if ((VD = llvm::dyn_cast<clang::VarDecl>(D))) { 95 if (matchesExpr(VD->getInit())) { 96 VD->setInit(mNewExpr);
|
slang_rs_context.cpp | 79 bool RSContext::processExportVar(const clang::VarDecl *VD) { 80 slangAssert(!VD->getName().empty() && "Variable name should not be empty"); 82 RSExportType *ET = RSExportType::CreateFromDecl(this, VD); 86 RSExportVar *EV = new RSExportVar(this, VD, ET); 237 clang::VarDecl* VD = llvm::dyn_cast<clang::VarDecl>(D); 239 if (VD->getFormalLinkage() == clang::ExternalLinkage) { 240 clang::QualType QT = VD->getTypeSourceInfo()->getType(); 241 if (QT.isConstQualified() && !VD->hasInit()) { 242 if (Slang::IsLocInRSHeaderFile(VD->getLocation(), 249 DiagEngine->Report(VD->getLocation(), DiagEngine->getCustomDiagID [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 | 145 const VarDecl *VD = I.getVariable(); 146 if (VD->getName() == "self") 147 return dyn_cast<ImplicitParamDecl>(VD); 163 VarDecl *VD = LC.getCapturedVar(); 164 if (VD->getName() == "self") 165 return dyn_cast<ImplicitParamDecl>(VD); 499 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) { 500 if (!VD->hasLocalStorage()) { 501 if (Visited.insert(VD).second) 502 BEVals.push_back(VD, BC) [all...] |
LiveVariables.cpp | 291 if (const VarDecl *VD = dyn_cast<VarDecl>(DS->getSingleDecl())) { 292 for (const VariableArrayType* VA = FindVA(VD->getType()); 341 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) { 343 if (VD->getType()->isReferenceType()) 346 if (!isAlwaysAlive(VD)) { 348 val.liveDecls = LV.DSetFact.remove(val.liveDecls, VD); 358 for (const VarDecl *VD : 360 if (isAlwaysAlive(VD)) 362 val.liveDecls = LV.DSetFact.add(val.liveDecls, VD); 374 if (const auto *VD = dyn_cast<VarDecl>(DI)) [all...] |
/external/compiler-rt/lib/profile/ |
InstrProfilingValue.c | 205 ValueProfData *VD = (ValueProfData *)(*VDataArray); 229 serializeValueProfDataFromRT(&R, VD); 231 I->Values = VD; 232 RealSize += VD->TotalSize; 233 VD = (ValueProfData *)((char *)VD + VD->TotalSize);
|
/external/clang/lib/Frontend/ |
ASTConsumers.cpp | 435 VarDecl* VD = cast<VarDecl>(I); 436 Out << "<var> " << *VD << '\n';
|
/external/clang/lib/Sema/ |
SemaAttr.cpp | 459 VarDecl *VD = Lookup.getAsSingle<VarDecl>(); 460 if (!VD) { 467 if (VD->isUsed()) 470 VD->addAttr(UnusedAttr::CreateImplicit(Context, IdTok.getLocation()));
|
SemaExceptionSpec.cpp | [all...] |
SemaTemplateVariadic.cpp | 186 VarDecl *VD = I->getCapturedVar(); 187 if (VD->isParameterPack()) 188 Unexpanded.push_back(std::make_pair(VD, I->getLocation())); [all...] |
/external/llvm/lib/ProfileData/ |
InstrProf.cpp | 313 ValueProfData *VD = 315 memset(VD, 0, TotalSizeInBytes); 316 return VD; 371 InstrProfValueData *VD = getValueProfRecordValueData(this); 375 sys::swapByteOrder<uint64_t>(VD[I].Value); 376 sys::swapByteOrder<uint64_t>(VD[I].Count);
|
InstrProfWriter.cpp | 213 std::unique_ptr<InstrProfValueData[]> VD = Func.getValueForSite(VK, S); 216 OS << Symtab.getFuncName(VD[I].Value) << ":" << VD[I].Count << "\n"; 218 OS << VD[I].Value << ":" << VD[I].Count << "\n";
|
/external/llvm/tools/llvm-profdata/ |
llvm-profdata.cpp | 315 std::unique_ptr<InstrProfValueData[]> VD = 319 OS << Symtab.getFuncName(VD[V].Value) << ", " << VD[V].Count
|
/external/llvm/unittests/ProfileData/ |
InstrProfTest.cpp | 159 std::unique_ptr<InstrProfValueData[]> VD = 162 std::sort(&VD[0], &VD[3], 166 ASSERT_EQ(StringRef((const char *)VD[0].Value, 7), StringRef("callee3")); 167 ASSERT_EQ(StringRef((const char *)VD[1].Value, 7), StringRef("callee2")); 168 ASSERT_EQ(StringRef((const char *)VD[2].Value, 7), StringRef("callee1")); 213 std::unique_ptr<InstrProfValueData[]> VD = 216 std::sort(&VD[0], &VD[3], 220 ASSERT_EQ(StringRef((const char *)VD[0].Value, 7), StringRef("callee3")) [all...] |