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

1 2 3

  /external/clang/lib/AST/
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);
113 return *VD->getInitAddress();
APValue.cpp 403 if (const ValueDecl *VD = Base.dyn_cast<const ValueDecl*>())
404 Out << *VD;
422 if (const ValueDecl *VD = Base.dyn_cast<const ValueDecl*>()) {
423 Out << *VD;
424 ElemTy = VD->getType();
443 const ValueDecl *VD = cast<ValueDecl>(BaseOrMember);
447 Out << *VD;
448 ElemTy = VD->getType();
524 if (const ValueDecl *VD = getMemberPointerDecl()) {
525 Out << '&' << *cast<CXXRecordDecl>(VD->getDeclContext()) << "::" << *VD
    [all...]
DumpXML.cpp 541 NamedDecl *VD = const_cast<NamedDecl*>(*I);
542 push(isa<VarDecl>(VD) ? "variable" : "field");
543 setPointer("ptr", VD);
  /external/clang/lib/StaticAnalyzer/Checkers/
UndefinedAssignmentChecker.cpp 79 const VarDecl *VD = dyn_cast<VarDecl>(DS->getSingleDecl());
80 ex = VD->getInit();
UndefCapturedBlockVarChecker.cpp 38 const VarDecl *VD) {
40 if (BR->getDecl() == VD)
46 const DeclRefExpr *BR = FindBlockDeclRefExpr(child, VD);
72 const VarDecl *VD = VR->getDecl();
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))
VLASizeChecker.cpp 82 const VarDecl *VD = dyn_cast<VarDecl>(DS->getSingleDecl());
83 if (!VD)
87 const VariableArrayType *VLA = Ctx.getAsVariableArrayType(VD->getType());
147 state->getRegion(VD, LC)->getExtent(svalBuilder);
IdempotentOperationChecker.cpp 478 const VarDecl *VD = dyn_cast<VarDecl>(LHS_DR->getDecl());
479 if (!VD)
486 if (VD != RHS_DR->getDecl())
503 const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl());
504 if (!VD)
507 if (AC->getPseudoConstantAnalysis()->wasReferenced(VD))
522 const VarDecl *VD = dyn_cast<VarDecl>(LHS_DR->getDecl());
523 if (!VD)
530 if (VD != RHS_DR->getDecl())
701 const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())
    [all...]
MacOSKeychainAPIChecker.cpp 166 const ValueDecl *VD = DRE->getDecl();
167 if (isa<ImplicitParamDecl>(VD) || isa<ParmVarDecl>(VD))
  /external/clang/test/CodeGenCXX/
mangle-alias-template.cpp 24 Vec<double> VD;
25 g(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...]
AnalysisDeclContext.cpp 131 const VarDecl *VD = it->getVariable();
132 if (VD->getName() == "self")
133 return dyn_cast<ImplicitParamDecl>(VD);
457 bool IsTrackedDecl(const VarDecl *VD) {
458 const DeclContext *DC = VD->getDeclContext();
470 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) {
471 if (!VD->hasLocalStorage()) {
472 if (Visited.insert(VD))
473 BEVals.push_back(VD, BC);
LiveVariables.cpp 307 if (const VarDecl *VD = dyn_cast<VarDecl>(DS->getSingleDecl())) {
308 for (const VariableArrayType* VA = FindVA(VD->getType());
358 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) {
360 if (VD->getType()->isReferenceType())
363 if (!isAlwaysAlive(VD)) {
365 val.liveDecls = LV.DSetFact.remove(val.liveDecls, VD);
379 const VarDecl *VD = *I;
380 if (isAlwaysAlive(VD))
382 val.liveDecls = LV.DSetFact.add(val.liveDecls, VD);
395 if (VarDecl *VD = dyn_cast<VarDecl>(*DI))
    [all...]
UninitializedValues.cpp 35 static bool isTrackedVar(const VarDecl *vd, const DeclContext *dc) {
36 if (vd->isLocalVarDecl() && !vd->hasGlobalStorage() &&
37 !vd->isExceptionVariable() &&
38 vd->getDeclContext() == dc) {
39 QualType ty = vd->getType();
71 const VarDecl *vd = *I; local
72 if (isTrackedVar(vd, &dc))
73 map[vd] = count++;
131 ValueVector::reference operator[](const VarDecl *vd);
268 const VarDecl *vd; member in class:__anon17563::FindVarResult
621 const VarDecl *vd = i->getVariable(); local
    [all...]
  /external/clang/lib/Sema/
TargetAttributesSema.cpp 89 ValueDecl *VD = dyn_cast<ValueDecl>(D);
90 if (VD && VD->getType()->isFunctionPointerType())
118 if (VarDecl *VD = dyn_cast<VarDecl>(D)) {
119 if (VD->hasDefinition()) {
SemaOpenMP.cpp 39 if (VarDecl *VD = dyn_cast_or_null<VarDecl>(ND)) {
40 return VD->hasGlobalStorage() &&
58 VarDecl *VD;
80 VD = Corrected.getCorrectionDeclAs<VarDecl>();
82 if (!(VD = Lookup.getAsSingle<VarDecl>())) {
93 if (!VD->hasGlobalStorage()) {
96 << !VD->isStaticLocal();
97 bool IsDecl = VD->isThisDeclarationADefinition(Context) ==
99 Diag(VD->getLocation(),
100 IsDecl ? diag::note_previous_decl : diag::note_defined_here) << VD;
    [all...]
SemaAttr.cpp 305 VarDecl *VD = Lookup.getAsSingle<VarDecl>();
306 if (!VD) {
313 if (VD->isUsed())
316 VD->addAttr(::new (Context) UnusedAttr(IdTok.getLocation(), Context));
SemaExceptionSpec.cpp 797 const ValueDecl *VD = dyn_cast<ValueDecl>(D);
798 if (!VD) // If we have no clue what we're calling, assume the worst.
806 QualType T = VD->getType();
    [all...]
SemaTemplateVariadic.cpp 186 VarDecl *VD = I->getCapturedVar();
187 if (VD->isParameterPack())
188 Unexpanded.push_back(std::make_pair(VD, I->getLocation()));
    [all...]
Sema.cpp 349 if (const VarDecl *VD = dyn_cast<VarDecl>(D)) {
352 const VarDecl *DeclToCheck = VD->getDefinition();
358 DeclToCheck = VD->getMostRecentDecl();
359 if (DeclToCheck != VD)
670 VarDecl *VD = (*T)->getActingDefinition();
675 if (VD == 0 || VD->isInvalidDecl() || !Seen.insert(VD))
679 = Context.getAsIncompleteArrayType(VD->getType())) {
681 Diag(VD->getLocation(), diag::warn_tentative_incomplete_array)
    [all...]
  /frameworks/compile/slang/
slang_rs_context.cpp 87 bool RSContext::processExportVar(const clang::VarDecl *VD) {
88 slangAssert(!VD->getName().empty() && "Variable name should not be empty");
92 RSExportType *ET = RSExportType::CreateFromDecl(this, VD);
96 RSExportVar *EV = new RSExportVar(this, VD, ET);
236 clang::VarDecl *VD = (clang::VarDecl*) (*DI);
237 if (VD->getFormalLinkage() == clang::ExternalLinkage) {
238 if (!processExportVar(VD)) {
slang_rs_export_type.cpp 86 const clang::VarDecl *VD,
122 const clang::VarDecl *VD,
127 ReportTypeError(DiagEngine, VD, TopLevelRecord,
137 ReportTypeError(DiagEngine, VD, TopLevelRecord,
143 ReportTypeError(DiagEngine, VD, TopLevelRecord,
149 if (TypeExportableHelper(ElementType, SPS, DiagEngine, VD,
161 clang::VarDecl const *VD,
193 ReportTypeError(DiagEngine, VD, T->getAsUnionType()->getDecl(),
236 if (!TypeExportableHelper(FT, SPS, DiagEngine, VD, TopLevelRecord)) {
262 ReportTypeError(DiagEngine, VD, TopLevelRecord
    [all...]
  /external/clang/lib/Frontend/
ASTConsumers.cpp 428 VarDecl* VD = cast<VarDecl>(*I);
429 Out << "<var> " << *VD << '\n';
  /external/clang/lib/StaticAnalyzer/Core/
ExprEngineCXX.cpp 436 const VarDecl *VD = CS->getExceptionDecl();
437 if (!VD) {
443 SVal V = svalBuilder.conjureSymbolVal(CS, LCtx, VD->getType(),
446 state = state->bindLoc(state->getLValue(VD, LCtx), V);
ExprEngineC.cpp 437 const VarDecl *VD = dyn_cast_or_null<VarDecl>(*DS->decl_begin());
439 if (!VD) {
457 if (const Expr *InitEx = VD->getInit()) {
470 if (AMgr.getLangOpts().CPlusPlus && VD->getType()->isRecordType() &&
471 !VD->getType()->isReferenceType()) {
494 evalBind(Dst2, DS, UpdatedN, state->getLValue(VD, LC), InitVal, true);
    [all...]
  /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...]

Completed in 331 milliseconds

1 2 3