Lines Matching defs:VD

1026   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);
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 = cast<VarDecl>(D);
2285 if (!VD->hasLocalStorage()) {
2332 QualType Ty = S.Context.getPointerType(VD->getType());
2741 } else if (VarDecl *VD = dyn_cast<VarDecl>(D)) {
2742 if (VD->getStorageClass() == SC_Register)
2744 if (VD->isExceptionVariable())
2819 if (ValueDecl *VD = dyn_cast<ValueDecl>(D))
2820 Ty = VD->getType();
2943 else if (ValueDecl *VD = dyn_cast<ValueDecl>(D))
2944 OldTy = VD->getType();
3002 if (const VarDecl *VD = dyn_cast<VarDecl>(D)) {
3003 if (!VD->hasGlobalStorage())
3724 VarDecl *VD = cast<VarDecl>(D);
3729 if (VD->getTSCSpec() != TSCS_unspecified) {
3733 if (VD->hasLocalStorage()) {
3737 VD->addAttr(::new (S.Context) ThreadAttr(
3819 ValueDecl *VD = dyn_cast<ValueDecl>(D);
3820 if (VD && VD->getType()->isFunctionPointerType())
4650 } else if (VarDecl *VD = dyn_cast<VarDecl>(ND)) {
4651 NewD = VarDecl::Create(VD->getASTContext(), VD->getDeclContext(),
4652 VD->getInnerLocStart(), VD->getLocation(), II,
4653 VD->getType(), VD->getTypeSourceInfo(),
4654 VD->getStorageClass());
4655 if (VD->getQualifier()) {
4657 NewVD->setQualifierInfo(VD->getQualifierLoc());
4694 if (VarDecl *VD = dyn_cast<VarDecl>(D))
4695 if (VD->isExternC())
4696 ND = VD;