Lines Matching defs:VD

88     const clang::VarDecl *VD,
124 const clang::VarDecl *VD,
129 ReportTypeError(DiagEngine, VD, TopLevelRecord,
139 ReportTypeError(DiagEngine, VD, TopLevelRecord,
145 ReportTypeError(DiagEngine, VD, TopLevelRecord,
151 if (TypeExportableHelper(ElementType, SPS, DiagEngine, VD,
163 clang::VarDecl const *VD,
195 ReportTypeError(DiagEngine, VD, T->getAsUnionType()->getDecl(),
238 if (!TypeExportableHelper(FT, SPS, DiagEngine, VD, TopLevelRecord)) {
264 ReportTypeError(DiagEngine, VD, TopLevelRecord,
274 ReportTypeError(DiagEngine, VD, TopLevelRecord,
281 (TypeExportableHelper(PointeeType, SPS, DiagEngine, VD,
298 (TypeExportableHelper(ElementType, SPS, DiagEngine, VD,
308 return ConstantArrayTypeExportableHelper(CAT, SPS, DiagEngine, VD,
326 const clang::VarDecl *VD) {
330 return TypeExportableHelper(T, SPS, DiagEngine, VD, NULL);
333 static bool ValidateRSObjectInVarDecl(clang::VarDecl *VD,
340 if (VD->hasLinkage() && (VD->getLinkage() == clang::ExternalLinkage)) {
342 const clang::Type *T = GET_CANONICAL_TYPE(VD->getType().getTypePtr());
344 clang::ASTContext &C = VD->getASTContext();
345 ReportTypeError(&C.getDiagnostics(), VD, NULL,
391 clang::VarDecl *VD = (ND ? llvm::dyn_cast<clang::VarDecl>(ND) : NULL);
392 if (VD && !ValidateRSObjectInVarDecl(VD, InCompositeType, TargetAPI)) {
547 const clang::VarDecl *VD) {
548 if ((T = TypeExportable(T, DiagEngine, VD)) == NULL) {
555 if (VD) {
557 clang::FullSourceLoc(VD->getLocation(),
585 bool RSExportType::ValidateVarDecl(clang::VarDecl *VD, unsigned int TargetAPI,
587 return ValidateType(VD->getASTContext(), VD->getType(), VD,
588 VD->getLocation(), TargetAPI, IsFilterscript);
794 const clang::VarDecl *VD) {
795 return RSExportType::Create(Context, GetTypeOfDecl(VD));