/freebsd-10.3-release/contrib/llvm/tools/clang/include/clang/Analysis/Analyses/ |
H A D | PseudoConstantAnalysis.h | 28 bool isPseudoConstant(const VarDecl *VD); 29 bool wasReferenced(const VarDecl *VD);
|
/freebsd-10.3-release/contrib/llvm/tools/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 177 const VarDecl *VD = dyn_cast<VarDecl>(*I); local [all...] |
H A D | UninitializedValues.cpp | 295 if (const VarDecl *VD = dyn_cast<VarDecl>(DRE->getDecl())) 296 if (isTrackedVar(VD, DC)) 297 return FindVarResult(VD, DRE); 317 bool isTrackedVar(const VarDecl *VD) const { 318 return ::isTrackedVar(VD, DC); 340 const VarDecl *VD = dyn_cast<VarDecl>(DRE->getDecl()); local 341 if (!VD || !isTrackedVar(VD)) 349 static const DeclRefExpr *getSelfInitExpr(VarDecl *VD) { argument 350 if (Expr *Init = VD 378 VarDecl *VD = dyn_cast<VarDecl>(*DI); local 625 const VarDecl *VD = cast<VarDecl>(DS->getSingleDecl()); local 696 VarDecl *VD = dyn_cast<VarDecl>(*DI); local [all...] |
H A D | LiveVariables.cpp | 306 if (const VarDecl *VD = dyn_cast<VarDecl>(DS->getSingleDecl())) { 307 for (const VariableArrayType* VA = FindVA(VD->getType()); 357 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) { 359 if (VD->getType()->isReferenceType()) 362 if (!isAlwaysAlive(VD)) { 364 val.liveDecls = LV.DSetFact.remove(val.liveDecls, VD); 378 const VarDecl *VD = *I; local 379 if (isAlwaysAlive(VD)) 381 val.liveDecls = LV.DSetFact.add(val.liveDecls, VD); 394 if (VarDecl *VD 403 const VarDecl *VD = 0; local [all...] |
/freebsd-10.3-release/contrib/llvm/tools/clang/include/clang/Sema/ |
H A D | SemaLambda.h | 30 // If VarDecl *VD is null, we check for 'this' capture.
35 DeclContext *const CurContext, VarDecl *VD, Sema &S);
|
/freebsd-10.3-release/contrib/llvm/tools/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->getAttr<BlocksAttr>() || !VD->hasLocalStorage()) 77 // Get the VarRegion associated with VD in the local stack frame. 88 os << "Variable '" << VD->getName() 92 if (const Expr *Ex = FindBlockDeclRefExpr(BE->getBody(), VD)) 37 FindBlockDeclRefExpr(const Stmt *S, const VarDecl *VD) argument
|
H A D | DeadStoresChecker.cpp | 205 void CheckVarDecl(const VarDecl *VD, const Expr *Ex, const Expr *Val, argument 209 if (!VD->hasLocalStorage()) 213 if (VD->getType()->getAs<ReferenceType>()) 216 if (!isLive(Live, VD) && 217 !(VD->getAttr<UnusedAttr>() || VD->getAttr<BlocksAttr>())) { 221 Report(VD, dsk, ExLoc, Val->getSourceRange()); 227 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) 228 CheckVarDecl(VD, DR, Val, dsk, Live); 231 bool isIncrement(VarDecl *VD, cons 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 | 82 const VarDecl *VD = dyn_cast<VarDecl>(DS->getSingleDecl()); local 83 if (!VD) 87 const VariableArrayType *VLA = Ctx.getAsVariableArrayType(VD->getType()); 147 state->getRegion(VD, LC)->getExtent(svalBuilder);
|
H A D | IdempotentOperationChecker.cpp | 478 const VarDecl *VD = dyn_cast<VarDecl>(LHS_DR->getDecl()); local 479 if (!VD) 486 if (VD != RHS_DR->getDecl()) 503 const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl()); local 504 if (!VD) 507 if (AC->getPseudoConstantAnalysis()->wasReferenced(VD)) 522 const VarDecl *VD = dyn_cast<VarDecl>(LHS_DR->getDecl()); local 523 if (!VD) 530 if (VD != RHS_DR->getDecl()) 701 const VarDecl *VD local [all...] |
H A D | LLVMConventionsChecker.cpp | 132 void VisitVarDecl(VarDecl *VD); 145 if (VarDecl *VD = dyn_cast<VarDecl>(*I)) 146 VisitVarDecl(VD); 149 void StringRefCheckerVisitor::VisitVarDecl(VarDecl *VD) { argument 150 Expr *Init = VD->getInit(); 156 if (!IsLLVMStringRef(VD->getType())) 181 PathDiagnosticLocation::createBegin(VD, BR.getSourceManager());
|
H A D | DereferenceChecker.cpp | 64 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) { 66 << " variable '" << VD->getName() << "')"; 118 if (const VarDecl *VD = dyn_cast<VarDecl>(DS->getSingleDecl())) 119 if (const Expr *Init = VD->getAnyInitializer())
|
/freebsd-10.3-release/contrib/llvm/tools/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 | 39 virtual unsigned getManglingNumber(const VarDecl *VD) { argument 40 return ++VarManglingNumbers[VD->getIdentifier()];
|
H A D | APValue.cpp | 403 if (const ValueDecl *VD = Base.dyn_cast<const ValueDecl*>()) 404 Out << *VD; local 422 if (const ValueDecl *VD = Base.dyn_cast<const ValueDecl*>()) { 423 Out << *VD; local 424 ElemTy = VD->getType(); 443 const ValueDecl *VD = cast<ValueDecl>(BaseOrMember); local 447 Out << *VD; local 448 ElemTy = VD->getType(); 524 if (const ValueDecl *VD = getMemberPointerDecl()) { 525 Out << '&' << *cast<CXXRecordDecl>(VD [all...] |
/freebsd-10.3-release/contrib/llvm/tools/clang/lib/Sema/ |
H A D | SemaOpenMP.cpp | 386 if (VarDecl *VD = dyn_cast_or_null<VarDecl>(ND)) { 387 return VD->hasGlobalStorage() && 405 VarDecl *VD; 414 VD = Corrected.getCorrectionDeclAs<VarDecl>(); 422 if (!(VD = Lookup.getAsSingle<VarDecl>())) { 433 if (!VD->hasGlobalStorage()) { 436 << !VD->isStaticLocal(); 437 bool IsDecl = VD->isThisDeclarationADefinition(Context) == 439 Diag(VD->getLocation(), 440 IsDecl ? diag::note_previous_decl : diag::note_defined_here) << VD; 535 VarDecl *VD = cast<VarDecl>(DE->getDecl()); local 823 VarDecl *VD = cast<VarDecl>(D); local 956 VarDecl *VD = cast<VarDecl>(D); local 1127 VarDecl *VD = cast<VarDecl>(D); local [all...] |
H A D | AnalysisBasedWarnings.cpp | 434 static bool SuggestInitializationFixit(Sema &S, const VarDecl *VD) { argument 435 QualType VariableTy = VD->getType().getCanonicalType(); 437 !VD->hasAttr<BlocksAttr>()) { 438 S.Diag(VD->getLocation(), diag::note_block_var_fixit_add_initialization) << VD->getDeclName() 439 << FixItHint::CreateInsertion(VD->getLocation(), "__block "); 444 if (VD->getInit()) 448 if (VD->getLocEnd().isMacroID()) 451 SourceLocation Loc = S.PP.getLocForEndOfToken(VD->getLocEnd()); 458 S.Diag(Loc, diag::note_var_fixit_add_initialization) << VD 492 DiagUninitUse(Sema &S, const VarDecl *VD, const UninitUse &Use, bool IsCapturedByBlock) argument 664 DiagnoseUninitializedUse(Sema &S, const VarDecl *VD, const UninitUse &Use, bool alwaysReportSelfInit = false) argument [all...] |
H A D | ScopeInfo.cpp | 187 void LambdaScopeInfo::getPotentialVariableCapture(unsigned Idx, VarDecl *&VD, Expr *&E) { argument 193 VD = dyn_cast<VarDecl>(DRE->getFoundDecl()); 195 VD = dyn_cast<VarDecl>(ME->getMemberDecl()); 199 assert(VD);
|
H A D | TargetAttributesSema.cpp | 133 ValueDecl *VD = dyn_cast<ValueDecl>(D); local 134 if (VD && VD->getType()->isFunctionPointerType()) 162 if (VarDecl *VD = dyn_cast<VarDecl>(D)) { 163 if (VD->hasDefinition()) {
|
H A D | Sema.cpp | 361 if (const VarDecl *VD = dyn_cast<VarDecl>(D)) { 367 if (VD->isReferenced() && 368 VD->isUsableInConstantExpressions(SemaRef->Context)) 373 const VarDecl *DeclToCheck = VD->getDefinition(); 379 DeclToCheck = VD->getMostRecentDecl(); 380 if (DeclToCheck != VD) 697 VarDecl *VD = (*T)->getActingDefinition(); local 702 if (VD == 0 || VD->isInvalidDecl() || !Seen.insert(VD)) [all...] |
/freebsd-10.3-release/contrib/llvm/tools/clang/include/clang/AST/ |
H A D | MangleNumberingContext.h | 51 virtual unsigned getManglingNumber(const VarDecl *VD) = 0;
|
/freebsd-10.3-release/contrib/llvm/tools/clang/lib/StaticAnalyzer/Core/ |
H A D | CheckerHelpers.cpp | 55 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) 56 if (VD->isStaticLocal())
|
/freebsd-10.3-release/contrib/llvm/tools/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;
|
/freebsd-10.3-release/contrib/binutils/opcodes/ |
H A D | ppc-opc.c | 490 /* The VD or VS field in a VA, VX, VXR or X form instruction. */ 491 #define VD VC + 1 492 #define VS VD 496 #define SIMM VD + 1 1805 { "mfvscr", VX(4, 1540), VX_MASK, PPCVEC, { VD } }, 1842 { "vaddcuw", VX(4, 384), VX_MASK, PPCVEC, { VD, VA, VB } }, 1843 { "vaddfp", VX(4, 10), VX_MASK, PPCVEC, { VD, VA, VB } }, 1844 { "vaddsbs", VX(4, 768), VX_MASK, PPCVEC, { VD, VA, VB } }, 1845 { "vaddshs", VX(4, 832), VX_MASK, PPCVEC, { VD, VA, VB } }, 1846 { "vaddsws", VX(4, 896), VX_MASK, PPCVEC, { VD, V 489 #define VD macro [all...] |
/freebsd-10.3-release/contrib/llvm/tools/clang/include/clang/Frontend/ |
H A D | MultiplexConsumer.h | 37 virtual void HandleCXXStaticMemberVarInstantiation(VarDecl *VD);
|