Lines Matching refs:VD
195 void RSCheckAST::ValidateVarDecl(clang::VarDecl *VD) { in ValidateVarDecl() argument
196 if (!VD || RSContext::isSyntheticName(VD->getName())) { in ValidateVarDecl()
200 clang::QualType QT = VD->getType(); in ValidateVarDecl()
202 if (VD->getFormalLinkage() == clang::ExternalLinkage) { in ValidateVarDecl()
205 if (!RSExportType::NormalizeType(T, TypeName, Context, VD, in ValidateVarDecl()
212 if (mInKernel && VD->isStaticLocal()) { in ValidateVarDecl()
215 VD->getLocation(), in ValidateVarDecl()
217 << VD->getName(); in ValidateVarDecl()
222 if (!RSExportType::ValidateVarDecl(Context, VD, mTargetAPI, mIsFilterscript)) { in ValidateVarDecl()
224 } else if (clang::Expr *Init = VD->getInit()) { in ValidateVarDecl()
237 if (clang::VarDecl *VD = llvm::dyn_cast<clang::VarDecl>(*I)) { in VisitDeclStmt() local
238 ValidateVarDecl(VD); in VisitDeclStmt()
300 if (clang::VarDecl *VD = llvm::dyn_cast<clang::VarDecl>(*DI)) { in Validate() local
301 ValidateVarDecl(VD); in Validate()