HomeSort by relevance Sort by last modified time
    Searched refs:VD (Results 1 - 25 of 103) sorted by null

1 2 3 4 5

  /external/clang/include/clang/Analysis/Analyses/
PseudoConstantAnalysis.h 28 bool isPseudoConstant(const VarDecl *VD);
29 bool wasReferenced(const VarDecl *VD);
  /external/clang/lib/Analysis/
PseudoConstantAnalysis.cpp 41 bool PseudoConstantAnalysis::isPseudoConstant(const VarDecl *VD) {
43 if (!VD->hasLocalStorage() && !VD->isStaticLocal())
53 return !NonConstants->count(VD);
57 bool PseudoConstantAnalysis::wasReferenced(const VarDecl *VD) {
65 return UsedVars->count(VD);
124 const VarDecl *VD = dyn_cast<VarDecl>(LHSDecl);
126 if (VD)
127 NonConstants->insert(VD);
158 const VarDecl *VD = dyn_cast<VarDecl>(D)
    [all...]
UninitializedValues.cpp 31 static bool isTrackedVar(const VarDecl *vd, const DeclContext *dc) {
32 if (vd->isLocalVarDecl() && !vd->hasGlobalStorage() &&
33 !vd->isExceptionVariable() &&
34 vd->getDeclContext() == dc) {
35 QualType ty = vd->getType();
67 const VarDecl *vd = *I; local
68 if (isTrackedVar(vd, &dc))
69 map[vd] = count++;
128 ValueVector::reference operator[](const VarDecl *vd);
254 const VarDecl *vd; member in class:__anon5106::FindVarResult
596 const VarDecl *vd = i->getVariable(); local
    [all...]
AnalysisDeclContext.cpp 101 const VarDecl *VD = it->getVariable();
102 if (VD->getName() == "self")
103 return dyn_cast<ImplicitParamDecl>(VD);
364 bool IsTrackedDecl(const VarDecl *VD) {
365 const DeclContext *DC = VD->getDeclContext();
377 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) {
378 if (!VD->hasLocalStorage()) {
379 if (Visited.insert(VD))
380 BEVals.push_back(VD, BC);
382 if (Visited.insert(VD) && IsTrackedDecl(VD)
    [all...]
LiveVariables.cpp 297 if (const VarDecl *VD = dyn_cast<VarDecl>(DS->getSingleDecl())) {
298 for (const VariableArrayType* VA = FindVA(VD->getType());
348 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) {
350 if (VD->getType()->isReferenceType())
353 if (!isAlwaysAlive(VD)) {
355 val.liveDecls = LV.DSetFact.remove(val.liveDecls, VD);
369 const VarDecl *VD = *I;
370 if (isAlwaysAlive(VD))
372 val.liveDecls = LV.DSetFact.add(val.liveDecls, VD);
385 if (VarDecl *VD = dyn_cast<VarDecl>(*DI))
    [all...]
  /external/clang/lib/AST/
StmtIterator.cpp 44 if (VarDecl* VD = dyn_cast<VarDecl>(decl))
45 if (VD->Init)
51 if (VarDecl* VD = dyn_cast<VarDecl>(*DGI))
52 if (VD->Init)
92 if (VarDecl* VD = dyn_cast<VarDecl>(D)) {
93 if (const VariableArrayType* VAPtr = FindVA(VD->getType().getTypePtr())) {
98 if (VD->getInit())
142 VarDecl* VD = cast<VarDecl>(*DGI);
143 return *VD->getInitAddress();
148 if (VarDecl* VD = dyn_cast<VarDecl>(decl))
    [all...]
  /external/clang/lib/StaticAnalyzer/Checkers/
UndefCapturedBlockVarChecker.cpp 37 const VarDecl *VD) {
39 if (BR->getDecl() == VD)
45 const DeclRefExpr *BR = FindBlockDeclRefExpr(child, VD);
71 const VarDecl *VD = VR->getDecl();
73 if (VD->getAttr<BlocksAttr>() || !VD->hasLocalStorage())
76 // Get the VarRegion associated with VD in the local stack frame.
78 VR = C.getSValBuilder().getRegionManager().getVarRegion(VD, LC);
90 os << "Variable '" << VD->getName()
94 if (const Expr *Ex = FindBlockDeclRefExpr(BE->getBody(), VD))
    [all...]
DeadStoresChecker.cpp 203 void CheckVarDecl(const VarDecl *VD, const Expr *Ex, const Expr *Val,
207 if (!VD->hasLocalStorage())
211 if (VD->getType()->getAs<ReferenceType>())
214 if (!isLive(Live, VD) &&
215 !(VD->getAttr<UnusedAttr>() || VD->getAttr<BlocksAttr>())) {
219 Report(VD, dsk, ExLoc, Val->getSourceRange());
225 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl()))
226 CheckVarDecl(VD, DR, Val, dsk, Live);
229 bool isIncrement(VarDecl *VD, const BinaryOperator* B)
    [all...]
UndefinedAssignmentChecker.cpp 71 const VarDecl *VD = dyn_cast<VarDecl>(DS->getSingleDecl());
72 ex = VD->getInit();
VLASizeChecker.cpp 81 const VarDecl *VD = dyn_cast<VarDecl>(DS->getSingleDecl());
82 if (!VD)
86 const VariableArrayType *VLA = Ctx.getAsVariableArrayType(VD->getType());
146 state->getRegion(VD, LC)->getExtent(svalBuilder);
DereferenceChecker.cpp 63 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) {
65 << " variable '" << VD->getName() << "')";
107 if (const VarDecl *VD = dyn_cast<VarDecl>(DS->getSingleDecl()))
108 if (const Expr *Init = VD->getAnyInitializer())
146 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) {
148 os << "Instance variable access (via '" << VD->getName()
IdempotentOperationChecker.cpp 477 const VarDecl *VD = dyn_cast<VarDecl>(LHS_DR->getDecl());
478 if (!VD)
485 if (VD != RHS_DR->getDecl())
502 const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl());
503 if (!VD)
506 if (AC->getPseudoConstantAnalysis()->wasReferenced(VD))
521 const VarDecl *VD = dyn_cast<VarDecl>(LHS_DR->getDecl());
522 if (!VD)
529 if (VD != RHS_DR->getDecl())
714 const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())
    [all...]
LLVMConventionsChecker.cpp 131 void VisitVarDecl(VarDecl *VD);
144 if (VarDecl *VD = dyn_cast<VarDecl>(*I))
145 VisitVarDecl(VD);
148 void StringRefCheckerVisitor::VisitVarDecl(VarDecl *VD) {
149 Expr *Init = VD->getInit();
155 if (!IsLLVMStringRef(VD->getType()))
180 PathDiagnosticLocation::createBegin(VD, BR.getSourceManager());
  /frameworks/compile/slang/
slang_rs_check_ast.cpp 77 void RSCheckAST::ValidateVarDecl(clang::VarDecl *VD) {
78 if (!VD) {
82 const clang::Type *T = VD->getType().getTypePtr();
84 if (VD->getLinkage() == clang::ExternalLinkage) {
86 if (!RSExportType::NormalizeType(T, TypeName, &mDiagEngine, VD)) {
91 if (!RSExportType::ValidateVarDecl(VD, mTargetAPI, mIsFilterscript)) {
93 } else if (clang::Expr *Init = VD->getInit()) {
106 if (clang::VarDecl *VD = llvm::dyn_cast<clang::VarDecl>(*I)) {
107 ValidateVarDecl(VD);
143 if (clang::VarDecl *VD = llvm::dyn_cast<clang::VarDecl>(*DI))
    [all...]
slang_rs_export_var.cpp 43 const clang::VarDecl *VD,
46 mName(VD->getName().data(), VD->getName().size()),
53 const clang::Expr *Initializer = VD->getAnyInitializer();
77 ReportVarError(Context, VD->getLocation(),
98 ReportVarError(Context, VD->getLocation(),
111 clang::QualType QT = VD->getTypeSourceInfo()->getType();
slang_rs_object_ref_count.h 57 inline void addRSObject(clang::VarDecl* VD) {
58 mRSO.push_back(VD);
64 void AppendRSObjectInit(clang::VarDecl *VD,
71 static clang::Stmt *ClearRSObject(clang::VarDecl *VD,
91 // Return false if the type of variable declared in VD does not contain
93 static bool InitializeRSObject(clang::VarDecl *VD,
slang_rs_context.cpp 86 bool RSContext::processExportVar(const clang::VarDecl *VD) {
87 slangAssert(!VD->getName().empty() && "Variable name should not be empty");
91 RSExportType *ET = RSExportType::CreateFromDecl(this, VD);
95 RSExportVar *EV = new RSExportVar(this, VD, ET);
234 clang::VarDecl *VD = (clang::VarDecl*) (*DI);
235 if (VD->getLinkage() == clang::ExternalLinkage) {
236 if (!processExportVar(VD)) {
slang_rs_check_ast.h 54 void ValidateVarDecl(clang::VarDecl *VD);
slang_rs_export_var.h 49 const clang::VarDecl *VD,
  /external/clang/test/SemaCXX/
destructor.cpp 192 struct VD: VB {};
226 VD vd; use(vd); local
255 VD* vd = new VD[4]; local
256 delete[] vd;
282 VB* vb = new VD();
286 VD* vd = new VD() local
    [all...]
  /external/clang/lib/StaticAnalyzer/Core/
CheckerHelpers.cpp 55 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl()))
56 if (VD->isStaticLocal())
  /external/clang/test/CodeGenCXX/
mangle-alias-template.cpp 24 Vec<double> VD;
25 g(VD);
  /external/clang/include/clang/Frontend/
MultiplexConsumer.h 38 virtual void HandleCXXStaticMemberVarInstantiation(VarDecl *VD);
  /external/clang/include/clang/Analysis/Visitors/
CFGRecStmtDeclVisitor.h 51 if (VarDecl *VD = dyn_cast<VarDecl>(D))
52 if (Expr *I = VD->getInit())
  /external/clang/lib/ARCMigrate/
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;

Completed in 1140 milliseconds

1 2 3 4 5