/external/clang/include/clang/Analysis/Analyses/ |
H A D | PseudoConstantAnalysis.h | 28 bool isPseudoConstant(const VarDecl *VD); 29 bool wasReferenced(const VarDecl *VD);
|
H A D | ThreadSafetyCommon.h | 105 void handleDestructorCall(const VarDecl *VD, const CXXDestructorDecl *DD) {} argument 197 VarDecl *VD = const_cast<VarDecl*>(AD.getVarDecl()); local 198 V.handleDestructorCall(VD, DD); 447 void handleDestructorCall(const VarDecl *VD, const CXXDestructorDecl *DD); 458 til::SExpr *getCurrentLVarDefinition(const ValueDecl *VD); 461 const ValueDecl *VD = nullptr); 462 til::SExpr *lookupVarDecl(const ValueDecl *VD); 463 til::SExpr *addVarDecl(const ValueDecl *VD, til::SExpr *E); 464 til::SExpr *updateVarDecl(const ValueDecl *VD, til::SExpr *E);
|
/external/clang/lib/Analysis/ |
H A D | PseudoConstantAnalysis.cpp | 41 bool PseudoConstantAnalysis::isPseudoConstant(const VarDecl *VD) { argument 43 if (!VD->hasLocalStorage() && !VD->isStaticLocal()) 53 return !NonConstants->count(VD); 57 bool PseudoConstantAnalysis::wasReferenced(const VarDecl *VD) { argument 65 return UsedVars->count(VD); 124 const VarDecl *VD = dyn_cast<VarDecl>(LHSDecl); local 126 if (VD) 127 NonConstants->insert(VD); 158 const VarDecl *VD local 176 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 | 275 const ValueDecl *VD = cast<ValueDecl>(DRE->getDecl()->getCanonicalDecl()); local 278 if (const ParmVarDecl *PV = dyn_cast_or_null<ParmVarDecl>(VD)) { 290 VD = FD->getParamDecl(I); 294 return new (Arena) til::LiteralPtr(VD); 320 auto *VD = getValueDeclFromSExpr(E); local 321 if (VD && VD->getType()->isPointerType()) 348 if (auto *VD = dyn_cast<CXXMethodDecl>(D)) 349 D = getFirstVirtualDecl(VD); 486 const ValueDecl *VD local 630 addStatement(til::SExpr* E, const Stmt *S, const ValueDecl *VD) argument 644 lookupVarDecl(const ValueDecl *VD) argument 655 maybeUpdateVD(til::SExpr *E, const ValueDecl *VD) argument 665 addVarDecl(const ValueDecl *VD, til::SExpr *E) argument 675 updateVarDecl(const ValueDecl *VD, til::SExpr *E) argument 898 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()); 342 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) { 344 if (VD->getType()->isReferenceType()) 347 if (!isAlwaysAlive(VD)) { 349 val.liveDecls = LV.DSetFact.remove(val.liveDecls, VD); 359 for (const VarDecl *VD : 361 if (isAlwaysAlive(VD)) 363 val.liveDecls = LV.DSetFact.add(val.liveDecls, VD); 375 if (const auto *VD 384 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) 46 const DeclRefExpr *BR = FindBlockDeclRefExpr(child, VD); 72 const VarDecl *VD = VR->getDecl(); local 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)) 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 [all...] |
H A D | UndefinedAssignmentChecker.cpp | 79 const VarDecl *VD = dyn_cast<VarDecl>(DS->getSingleDecl()); local 80 ex = VD->getInit();
|
H A D | VLASizeChecker.cpp | 86 const VarDecl *VD = dyn_cast<VarDecl>(DS->getSingleDecl()); local 87 if (!VD) 91 const VariableArrayType *VLA = Ctx.getAsVariableArrayType(VD->getType()); 170 state->getRegion(VD, LC)->getExtent(svalBuilder);
|
H A D | LLVMConventionsChecker.cpp | 135 void VisitVarDecl(VarDecl *VD); 149 if (VarDecl *VD = dyn_cast<VarDecl>(I)) 150 VisitVarDecl(VD); 153 void StringRefCheckerVisitor::VisitVarDecl(VarDecl *VD) { argument 154 Expr *Init = VD->getInit(); 160 if (!IsLLVMStringRef(VD->getType())) 185 PathDiagnosticLocation::createBegin(VD, BR.getSourceManager());
|
/external/clang/lib/AST/ |
H A D | 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); 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);
|
H A D | APValue.cpp | 404 if (const ValueDecl *VD = Base.dyn_cast<const ValueDecl*>()) 405 Out << *VD; local 428 if (const ValueDecl *VD = Base.dyn_cast<const ValueDecl*>()) { 429 Out << *VD; local 430 ElemTy = VD->getType(); 450 const ValueDecl *VD = cast<ValueDecl>(BaseOrMember); local 454 Out << *VD; local 455 ElemTy = VD->getType(); 530 if (const ValueDecl *VD = getMemberPointerDecl()) { 531 Out << '&' << *cast<CXXRecordDecl>(VD [all...] |
/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/CodeGenCXX/ |
H A D | mangle-alias-template.cpp | 20 Vec<double> VD; local 21 g(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/test/SemaCXX/ |
H A D | destructor.cpp | 211 struct VD: VB {}; struct in namespace:dnvd 245 VD vd; use(vd); 274 VD* vd = new VD[4]; 301 VB* vb = new VD(); 305 VD* vd = new VD(); 339 simple_ptr<VB> vb(new VD()); 343 simple_ptr<VD> vd(new VD()); [all...] |
/external/clang/lib/StaticAnalyzer/Core/ |
H A D | CheckerHelpers.cpp | 55 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) 56 if (VD->isStaticLocal())
|
/external/clang/lib/Sema/ |
H A D | SemaOpenMP.cpp | 555 bool Sema::IsOpenMPCapturedVar(VarDecl *VD) { argument 557 VD = VD->getCanonicalDecl(); 559 auto DVarPrivate = DSAStack->getTopDSA(VD, /*FromParent=*/false); 562 DVarPrivate = DSAStack->hasDSA(VD, isOpenMPPrivate, MatchesAlways(), 593 auto *VD = cast<VarDecl>(cast<DeclRefExpr>(DE)->getDecl()); local 594 auto DVar = DSAStack->getTopDSA(VD, false); 603 VD->getIdentifier(), VD->getType(), VD 824 VarDecl *VD = cast<VarDecl>(DE->getDecl()); local 891 ReportOriginalDSA(Sema &SemaRef, DSAStackTy *Stack, const VarDecl *VD, DSAStackTy::DSAVarData DVar, bool IsLoopIterVar = false) argument 4642 VarDecl *VD = cast<VarDecl>(D); local 4782 VarDecl *VD = cast<VarDecl>(D); local 5014 VarDecl *VD = cast<VarDecl>(D); local 5147 VarDecl *VD = cast<VarDecl>(D); local 5357 auto VD = cast<VarDecl>(D); local 5674 VarDecl *VD = cast<VarDecl>(DE->getDecl()); local 5871 VarDecl *VD = cast<VarDecl>(DE->getDecl()); local 5955 VarDecl *VD = cast<VarDecl>(D); local 6045 VarDecl *VD = cast<VarDecl>(D); local [all...] |
H A D | AnalysisBasedWarnings.cpp | 605 static bool SuggestInitializationFixit(Sema &S, const VarDecl *VD) { argument 606 QualType VariableTy = VD->getType().getCanonicalType(); 608 !VD->hasAttr<BlocksAttr>()) { 609 S.Diag(VD->getLocation(), diag::note_block_var_fixit_add_initialization) 610 << VD->getDeclName() 611 << FixItHint::CreateInsertion(VD->getLocation(), "__block "); 616 if (VD->getInit()) 620 if (VD->getLocEnd().isMacroID()) 623 SourceLocation Loc = S.getLocForEndOfToken(VD->getLocEnd()); 630 S.Diag(Loc, diag::note_var_fixit_add_initialization) << VD 664 DiagUninitUse(Sema &S, const VarDecl *VD, const UninitUse &Use, bool IsCapturedByBlock) argument 836 DiagnoseUninitializedUse(Sema &S, const VarDecl *VD, const UninitUse &Use, bool alwaysReportSelfInit = false) argument [all...] |
/external/clang/lib/CodeGen/ |
H A D | ModuleBuilder.cpp | 107 void HandleCXXStaticMemberVarInstantiation(VarDecl *VD) override { 111 Builder->HandleCXXStaticMemberVarInstantiation(VD); 177 if (VarDecl *VD = dyn_cast<VarDecl>(Member)) { 178 if (Ctx->isMSStaticDataMemberInlineDefinition(VD) && 179 Ctx->DeclMustBeEmitted(VD)) { 180 Builder->EmitGlobal(VD);
|
H A D | CGDebugInfo.cpp | 1281 if (const auto *VD = dyn_cast<VarDecl>(D)) 1282 V = CGM.GetAddrOfGlobalVar(VD); 2342 void CGDebugInfo::collectVarDeclProps(const VarDecl *VD, llvm::DIFile &Unit, argument 2346 Unit = getOrCreateFile(VD->getLocation()); 2347 LineNo = getLineNumber(VD->getLocation()); 2349 setLocation(VD->getLocation()); 2351 T = VD->getType(); 2361 Name = VD->getName(); 2362 if (VD->getDeclContext() && !isa<FunctionDecl>(VD 2419 getGlobalVariableForwardDeclaration(const VarDecl *VD) argument 2722 EmitTypeForVarWithBlocksAttr(const VarDecl *VD, uint64_t *XOffset) argument 2796 EmitDeclare(const VarDecl *VD, llvm::dwarf::Tag Tag, llvm::Value *Storage, unsigned ArgNo, CGBuilderTy &Builder) argument 2909 EmitDeclareOfAutoVariable(const VarDecl *VD, llvm::Value *Storage, CGBuilderTy &Builder) argument 2930 EmitDeclareOfBlockDeclRefVariable( const VarDecl *VD, llvm::Value *Storage, CGBuilderTy &Builder, const CGBlockInfo &blockInfo, llvm::Instruction *InsertPoint) argument 3001 EmitDeclareOfArgVariable(const VarDecl *VD, llvm::Value *AI, unsigned ArgNo, CGBuilderTy &Builder) argument 3248 EmitGlobalVariable(const ValueDecl *VD, llvm::Constant *Init) argument [all...] |
/external/clang/lib/ARCMigrate/ |
H A D | TransAutoreleasePool.cpp | 172 if (VarDecl *VD = dyn_cast<VarDecl>(DclS->getSingleDecl())) { 173 if (isNSAutoreleasePool(VD->getType())) { 174 PoolVarInfo &info = PoolVars[VD]; 176 collectRefs(VD, S, info.Refs); 179 if (isPoolCreation(VD->getInit())) { 181 Scopes.back().PoolVar = VD; 190 if (VarDecl *VD = dyn_cast<VarDecl>(dref->getDecl())) { 193 if (isNSAutoreleasePool(VD->getType()) && 196 Scopes.back().PoolVar = VD;
|