Searched defs:VD (Results 51 - 75 of 76) sorted by relevance

1234

/external/clang/lib/StaticAnalyzer/Checkers/
H A DMallocChecker.cpp1276 const VarDecl *VD; local
1278 VD = VR->getDecl();
1280 VD = nullptr;
1282 if (VD)
1283 os << "the address of the local variable '" << VD->getName() << "'";
1291 const VarDecl *VD; local
1293 VD = VR->getDecl();
1295 VD = nullptr;
1297 if (VD)
1298 os << "the address of the parameter '" << VD
1306 const VarDecl *VD; local
[all...]
H A DRetainCountChecker.cpp3495 const VarDecl *VD = LVR->getDecl(); local
3496 if (VD->hasAttr<CleanupAttr>()) {
/external/clang/lib/StaticAnalyzer/Core/
H A DExprEngine.cpp1536 const VarDecl *VD = cast<VarDecl>(DS->getSingleDecl()); local
1538 bool initHasRun = state->contains<InitializedGlobalsSet>(VD);
1542 state = state->add<InitializedGlobalsSet>(VD);
1735 if (const VarDecl *VD = dyn_cast<VarDecl>(D)) {
1738 assert(Ex->isGLValue() || VD->getType()->isVoidType());
1739 SVal V = state->getLValue(VD, Pred->getLocationContext());
1743 if (VD->getType()->isReferenceType()) {
H A DRegionStore.cpp1015 const VarDecl *VD = VR->getDecl(); local
1016 if (VD->hasAttr<BlocksAttr>() || !VD->hasLocalStorage()) {
1732 const VarDecl *VD = R->getDecl(); local
1739 // Is 'VD' declared constant? If so, retrieve the constant value.
1740 if (VD->getType().isConstQualified())
1741 if (const Expr *Init = VD->getInit())
1751 QualType T = VD->getType();
/external/clang/lib/AST/
H A DDecl.cpp931 } else if (const VarDecl *VD = dyn_cast<VarDecl>(D)) {
933 = dyn_cast<VarTemplateSpecializationDecl>(VD))
938 LinkageInfo typeLV = getLVForType(*VD->getType(), computation);
943 if (isExplicitMemberSpecialization(VD)) {
944 explicitSpecSuppressor = VD;
1935 if (VarDecl *VD = getInstantiatedFromStaticDataMember())
1936 return VD->isOutOfLine();
2171 VarDecl::setInstantiationOfStaticDataMember(VarDecl *VD, argument
2175 getASTContext().setInstantiatedFromStaticDataMember(this, VD, TSK);
H A DASTContext.cpp88 if (const VarDecl *VD = dyn_cast<VarDecl>(D)) {
89 if (VD->isStaticDataMember() &&
90 VD->getTemplateSpecializationKind() == TSK_ImplicitInstantiation)
284 if (const VarDecl *VD = dyn_cast<VarDecl>(D)) {
287 if (VD->isStaticDataMember())
288 if (const VarDecl *MemberDecl = VD->getInstantiatedFromStaticDataMember())
1310 } else if (const ValueDecl *VD = dyn_cast<ValueDecl>(D)) {
1311 QualType T = VD->getType();
1333 if (const VarDecl *VD = dyn_cast<VarDecl>(D)) {
1334 if (VD
7830 basicGVALinkageForVariable(const ASTContext &Context, const VarDecl *VD) argument
7872 GetGVALinkageForVariable(const VarDecl *VD) argument
7936 const VarDecl *VD = cast<VarDecl>(D); local
8059 setStaticLocalNumber(const VarDecl *VD, unsigned Number) argument
[all...]
/external/clang/lib/Analysis/
H A DCFG.cpp36 if (VarDecl *VD = dyn_cast<VarDecl>(D))
37 if (Expr *Ex = VD->getInit())
185 void addVar(VarDecl *VD) { argument
186 Vars.push_back(VD, ctx);
448 LocalScope* addLocalScopeForVarDecl(VarDecl *VD, LocalScope* Scope = nullptr);
476 void appendAutomaticObjDtor(CFGBlock *B, VarDecl *VD, Stmt *S) { argument
477 B->appendAutomaticObjDtor(VD, S, cfg->getBumpVectorContext());
1213 if (VarDecl *VD = dyn_cast<VarDecl>(DI))
1214 Scope = addLocalScopeForVarDecl(VD, Scope);
1221 LocalScope* CFGBuilder::addLocalScopeForVarDecl(VarDecl *VD, argument
1941 VarDecl *VD = dyn_cast<VarDecl>(DS->getSingleDecl()); local
3939 VarDecl *VD = cast<VarDecl>(DS->getSingleDecl()); local
4099 const VarDecl *VD = DE->getVarDecl(); local
[all...]
H A DThreadSafety.cpp1162 if (const auto *VD = dyn_cast_or_null<VarDecl>(D)) {
1163 const Expr *E = VD->getInit();
1166 QualType T = VD->getType();
1167 if (T.isTrivialType(VD->getASTContext())) {
1168 Ctx = VMap->addDefinition(VD, E, Ctx);
1506 static StringRef ClassifyDiagnostic(const ValueDecl *VD) { argument
1507 assert(VD && "No ValueDecl passed");
1510 return ClassifyDiagnostic(VD->getType());
1517 if (const ValueDecl *VD = getValueDecl(A->getArg()))
1518 return ClassifyDiagnostic(VD);
1981 handleCall(Expr *Exp, const NamedDecl *D, VarDecl *VD) argument
2557 VarDecl *VD = const_cast<VarDecl*>(AD.getVarDecl()); local
[all...]
/external/clang/lib/CodeGen/
H A DCGDebugInfo.cpp1257 if (const VarDecl *VD = dyn_cast<VarDecl>(D))
1258 V = CGM.GetAddrOfGlobalVar(VD);
2634 llvm::DIType CGDebugInfo::EmitTypeForVarWithBlocksAttr(const VarDecl *VD, argument
2642 llvm::DIFile Unit = getOrCreateFile(VD->getLocation());
2643 QualType Type = VD->getType();
2653 bool HasCopyAndDispose = CGM.getContext().BlockRequiresCopying(Type, VD);
2672 CharUnits Align = CGM.getContext().getDeclAlign(VD);
2696 FieldTy = DBuilder.createMemberType(Unit, VD->getName(), Unit,
2711 void CGDebugInfo::EmitDeclare(const VarDecl *VD, llvm::dwarf::LLVMConstants Tag, argument
2718 VD
2831 EmitDeclareOfAutoVariable(const VarDecl *VD, llvm::Value *Storage, CGBuilderTy &Builder) argument
2851 EmitDeclareOfBlockDeclRefVariable(const VarDecl *VD, llvm::Value *Storage, CGBuilderTy &Builder, const CGBlockInfo &blockInfo) argument
2921 EmitDeclareOfArgVariable(const VarDecl *VD, llvm::Value *AI, unsigned ArgNo, CGBuilderTy &Builder) argument
3192 EmitGlobalVariable(const ValueDecl *VD, llvm::Constant *Init) argument
[all...]
H A DCGExpr.cpp216 const ValueDecl *VD = M->getExtendingDecl(); local
218 VD && isa<VarDecl>(VD) && VD->hasAttr<ObjCPreciseLifetimeAttr>();
1667 if (const auto *VD = dyn_cast<VarDecl>(Exp->getDecl())) {
1668 if (VD->hasGlobalStorage()) {
1670 LV.setThreadLocalRef(VD->getTLSKind() != VarDecl::TLS_None);
1747 const Expr *E, const VarDecl *VD) {
1751 if (VD->getTLSKind() == VarDecl::TLS_Dynamic)
1752 return CGF.CGM.getCXXABI().EmitThreadLocalVarDeclLValue(CGF, VD,
1746 EmitGlobalVarDeclLValue(CodeGenFunction &CGF, const Expr *E, const VarDecl *VD) argument
1803 EmitGlobalNamedRegister(const VarDecl *VD, CodeGenModule &CGM, CharUnits Alignment) argument
1855 const auto *VD = cast<ValueDecl>(ND); local
[all...]
H A DCodeGenModule.cpp1179 llvm::Constant *CodeGenModule::GetWeakRefReference(const ValueDecl *VD) { argument
1180 const AliasAttr *AA = VD->getAttr<AliasAttr>();
1183 llvm::Type *DeclTy = getTypes().ConvertTypeForMem(VD->getType());
1188 unsigned AS = getContext().getTargetAddressSpace(VD->getType());
1195 GlobalDecl(cast<FunctionDecl>(VD)),
1256 const auto *VD = cast<VarDecl>(Global); local
1257 assert(VD->isFileVarDecl() && "Cannot emit local var decl as global.");
1259 if (VD->isThisDeclarationADefinition() != VarDecl::Definition)
1411 if (const auto *VD = dyn_cast<VarDecl>(D))
1412 return EmitGlobalVarDefinition(VD);
1595 isVarDeclInlineInitializedStaticDataMember(const VarDecl *VD) argument
2078 auto const VD = dyn_cast<VarDecl>(D); local
2106 getLLVMLinkageVarDefinition( const VarDecl *VD, bool IsConstant) argument
2236 HandleCXXStaticMemberVarInstantiation(VarDecl *VD) argument
2888 const auto *VD = cast<VarDecl>(E->getExtendingDecl()); local
[all...]
H A DItaniumCXXABI.cpp236 llvm::Function *getOrCreateThreadLocalWrapper(const VarDecl *VD,
241 LValue EmitThreadLocalVarDeclLValue(CodeGenFunction &CGF, const VarDecl *VD,
1825 getThreadLocalWrapperLinkage(const VarDecl *VD, CodeGen::CodeGenModule &CGM) { argument
1827 CGM.getLLVMLinkageVarDefinition(VD, /*isConstant=*/false);
1836 if (VD->getTLSKind() == VarDecl::TLS_Dynamic &&
1843 ItaniumCXXABI::getOrCreateThreadLocalWrapper(const VarDecl *VD, argument
1849 getMangleContext().mangleItaniumThreadLocalWrapper(VD, Out);
1857 if (VD->getType()->isReferenceType())
1862 llvm::Function::Create(FnTy, getThreadLocalWrapperLinkage(VD, CGM),
1874 const VarDecl *VD local
1943 EmitThreadLocalVarDeclLValue(CodeGenFunction &CGF, const VarDecl *VD, QualType LValType) argument
[all...]
/external/clang/lib/Sema/
H A DSemaCodeComplete.cpp1077 if (const ValueDecl *VD = dyn_cast<ValueDecl>(ND->getUnderlyingDecl()))
1078 if (VD->getType()->isIntegralOrEnumerationType())
3929 ValueDecl *VD = dyn_cast_or_null<ValueDecl>(D); local
3930 if (!VD) {
3935 CodeCompleteExpression(S, VD->getType());
H A DSemaDeclAttr.cpp1026 if (const ObjCIvarDecl *VD = dyn_cast<ObjCIvarDecl>(D)) {
1027 if (!VD->getType()->getAs<ObjCObjectPointerType>()) {
1029 << Attr.getName() << VD->getType() << 0;
1492 ValueDecl *VD = dyn_cast<ValueDecl>(D); local
1493 if (!VD || (!VD->getType()->isBlockPointerType() &&
1494 !VD->getType()->isFunctionPointerType())) {
1582 if (const VarDecl *VD = dyn_cast<VarDecl>(D)) {
1583 if (VD->hasLocalStorage()) {
2284 VarDecl *VD local
3724 VarDecl *VD = cast<VarDecl>(D); local
3819 ValueDecl *VD = dyn_cast<ValueDecl>(D); local
[all...]
H A DSemaStmt.cpp684 if (const VarDecl *VD = dyn_cast<VarDecl>(DRE->getDecl())) {
685 if (!VD->hasGlobalStorage())
687 QualType VarType = VD->getType();
1322 VarDecl *VD = dyn_cast<VarDecl>(E->getDecl()); local
1323 if (!VD) return;
1327 Decls.insert(VD);
1393 if (VarDecl *VD = dyn_cast<VarDecl>(E->getDecl()))
1394 if (Decls.count(VD))
1596 VarDecl *VD = dyn_cast<VarDecl>(DI); local
1597 if (VD
2461 isCopyElisionCandidate(QualType ReturnType, const VarDecl *VD, bool AllowFunctionParameter) argument
[all...]
H A DSemaTemplate.cpp4703 if (ValueDecl *VD = dyn_cast<ValueDecl>(DRE->getDecl())) {
4704 if (VD->getType()->isMemberPointerType()) {
4705 if (isa<NonTypeTemplateParmDecl>(VD)) {
4709 VD = cast<ValueDecl>(VD->getCanonicalDecl());
4710 Converted = TemplateArgument(VD, /*isReferenceParam*/false);
5188 ValueDecl *VD = cast<ValueDecl>(Arg.getAsDecl()); local
5190 if (VD->getDeclContext()->isRecord() &&
5191 (isa<CXXMethodDecl>(VD) || isa<FieldDecl>(VD) ||
[all...]
H A DSemaChecking.cpp2075 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) {
2091 if (const Expr *Init = VD->getAnyInitializer()) {
2119 if (const ParmVarDecl *PV = dyn_cast<ParmVarDecl>(VD)) {
4478 VarDecl *VD = cast<VarDecl>(refVars[i]->getDecl()); local
4484 S.Diag(VD->getLocation(), diag::note_ref_var_local_bind)
4485 << VD->getDeclName() << range;
7932 /// \param VD Declaration of an identifier that appears in a type tag.
7936 const ValueDecl **VD, uint64_t *MagicValue) {
7955 *VD = DRE->getDecl();
8021 const ValueDecl *VD local
7935 FindTypeTagExpr(const Expr *TypeExpr, const ASTContext &Ctx, const ValueDecl **VD, uint64_t *MagicValue) argument
[all...]
H A DSemaDecl.cpp1342 } else if (const VarDecl *VD = dyn_cast<VarDecl>(D)) {
1346 if (!isMainFileLoc(*this, VD->getLocation()))
1349 if (Context.DeclMustBeEmitted(VD))
1352 if (VD->isStaticDataMember() &&
1353 VD->getTemplateSpecializationKind() == TSK_ImplicitInstantiation)
1375 if (const VarDecl *VD = dyn_cast<VarDecl>(D)) {
1376 const VarDecl *First = VD->getFirstDecl();
1377 if (VD != First && ShouldWarnIfUnusedFileScopedDecl(First))
1402 if (const VarDecl *VD = dyn_cast<VarDecl>(D)) {
1405 QualType Ty = VD
2135 VarDecl *VD = cast<VarDecl>(New); local
3598 ValueDecl *VD = cast<ValueDecl>(D); local
5130 shouldConsiderLinkage(const VarDecl *VD) argument
8972 VarDecl *VD = dyn_cast<VarDecl>(D); local
9214 VarDecl *VD = dyn_cast_or_null<VarDecl>(ThisDecl); local
9831 VarDecl *VD = C.getCapturedVar(); local
[all...]
H A DSemaDeclCXX.cpp872 const auto *VD = cast<VarDecl>(DclIt); local
873 if (VD->isThisDeclarationADefinition()) {
874 if (VD->isStaticLocal()) {
875 SemaRef.Diag(VD->getLocation(),
878 << (VD->getTLSKind() == VarDecl::TLS_Dynamic);
881 if (!VD->getType()->isDependentType() &&
883 VD->getLocation(), VD->getType(),
887 if (!VD->getType()->isDependentType() &&
888 !VD
4398 VarDecl *VD = cast<VarDecl>(D); local
4427 VarDecl *VD = dyn_cast<VarDecl>(Member); local
10758 FinalizeVarWithDestructor(VarDecl *VD, const RecordType *Record) argument
[all...]
H A DTreeTransform.h1674 ValueDecl *VD,
1682 return getSema().BuildDeclarationNameExpr(SS, NameInfo, VD);
1673 RebuildDeclRefExpr(NestedNameSpecifierLoc QualifierLoc, ValueDecl *VD, const DeclarationNameInfo &NameInfo, TemplateArgumentListInfo *TemplateArgs) argument
/external/clang/lib/Serialization/
H A DASTReaderDecl.cpp264 void VisitValueDecl(ValueDecl *VD);
277 void VisitVarDecl(VarDecl *VD) { VisitVarDeclImpl(VD); } argument
546 void ASTDeclReader::VisitValueDecl(ValueDecl *VD) { argument
547 VisitNamedDecl(VD);
548 VD->setType(Reader.readType(F, Record, Idx));
983 ASTDeclReader::RedeclarableResult ASTDeclReader::VisitVarDeclImpl(VarDecl *VD) { argument
984 RedeclarableResult Redecl = VisitRedeclarable(VD);
985 VisitDeclaratorDecl(VD);
987 VD
[all...]
/external/clang/include/clang/AST/
H A DExpr.h108 bool TD, bool VD, bool ID, bool ContainsUnexpandedParameterPack)
112 ExprBits.ValueDependent = VD;
149 void setValueDependent(bool VD) { argument
150 ExprBits.ValueDependent = VD;
151 if (VD)
613 const VarDecl *VD,
3147 bool TD, bool VD, bool ID,
3151 : Expr(SC, T, VK, OK, TD, VD, ID, ContainsUnexpandedParameterPack),
107 Expr(StmtClass SC, QualType T, ExprValueKind VK, ExprObjectKind OK, bool TD, bool VD, bool ID, bool ContainsUnexpandedParameterPack) argument
3145 AbstractConditionalOperator(StmtClass SC, QualType T, ExprValueKind VK, ExprObjectKind OK, bool TD, bool VD, bool ID, bool ContainsUnexpandedParameterPack, SourceLocation qloc, SourceLocation cloc) argument
/external/clang/lib/Rewrite/Frontend/
H A DRewriteObjC.cpp285 ValueDecl *VD, bool def=false);
294 void RewriteBlockPointerTypeVariable(std::string& Str, ValueDecl *VD);
297 void RewriteTypeOfDecl(VarDecl *VD);
324 void RewriteBlockPointerDecl(NamedDecl *VD);
325 void RewriteByRefVar(VarDecl *VD);
326 Stmt *RewriteBlockDeclRefExpr(DeclRefExpr *VD);
383 std::string SynthesizeByrefCopyDestroyHelper(VarDecl *VD, int flag);
1512 ValueDecl *VD = cast<ValueDecl>(DR->getDecl()); local
1513 if (VD->getType()->isObjCQualifiedIdType() ||
1514 VD
2269 RewriteBlockPointerTypeVariable(std::string& Str, ValueDecl *VD) argument
3067 VarDecl *VD = VarDecl::Create(*Context, TUDecl, SourceLocation(), local
3263 RewriteByRefString(std::string &ResultStr, const std::string &Name, ValueDecl *VD, bool def) argument
3274 HasLocalVariableExternalStorage(ValueDecl *VD) argument
3385 ValueDecl *VD = (*I); local
3406 ValueDecl *VD = (*I); local
3586 ValueDecl *VD = Exp->getDecl(); local
3880 ValueDecl *VD = DeclRefExp->getDecl(); local
3917 ValueDecl *VD = DRE->getDecl(); local
4164 SynthesizeByrefCopyDestroyHelper(VarDecl *VD, int flag) argument
4416 ValueDecl *VD = Exp->getDecl(); local
4787 ValueDecl *VD = DRE->getDecl(); local
4902 VarDecl *VD = cast<VarDecl>(D); local
[all...]
H A DRewriteModernObjC.cpp339 ValueDecl *VD, bool def=false);
348 void RewriteBlockPointerTypeVariable(std::string& Str, ValueDecl *VD);
351 void RewriteTypeOfDecl(VarDecl *VD);
399 void RewriteBlockPointerDecl(NamedDecl *VD);
400 void RewriteByRefVar(VarDecl *VD, bool firstDecl, bool lastDecl);
401 Stmt *RewriteBlockDeclRefExpr(DeclRefExpr *VD);
479 std::string SynthesizeByrefCopyDestroyHelper(VarDecl *VD, int flag);
1751 ValueDecl *VD = cast<ValueDecl>(DR->getDecl()); local
1752 if (VD->getType()->isObjCQualifiedIdType() ||
1753 VD
2384 RewriteBlockPointerTypeVariable(std::string& Str, ValueDecl *VD) argument
3663 VarDecl *VD = VarDecl::Create(*Context, TUDecl, SourceLocation(), local
4133 RewriteByRefString(std::string &ResultStr, const std::string &Name, ValueDecl *VD, bool def) argument
4144 HasLocalVariableExternalStorage(ValueDecl *VD) argument
4259 ValueDecl *VD = (*I); local
4280 ValueDecl *VD = (*I); local
4457 ValueDecl *VD = Exp->getDecl(); local
4796 ValueDecl *VD = DeclRefExp->getDecl(); local
4833 ValueDecl *VD = DRE->getDecl(); local
5097 SynthesizeByrefCopyDestroyHelper(VarDecl *VD, int flag) argument
5351 ValueDecl *VD = Exp->getDecl(); local
5767 ValueDecl *VD = DRE->getDecl(); local
5886 VarDecl *VD = cast<VarDecl>(D); local
[all...]
/external/qemu/disas/
H A Dppc.c832 /* The VD or VS field in a VA, VX, VXR or X form instruction. */
833 #define VD VC + 1
834 #define VS VD
838 #define SIMM VD + 1
2147 { "mfvscr", VX(4, 1540), VX_MASK, PPCVEC, { VD } },
2184 { "vaddcuw", VX(4, 384), VX_MASK, PPCVEC, { VD, VA, VB } },
2185 { "vaddfp", VX(4, 10), VX_MASK, PPCVEC, { VD, VA, VB } },
2186 { "vaddsbs", VX(4, 768), VX_MASK, PPCVEC, { VD, VA, VB } },
2187 { "vaddshs", VX(4, 832), VX_MASK, PPCVEC, { VD, VA, VB } },
2188 { "vaddsws", VX(4, 896), VX_MASK, PPCVEC, { VD, V
829 #define VD macro
[all...]

Completed in 3608 milliseconds

1234