Lines Matching refs:FD
149 void RSCheckAST::ValidateFunctionDecl(clang::FunctionDecl *FD) { in ValidateFunctionDecl() argument
150 if (!FD) { in ValidateFunctionDecl()
155 if (FD->hasAttr<clang::RenderScriptKernelAttr>() && in ValidateFunctionDecl()
156 FD->getStorageClass() == clang::SC_Static) { in ValidateFunctionDecl()
157 Context->ReportError(FD->getLocation(), in ValidateFunctionDecl()
160 << FD->getName(); in ValidateFunctionDecl()
164 clang::QualType resultType = FD->getReturnType().getCanonicalType(); in ValidateFunctionDecl()
165 bool isExtern = (FD->getFormalLinkage() == clang::ExternalLinkage); in ValidateFunctionDecl()
168 if (!RSExportType::ValidateType(Context, C, resultType, FD, in ValidateFunctionDecl()
169 FD->getLocStart(), mTargetAPI, in ValidateFunctionDecl()
174 size_t numParams = FD->getNumParams(); in ValidateFunctionDecl()
176 clang::ParmVarDecl *PVD = FD->getParamDecl(i); in ValidateFunctionDecl()
185 mInKernel = RSExportForEach::isRSForEachFunc(mTargetAPI, FD); in ValidateFunctionDecl()
187 if (clang::Stmt *Body = FD->getBody()) { in ValidateFunctionDecl()
239 } else if (clang::FunctionDecl *FD = in VisitDeclStmt() local
241 ValidateFunctionDecl(FD); in VisitDeclStmt()
302 } else if (clang::FunctionDecl *FD = in Validate() local
304 ValidateFunctionDecl(FD); in Validate()