| /src/external/apache2/llvm/dist/clang/lib/AST/ |
| StmtIterator.cpp | 48 if (VarDecl* VD = dyn_cast<VarDecl>(*DGI)) 49 if (VD->hasInit()) 75 if (VarDecl* VD = dyn_cast<VarDecl>(D)) { 76 if (const VariableArrayType* VAPtr = FindVA(VD->getType().getTypePtr())) { 81 if (VD->getInit()) 116 VarDecl* VD = cast<VarDecl>(*DGI); 117 return *VD->getInitAddress();
|
| ComputeDependence.cpp | 63 auto *VD = Result.Val.getLValueBase().dyn_cast<const ValueDecl *>(); 64 if (VD && VD->isTemplated()) { 65 auto *VarD = dyn_cast<VarDecl>(VD); 420 if (auto *VD = cast_or_null<ValueDecl>(E->getIteratorDecl(I))) 421 D |= toExprDependence(VD->getType()->getDependence());
|
| /src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/ |
| UndefinedAssignmentChecker.cpp | 88 const VarDecl *VD = cast<VarDecl>(DS->getSingleDecl()); 89 ex = VD->getInit();
|
| UndefCapturedBlockVarChecker.cpp | 37 const VarDecl *VD) { 39 if (BR->getDecl() == VD) 44 if (const DeclRefExpr *BR = FindBlockDeclRefExpr(Child, VD)) 66 const VarDecl *VD = VR->getDecl(); 68 if (VD->hasAttr<BlocksAttr>() || !VD->hasLocalStorage()) 71 // Get the VarRegion associated with VD in the local stack frame. 83 os << "Variable '" << VD->getName() 87 if (const Expr *Ex = FindBlockDeclRefExpr(BE->getBody(), VD))
|
| MacOSXAPIChecker.cpp | 97 const VarDecl *VD = VR->getDecl(); 102 if (VD->isStaticLocal()) 108 if (VD->hasAttr<BlocksAttr>())
|
| CastToStructChecker.cpp | 78 const ValueDecl *VD = nullptr; 80 VD = SE->getDecl(); 82 VD = SE->getMemberDecl(); 83 if (!VD || VD->getType()->isReferenceType())
|
| DereferenceChecker.cpp | 68 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) { 70 << " variable '" << VD->getName() << "')"; 103 const VarDecl *VD; 105 std::tie(VD, Init) = parseAssignment(S); 106 if (VD && Init)
|
| VLASizeChecker.cpp | 260 const VarDecl *VD = dyn_cast<VarDecl>(DS->getSingleDecl()); 262 if (VD) 263 TypeToCheck = VD->getType().getCanonicalType(); 289 if (VD) { 291 setDynamicExtent(State, State->getRegion(VD, C.getLocationContext()),
|
| /src/external/apache2/llvm/dist/clang/lib/CodeGen/ |
| VarBypassDetector.cpp | 36 const VarDecl *VD = dyn_cast<VarDecl>(D); 37 if (VD && VD->hasLocalStorage()) { 38 Scopes.push_back({ParentScope, VD}); 42 if (const VarDecl *VD = dyn_cast<VarDecl>(D)) 43 if (const Expr *Init = VD->getInit())
|
| CGOpenMPRuntimeGPU.cpp | 173 const ValueDecl *VD = Pair.second; 174 QualType Type = VD->getType(); 179 SourceLocation Loc = VD->getLocation(); 181 if (SingleEscaped.count(VD)) { 183 C, GlobalizedRD, Loc, Loc, VD->getIdentifier(), Type, 188 if (VD->hasAttrs()) { 189 for (specific_attr_iterator<AlignedAttr> I(VD->getAttrs().begin()), 190 E(VD->getAttrs().end()); 199 C, GlobalizedRD, Loc, Loc, VD->getIdentifier(), Type, 204 llvm::APInt Align(32, std::max(C.getDeclAlign(VD).getQuantity() [all...] |
| /src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Core/ |
| LoopWidening.cpp | 75 const VarDecl *VD = Match.getNodeAs<VarDecl>(MatchRef); 76 assert(VD); 77 const VarRegion *VarMem = MRMgr.getVarRegion(VD, LCtx);
|
| CheckerHelpers.cpp | 56 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) 57 if (VD->isStaticLocal()) 82 const VarDecl *VD = nullptr; 90 VD = dyn_cast_or_null<VarDecl>(DE->getDecl()); 95 VD = cast<VarDecl>(PD->getSingleDecl()); 96 RHS = VD->getAnyInitializer(); 99 return std::make_pair(VD, RHS);
|
| /src/sys/external/bsd/compiler_rt/dist/lib/profile/ |
| InstrProfilingValue.c | 161 ValueProfData *VD = NULL; 163 VD = (ValueProfData *)calloc(VS, sizeof(uint8_t)); 164 if (!VD) 166 serializeValueProfDataFromRT(&R, VD); 167 ValueDataArray[I - DataBegin] = VD;
|
| /src/external/apache2/llvm/dist/clang/include/clang/AST/ |
| ComparisonCategories.h | 85 VarDecl *VD; 87 ValueInfo(ComparisonCategoryResult Kind, VarDecl *VD) 88 : Kind(Kind), VD(VD) {}
|
| /src/external/apache2/llvm/dist/clang/lib/Frontend/ |
| InterfaceStubFunctionsConsumer.cpp | 56 if (const VarDecl *VD = dyn_cast<VarDecl>(ND)) { 57 if (const auto *Parent = VD->getParentFunctionOrMethod()) 61 if ((VD->getStorageClass() == StorageClass::SC_Extern) || 62 (VD->getStorageClass() == StorageClass::SC_Static && 63 VD->getParentFunctionOrMethod() == nullptr)) 85 if (const VarDecl *VD = dyn_cast<VarDecl>(ND)) 87 dyn_cast_or_null<FunctionDecl>(VD->getParentFunctionOrMethod())) 213 const auto *VD = cast<VarDecl>(ND); 215 if (VD->isTemplated() || VD->getType()->isDependentType() [all...] |
| /src/external/apache2/llvm/dist/clang/include/clang/StaticAnalyzer/Checkers/ |
| SValExplainer.h | 184 const VarDecl *VD = R->getDecl(); 185 std::string Name = VD->getQualifiedNameAsString(); 186 if (isa<ParmVarDecl>(VD)) 188 else if (VD->hasAttr<BlocksAttr>()) 190 else if (VD->hasLocalStorage()) 192 else if (VD->isStaticLocal()) 194 else if (VD->hasGlobalStorage())
|
| /src/external/apache2/llvm/dist/clang/lib/AST/Interp/ |
| Interp.cpp | 186 auto *VD = Ptr.getDeclDesc()->asValueDecl(); 188 S.FFDiag(Loc, diag::note_constexpr_ltor_non_constexpr, 1) << VD; 189 S.Note(VD->getLocation(), diag::note_declared_at);
|
| /src/external/apache2/llvm/dist/clang/lib/Analysis/ |
| LiveVariables.cpp | 249 if (const VarDecl *VD = dyn_cast<VarDecl>(DS->getSingleDecl())) { 250 for (const VariableArrayType* VA = FindVA(VD->getType()); 322 static bool writeShouldKill(const VarDecl *VD) { 323 return VD && !VD->getType()->isReferenceType() && 324 !isAlwaysAlive(VD); 348 } else if (const auto *VD = dyn_cast<VarDecl>(D)) { 349 Killed = writeShouldKill(VD); 351 val.liveDecls = LV.DSetFact.remove(val.liveDecls, VD); 362 for (const VarDecl *VD [all...] |
| AnalysisDeclContext.cpp | 143 /// Returns true if \param VD is an Objective-C implicit 'self' parameter. 144 static bool isSelfDecl(const VarDecl *VD) { 145 return isa<ImplicitParamDecl>(VD) && VD->getName() == "self"; 154 const VarDecl *VD = I.getVariable(); 155 if (isSelfDecl(VD)) 156 return dyn_cast<ImplicitParamDecl>(VD); 172 VarDecl *VD = LC.getCapturedVar(); 173 if (isSelfDecl(VD)) 174 return dyn_cast<ImplicitParamDecl>(VD); [all...] |
| ThreadSafetyCommon.cpp | 274 const auto *VD = cast<ValueDecl>(DRE->getDecl()->getCanonicalDecl()); 277 if (const auto *PV = dyn_cast<ParmVarDecl>(VD)) { 292 VD = isa<FunctionDecl>(D) 298 return new (Arena) til::LiteralPtr(VD); 323 auto *VD = getValueDeclFromSExpr(E); 324 if (VD && VD->getType()->isAnyPointerType()) 351 if (const auto *VD = dyn_cast<CXXMethodDecl>(D)) 352 D = getFirstVirtualDecl(VD); 498 const ValueDecl *VD = nullptr [all...] |
| UninitializedValues.cpp | 44 static bool isTrackedVar(const VarDecl *vd, const DeclContext *dc) { 45 if (vd->isLocalVarDecl() && !vd->hasGlobalStorage() && 46 !vd->isExceptionVariable() && !vd->isInitCapture() && 47 !vd->isImplicit() && vd->getDeclContext() == dc) { 48 QualType ty = vd->getType(); 83 const VarDecl *vd = *I; local 84 if (isTrackedVar(vd, &dc) 223 const VarDecl *vd; member in class:__anon2731::FindVarResult 711 const VarDecl *vd = I.getVariable(); local [all...] |
| /src/external/apache2/llvm/dist/clang/include/clang/Analysis/Analyses/ |
| ThreadSafetyCommon.h | 123 void handleDestructorCall(const VarDecl *VD, const CXXDestructorDecl *DD) {} 214 auto *VD = const_cast<VarDecl *>(AD.getVarDecl()); 215 V.handleDestructorCall(VD, DD); 457 void handleDestructorCall(const VarDecl *VD, const CXXDestructorDecl *DD); 469 til::SExpr *getCurrentLVarDefinition(const ValueDecl *VD); 472 const ValueDecl *VD = nullptr); 473 til::SExpr *lookupVarDecl(const ValueDecl *VD); 474 til::SExpr *addVarDecl(const ValueDecl *VD, til::SExpr *E); 475 til::SExpr *updateVarDecl(const ValueDecl *VD, til::SExpr *E);
|
| /src/external/apache2/llvm/dist/llvm/lib/ProfileData/ |
| InstrProfWriter.cpp | 417 std::unique_ptr<InstrProfValueData[]> VD = Func.getValueForSite(VK, S); 420 if ((VK != IPVK_IndirectCallTarget) && (VD[I].Value == 0)) { 458 std::unique_ptr<InstrProfValueData[]> VD = Func.getValueForSite(VK, S); 461 OS << Symtab.getFuncNameOrExternalSymbol(VD[I].Value) << ":" 462 << VD[I].Count << "\n"; 464 OS << VD[I].Value << ":" << VD[I].Count << "\n";
|
| /src/external/apache2/llvm/dist/llvm/lib/Transforms/Instrumentation/ |
| PGOMemOPSizeOpt.cpp | 320 for (auto &VD 321 : VDs) { dbgs() << " (" << VD.Value << "," << VD.Count << ")\n"; }); 347 auto &VD = *I; 348 int64_t V = VD.Value; 349 uint64_t C = VD.Count; 354 RemainingVDs.push_back(VD); 381 assert(SavedRemainCount >= VD.Count); 382 SavedRemainCount -= VD.Count;
|
| /src/external/apache2/llvm/dist/clang/lib/Sema/ |
| SemaAttr.cpp | 712 VarDecl *VD = Lookup.getAsSingle<VarDecl>(); 713 if (!VD) { 720 if (VD->isUsed()) 723 VD->addAttr(UnusedAttr::CreateImplicit(Context, IdTok.getLocation(),
|