Searched refs:VD (Results 1 - 25 of 100) sorted by relevance

1234

/freebsd-10.3-release/contrib/llvm/tools/clang/include/clang/Analysis/Analyses/
H A DPseudoConstantAnalysis.h28 bool isPseudoConstant(const VarDecl *VD);
29 bool wasReferenced(const VarDecl *VD);
/freebsd-10.3-release/contrib/llvm/tools/clang/lib/Analysis/
H A DPseudoConstantAnalysis.cpp41 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 DUninitializedValues.cpp295 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 DLiveVariables.cpp306 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 DSemaLambda.h30 // 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 DUndefCapturedBlockVarChecker.cpp38 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 DDeadStoresChecker.cpp205 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 DUndefinedAssignmentChecker.cpp79 const VarDecl *VD = dyn_cast<VarDecl>(DS->getSingleDecl()); local
80 ex = VD->getInit();
H A DVLASizeChecker.cpp82 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 DIdempotentOperationChecker.cpp478 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 DLLVMConventionsChecker.cpp132 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 DDereferenceChecker.cpp64 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 DStmtIterator.cpp44 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 DItaniumCXXABI.cpp39 virtual unsigned getManglingNumber(const VarDecl *VD) { argument
40 return ++VarManglingNumbers[VD->getIdentifier()];
H A DAPValue.cpp403 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 DSemaOpenMP.cpp386 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 DAnalysisBasedWarnings.cpp434 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 DScopeInfo.cpp187 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 DTargetAttributesSema.cpp133 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 DSema.cpp361 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 DMangleNumberingContext.h51 virtual unsigned getManglingNumber(const VarDecl *VD) = 0;
/freebsd-10.3-release/contrib/llvm/tools/clang/lib/StaticAnalyzer/Core/
H A DCheckerHelpers.cpp55 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 DTransAutoreleasePool.cpp172 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 Dppc-opc.c490 /* 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 DMultiplexConsumer.h37 virtual void HandleCXXStaticMemberVarInstantiation(VarDecl *VD);

Completed in 416 milliseconds

1234