Home | History | Annotate | Download | only in slang

Lines Matching refs:FD

149 void RSCheckAST::ValidateFunctionDecl(clang::FunctionDecl *FD) {
150 if (!FD) {
154 if (FD->hasAttr<clang::KernelAttr>()) {
156 if (FD->getStorageClass() == clang::SC_Static) {
157 Context->ReportError(FD->getLocation(),
160 << FD->getName();
168 FD->getAttr<clang::KernelAttr>()->getKernelKind();
171 Context->ReportError(FD->getLocation(),
174 << KernelKind << FD->getName();
179 clang::QualType resultType = FD->getReturnType().getCanonicalType();
180 bool isExtern = (FD->getFormalLinkage() == clang::ExternalLinkage);
182 // We use FD as our NamedDecl in the case of a bad return type.
183 if (!RSExportType::ValidateType(Context, C, resultType, FD,
184 FD->getLocStart(), mTargetAPI,
189 size_t numParams = FD->getNumParams();
191 clang::ParmVarDecl *PVD = FD->getParamDecl(i);
200 mInKernel = RSExportForEach::isRSForEachFunc(mTargetAPI, FD);
202 if (clang::Stmt *Body = FD->getBody()) {
254 } else if (clang::FunctionDecl *FD =
256 ValidateFunctionDecl(FD);
312 } else if (clang::FunctionDecl *FD =
314 ValidateFunctionDecl(FD);