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

1 2

  /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...]
DumpXML.cpp 533 NamedDecl *VD = const_cast<NamedDecl*>(*I);
534 push(isa<VarDecl>(VD) ? "variable" : "field");
535 setPointer("ptr", VD);
  /external/clang/lib/StaticAnalyzer/Checkers/
UndefinedAssignmentChecker.cpp 71 const VarDecl *VD = dyn_cast<VarDecl>(DS->getSingleDecl());
72 ex = VD->getInit();
UndefCapturedBlockVarChecker.cpp 36 const VarDecl *VD){
38 if (BR->getDecl() == VD)
44 const BlockDeclRefExpr *BR = FindBlockDeclRefExpr(child, VD);
69 const VarDecl *VD = VR->getDecl();
71 if (VD->getAttr<BlocksAttr>() || !VD->hasLocalStorage())
74 // Get the VarRegion associated with VD in the local stack frame.
76 VR = C.getSValBuilder().getRegionManager().getVarRegion(VD, LC);
88 os << "Variable '" << VD->getName()
92 if (const Expr *Ex = FindBlockDeclRefExpr(BE->getBody(), VD))
    [all...]
VLASizeChecker.cpp 41 const VarDecl *VD = dyn_cast<VarDecl>(DS->getSingleDecl());
42 if (!VD)
46 const VariableArrayType *VLA = Ctx.getAsVariableArrayType(VD->getType());
122 state->getRegion(VD, LC)->getExtent(svalBuilder);
IdempotentOperationChecker.cpp 473 const VarDecl *VD = dyn_cast<VarDecl>(LHS_DR->getDecl());
474 if (!VD)
481 if (VD != RHS_DR->getDecl())
498 const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl());
499 if (!VD)
502 if (AC->getPseudoConstantAnalysis()->wasReferenced(VD))
517 const VarDecl *VD = dyn_cast<VarDecl>(LHS_DR->getDecl());
518 if (!VD)
525 if (VD != RHS_DR->getDecl())
711 const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())
    [all...]
IteratorsChecker.cpp 294 const VarDecl *VD = dyn_cast<VarDecl>(DRE->getDecl());
295 if (!VD)
297 const MemRegion *IMR = state->getRegion(VD, LC);
319 const VarDecl *VD = dyn_cast<VarDecl>(DRE->getDecl());
320 if (!VD)
322 const MemRegion *IMR = state->getRegion(VD, LC);
384 const VarDecl *VD = dyn_cast<VarDecl>(DRE->getDecl());
385 if (!VD)
388 return state->getRegion(VD, LC);
521 const VarDecl *VD = dyn_cast<VarDecl>(D)
    [all...]
MacOSKeychainAPIChecker.cpp 162 const ValueDecl *VD = DRE->getDecl();
163 if (isa<ImplicitParamDecl>(VD) || isa<ParmVarDecl>(VD))
MallocChecker.cpp 406 const VarDecl *VD;
408 VD = VR->getDecl();
410 VD = NULL;
412 if (VD)
413 os << "the address of the local variable '" << VD->getName() << "'";
420 const VarDecl *VD;
422 VD = VR->getDecl();
424 VD = NULL;
426 if (VD)
427 os << "the address of the parameter '" << VD->getName() << "'"
    [all...]
  /external/clang/test/CodeGenCXX/
mangle-alias-template.cpp 20 Vec<double> VD;
21 g(VD);
  /external/clang/lib/Sema/
TargetAttributesSema.cpp 135 ValueDecl *VD = dyn_cast<ValueDecl>(D);
136 if (VD && VD->getType()->isFunctionPointerType())
SemaAttr.cpp 289 VarDecl *VD = Lookup.getAsSingle<VarDecl>();
290 if (!VD) {
297 if (VD->isUsed())
300 VD->addAttr(::new (Context) UnusedAttr(IdTok.getLocation(), Context));
Sema.cpp 311 if (const VarDecl *VD = dyn_cast<VarDecl>(D)) {
314 const VarDecl *DeclToCheck = VD->getDefinition();
320 DeclToCheck = VD->getMostRecentDeclaration();
321 if (DeclToCheck != VD)
493 VarDecl *VD = (*T)->getActingDefinition();
498 if (VD == 0 || VD->isInvalidDecl() || !Seen.insert(VD))
502 = Context.getAsIncompleteArrayType(VD->getType())) {
503 if (RequireCompleteType(VD->getLocation()
    [all...]
SemaTemplateInstantiate.cpp 467 } else if (VarDecl *VD = dyn_cast<VarDecl>(D)) {
470 << VD
    [all...]
  /external/clang/lib/Analysis/
PseudoConstantAnalysis.cpp 40 bool PseudoConstantAnalysis::isPseudoConstant(const VarDecl *VD) {
42 if (!VD->hasLocalStorage() && !VD->isStaticLocal())
52 return !NonConstants->count(VD);
56 bool PseudoConstantAnalysis::wasReferenced(const VarDecl *VD) {
64 return UsedVars->count(VD);
125 const VarDecl *VD = dyn_cast<VarDecl>(LHSDecl);
127 if (VD)
128 NonConstants->insert(VD);
159 const VarDecl *VD = dyn_cast<VarDecl>(D)
    [all...]
LiveVariables.cpp 363 if (const VarDecl *VD = dyn_cast<VarDecl>(DS->getSingleDecl())) {
364 for (const VariableArrayType* VA = FindVA(VD->getType());
407 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) {
409 if (VD->getType()->isReferenceType())
412 if (!isAlwaysAlive(VD)) {
414 val.liveDecls = LV.DSetFact.remove(val.liveDecls, VD);
428 const VarDecl *VD = *I;
429 if (isAlwaysAlive(VD))
431 val.liveDecls = LV.DSetFact.add(val.liveDecls, VD);
444 if (VarDecl *VD = dyn_cast<VarDecl>(*DI))
    [all...]
UninitializedValues.cpp 28 static bool isTrackedVar(const VarDecl *vd, const DeclContext *dc) {
29 if (vd->isLocalVarDecl() && !vd->hasGlobalStorage() &&
30 !vd->isExceptionVariable() &&
31 vd->getDeclContext() == dc) {
32 QualType ty = vd->getType();
64 const VarDecl *vd = *I; local
65 if (isTrackedVar(vd, &dc))
66 map[vd] = count++;
130 ValueVector::reference operator[](const VarDecl *vd);
328 const VarDecl *vd; member in class:__anon4262::FindVarResult
417 const VarDecl *vd = 0; local
437 const VarDecl *vd = i->getVariable(); local
    [all...]
  /frameworks/compile/slang/
slang_rs_context.cpp 88 bool RSContext::processExportVar(const clang::VarDecl *VD) {
89 slangAssert(!VD->getName().empty() && "Variable name should not be empty");
93 RSExportType *ET = RSExportType::CreateFromDecl(this, VD);
97 RSExportVar *EV = new RSExportVar(this, VD, ET);
203 clang::VarDecl *VD = (clang::VarDecl*) (*DI);
204 if (VD->getLinkage() == clang::ExternalLinkage) {
205 if (!processExportVar(VD)) {
slang_rs_backend.cpp 112 static bool ValidateVarDecl(clang::VarDecl *VD) {
113 if (!VD) {
117 clang::ASTContext &C = VD->getASTContext();
118 const clang::Type *T = VD->getType().getTypePtr();
121 if (VD->getLinkage() == clang::ExternalLinkage) {
123 if (!RSExportType::NormalizeType(T, TypeName, &C.getDiagnostics(), VD)) {
127 valid &= RSExportType::ValidateVarDecl(VD);
139 clang::VarDecl *VD = llvm::dyn_cast<clang::VarDecl>(*DI);
140 if (VD && !ValidateVarDecl(VD)) {
    [all...]
  /external/clang/lib/Frontend/
ASTConsumers.cpp 351 VarDecl* VD = cast<VarDecl>(*I);
352 Out << "<var> " << *VD << '\n';
  /external/clang/lib/StaticAnalyzer/Core/
BugReporterVisitors.cpp 199 const VarDecl *VD = cast<VarDecl>(DS->getSingleDecl());
200 if (VD->getInit())
328 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) {
330 StateMgr.getRegionManager().getVarRegion(VD, N->getLocationContext());
426 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) {
428 StateMgr.getRegionManager().getVarRegion(VD, N->getLocationContext());
665 const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl());
666 if (!VD)
673 VD->getDeclName().printName(Out);
676 QualType VDTy = VD->getType()
    [all...]
ExprEngineC.cpp 336 const VarDecl *VD = dyn_cast<VarDecl>(D);
346 if (const Expr *InitEx = VD->getInit()) {
351 if (AMgr.getLangOptions().CPlusPlus && VD->getType()->isRecordType() &&
352 !VD->getType()->isReferenceType() && isa<loc::MemRegionVal>(InitVal)){
361 !VD->getType()->isReferenceType()) {
366 evalBind(Dst, DS, N, state->getLValue(VD, LC), InitVal, true);
369 MakeNode(Dst, DS, N, state->bindDeclWithNoInit(state->getRegion(VD, LC)));
MemRegion.cpp 949 const VarDecl *VD = *I;
952 if (!VD->getAttr<BlocksAttr>() && VD->hasLocalStorage())
953 VR = MemMgr.getVarRegion(VD, this);
956 VR = MemMgr.getVarRegion(VD, LC);
958 VR = MemMgr.getVarRegion(VD, MemMgr.getUnknownRegion());
  /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/CodeGen/
CGDecl.cpp 91 const VarDecl &VD = cast<VarDecl>(D);
92 assert(VD.isLocalVarDecl() &&
94 return EmitVarDecl(VD);
891 if (VarDecl *VD = dyn_cast<VarDecl>((*I))) {
892 Expr *Init = VD->getInit();
    [all...]

Completed in 669 milliseconds

1 2