/external/clang/include/clang/Analysis/Analyses/ |
PseudoConstantAnalysis.h | 28 bool isPseudoConstant(const VarDecl *VD); 29 bool wasReferenced(const VarDecl *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...] |
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:__anon22405::FindVarResult 636 const VarDecl *vd = I.getVariable(); local [all...] |
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...] |
/external/clang/include/clang/AST/ |
MangleNumberingContext.h | 49 unsigned getStaticLocalNumber(const VarDecl *VD); 53 virtual unsigned getManglingNumber(const VarDecl *VD,
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
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))
|
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...] |
UndefinedAssignmentChecker.cpp | 79 const VarDecl *VD = dyn_cast<VarDecl>(DS->getSingleDecl()); 80 ex = VD->getInit();
|
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);
|
/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();
|
MangleNumberingContext.cpp | 41 MangleNumberingContext::getStaticLocalNumber(const VarDecl *VD) {
|
ItaniumCXXABI.cpp | 40 unsigned getManglingNumber(const VarDecl *VD, unsigned) override { 41 return ++VarManglingNumbers[VD->getIdentifier()];
|
/frameworks/compile/slang/ |
slang_rs_export_var.cpp | 30 const clang::VarDecl *VD, 33 mName(VD->getName().data(), VD->getName().size()), 40 const clang::Expr *Initializer = VD->getAnyInitializer(); 64 Context->ReportError(VD->getLocation(), 86 VD->getLocation(), 98 clang::QualType QT = VD->getTypeSourceInfo()->getType();
|
slang_rs_check_ast.cpp | 185 void RSCheckAST::ValidateVarDecl(clang::VarDecl *VD) { 186 if (!VD) { 190 clang::QualType QT = VD->getType(); 192 if (VD->getFormalLinkage() == clang::ExternalLinkage) { 195 if (!RSExportType::NormalizeType(T, TypeName, Context, VD)) { 201 if (mInKernel && VD->isStaticLocal()) { 204 VD->getLocation(), 206 << VD->getName(); 211 if (!RSExportType::ValidateVarDecl(Context, VD, mTargetAPI, mIsFilterscript)) { 213 } else if (clang::Expr *Init = VD->getInit()) [all...] |
slang_rs_object_ref_count.h | 56 inline void addRSObject(clang::VarDecl* VD) { 57 mRSO.push_back(VD); 62 void AppendRSObjectInit(clang::VarDecl *VD, 69 static clang::Stmt *ClearRSObject(clang::VarDecl *VD, 89 // Return false if the type of variable declared in VD does not contain 91 static bool InitializeRSObject(clang::VarDecl *VD,
|
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...] |
slang_rs_object_ref_count.cpp | 546 // Body -> "rsClearObject(&VD[rsIntIter]);" [all...] |
/external/clang/unittests/AST/ |
EvaluateAsRValueTest.cpp | 45 bool VisitVarDecl(const clang::VarDecl *VD) { 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/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/test/CodeGenCXX/ |
mangle-alias-template.cpp | 20 Vec<double> VD; 21 g(VD);
|
/external/clang/lib/Sema/ |
SemaOpenMP.cpp | 495 auto VD = cast<VarDecl>(cast<DeclRefExpr>(VarRef)->getDecl()); 496 auto DVar = DSAStack->getTopDSA(VD); 517 bool IsDecl = VD->isThisDeclarationADefinition(Context) == 519 Diag(VD->getLocation(), IsDecl ? diag::note_previous_decl 521 << VD; 549 if (VarDecl *VD = dyn_cast_or_null<VarDecl>(ND)) { 550 return VD->hasGlobalStorage() && 568 VarDecl *VD; 579 VD = Corrected.getCorrectionDeclAs<VarDecl>(); 587 if (!(VD = Lookup.getAsSingle<VarDecl>())) [all...] |
/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...] |
/external/clang/lib/StaticAnalyzer/Core/ |
CheckerHelpers.cpp | 55 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) 56 if (VD->isStaticLocal())
|