/external/clang/include/clang/Analysis/Analyses/ |
H A D | PseudoConstantAnalysis.h | 28 bool isPseudoConstant(const VarDecl *VD); 29 bool wasReferenced(const VarDecl *VD);
|
/external/clang/test/CodeGenCXX/ |
H A D | builtins-systemz-zvector.cpp | 33 void testFloats(vector double VD) { argument 36 gb = (VD == CI1)[0]; 41 gb = (VD == CI2)[0]; 45 gb = (VD == CF1)[0]; 49 gb = (VD == CF2)[0];
|
H A D | mangle-alias-template.cpp | 20 Vec<double> VD; local 21 g(VD);
|
/external/clang/lib/Analysis/ |
H A D | PseudoConstantAnalysis.cpp | 39 bool PseudoConstantAnalysis::isPseudoConstant(const VarDecl *VD) { argument 41 if (!VD->hasLocalStorage() && !VD->isStaticLocal()) 51 return !NonConstants->count(VD); 55 bool PseudoConstantAnalysis::wasReferenced(const VarDecl *VD) { argument 63 return UsedVars->count(VD); 122 const VarDecl *VD = dyn_cast<VarDecl>(LHSDecl); local 124 if (VD) 125 NonConstants->insert(VD); 156 const VarDecl *VD local 174 const VarDecl *VD = dyn_cast<VarDecl>(I); local [all...] |
H A D | UninitializedValues.cpp | 296 if (const VarDecl *VD = dyn_cast<VarDecl>(DRE->getDecl())) 297 if (isTrackedVar(VD, DC)) 298 return FindVarResult(VD, DRE); 318 bool isTrackedVar(const VarDecl *VD) const { 319 return ::isTrackedVar(VD, DC); 341 const VarDecl *VD = dyn_cast<VarDecl>(DRE->getDecl()); local 342 if (!VD || !isTrackedVar(VD)) 350 static const DeclRefExpr *getSelfInitExpr(VarDecl *VD) { argument 351 if (VD 410 VarDecl *VD = dyn_cast<VarDecl>(DI); local 686 const VarDecl *VD = cast<VarDecl>(DS->getSingleDecl()); local 755 VarDecl *VD = dyn_cast<VarDecl>(DI); local [all...] |
H A D | ThreadSafetyCommon.cpp | 268 const ValueDecl *VD = cast<ValueDecl>(DRE->getDecl()->getCanonicalDecl()); local 271 if (const ParmVarDecl *PV = dyn_cast_or_null<ParmVarDecl>(VD)) { 283 VD = FD->getParamDecl(I); 287 return new (Arena) til::LiteralPtr(VD); 312 auto *VD = getValueDeclFromSExpr(E); local 313 if (VD && VD->getType()->isPointerType()) 341 if (auto *VD = dyn_cast<CXXMethodDecl>(D)) 342 D = getFirstVirtualDecl(VD); 474 const ValueDecl *VD local 611 addStatement(til::SExpr* E, const Stmt *S, const ValueDecl *VD) argument 624 lookupVarDecl(const ValueDecl *VD) argument 634 maybeUpdateVD(til::SExpr *E, const ValueDecl *VD) argument 644 addVarDecl(const ValueDecl *VD, til::SExpr *E) argument 653 updateVarDecl(const ValueDecl *VD, til::SExpr *E) argument 866 handleDestructorCall(const VarDecl *VD, const CXXDestructorDecl *DD) argument [all...] |
H A D | 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 383 const VarDecl *VD = nullptr; local [all...] |
/external/clang/lib/StaticAnalyzer/Checkers/ |
H A D | 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(); local 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)) 37 FindBlockDeclRefExpr(const Stmt *S, const VarDecl *VD) argument
|
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 434 VarDecl *VD = C.getCapturedVar(); local [all...] |
H A D | UndefinedAssignmentChecker.cpp | 79 const VarDecl *VD = dyn_cast<VarDecl>(DS->getSingleDecl()); local 80 ex = VD->getInit();
|
H A D | LLVMConventionsChecker.cpp | 134 void VisitVarDecl(VarDecl *VD); 148 if (VarDecl *VD = dyn_cast<VarDecl>(I)) 149 VisitVarDecl(VD); 152 void StringRefCheckerVisitor::VisitVarDecl(VarDecl *VD) { argument 153 Expr *Init = VD->getInit(); 159 if (!IsLLVMStringRef(VD->getType())) 184 PathDiagnosticLocation::createBegin(VD, BR.getSourceManager());
|
H A D | VLASizeChecker.cpp | 85 const VarDecl *VD = dyn_cast<VarDecl>(DS->getSingleDecl()); local 86 if (!VD) 90 const VariableArrayType *VLA = Ctx.getAsVariableArrayType(VD->getType()); 169 state->getRegion(VD, LC)->getExtent(svalBuilder);
|
/external/clang/lib/AST/ |
H A D | StmtIterator.cpp | 44 if (VarDecl* VD = dyn_cast<VarDecl>(*DGI)) 45 if (VD->hasInit()) 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 | ItaniumCXXABI.cpp | 42 static const IdentifierInfo *findAnonymousUnionVarDeclName(const VarDecl& VD) { argument 43 const RecordType *RT = VD.getType()->getAs<RecordType>(); 78 unsigned getStaticLocalNumber(const VarDecl *VD) override { 83 unsigned getManglingNumber(const VarDecl *VD, unsigned) override { 84 const IdentifierInfo *Identifier = VD->getIdentifier(); 87 Identifier = findAnonymousUnionVarDeclName(*VD);
|
/external/clang/lib/StaticAnalyzer/Core/ |
H A D | CheckerHelpers.cpp | 52 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) 53 if (VD->isStaticLocal()) 78 const VarDecl *VD = nullptr; local 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/unittests/AST/ |
H A D | EvaluateAsRValueTest.cpp | 43 bool VisitVarDecl(const clang::VarDecl *VD) { argument 44 if (const clang::Expr *Init = VD->getInit()) { 46 bool WasEvaluated = Init->EvaluateAsRValue(Result, VD->getASTContext()); 47 VarInfo[VD->getNameAsString()] = WasEvaluated; 48 EXPECT_EQ(WasEvaluated, Init->isConstantInitializer(VD->getASTContext(),
|
/external/clang/include/clang/AST/ |
H A D | MangleNumberingContext.h | 46 virtual unsigned getStaticLocalNumber(const VarDecl *VD) = 0; 50 virtual unsigned getManglingNumber(const VarDecl *VD,
|
/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/Tooling/ |
H A D | QualTypeNamesTest.cpp | 25 bool VisitValueDecl(const ValueDecl *VD) { argument 27 ExpectedQualTypeNames.lookup(VD->getNameAsString()); 30 TypeName::getFullyQualifiedName(VD->getType(), *Context, 36 << VD->getQualifiedNameAsString() << std::endl
|
H A D | RecursiveASTVisitorTest.cpp | 139 bool VisitVarDecl(VarDecl *VD) { argument 140 Match(VD->getNameAsString(), VD->getLocStart());
|
/external/clang/test/SemaCXX/ |
H A D | destructor.cpp | 211 struct VD: VB {}; struct in namespace:dnvd 245 VD vd; use(vd); 275 VD* vd = new VD[4]; 302 VB* vb = new VD(); 306 VD* vd = new VD(); 315 void nowarn0_explicit_dtor(F* f, VB* vb, VD* vd, VF* vf) { 319 vd->~VD(); 359 simple_ptr<VB> vb(new VD()); [all...] |
/external/clang/test/CodeGenCUDA/Inputs/ |
H A D | cuda-initializers.h | 70 struct VD { struct 71 __device__ virtual ~VD() {}
|
/external/clang/test/SemaCUDA/Inputs/ |
H A D | cuda-initializers.h | 70 struct VD { struct 71 __device__ virtual ~VD() {}
|
/external/clang/lib/Sema/ |
H A D | SemaOpenMP.cpp | 329 ValueDecl *VD, bool CurrentRegionOnly, 345 auto MI = SI->MappedExprComponents.find(VD); 357 ValueDecl *VD, 361 auto &MEC = Stack.back().MappedExprComponents[VD]; 394 auto *VD = dyn_cast<VarDecl>(D); local 396 if (VD != nullptr) { 397 VD = VD->getCanonicalDecl(); 398 D = VD; 410 auto *VD local 328 checkMappableExprComponentListsForDecl( ValueDecl *VD, bool CurrentRegionOnly, const llvm::function_ref<bool( OMPClauseMappableExprCommon::MappableExprComponentListRef)> &Check) argument 356 addMappableExpressionComponents( ValueDecl *VD, OMPClauseMappableExprCommon::MappableExprComponentListRef Components) argument 651 auto *VD = dyn_cast<VarDecl>(D); local 991 auto *VD = dyn_cast<VarDecl>(D); local [all...] |
/external/clang/include/clang/StaticAnalyzer/Checkers/ |
H A D | SValExplainer.h | 175 const VarDecl *VD = R->getDecl(); local 176 std::string Name = VD->getQualifiedNameAsString(); 177 if (isa<ParmVarDecl>(VD)) 179 else if (VD->hasLocalStorage()) 181 else if (VD->isStaticLocal()) 183 else if (VD->hasGlobalStorage())
|