• Home
  • Raw
  • Download

Lines Matching refs:FD

28                                          const clang::FunctionDecl *FD) {  in isGraphicsRootRSFunc()  argument
29 if (FD->hasAttr<clang::KernelAttr>()) { in isGraphicsRootRSFunc()
33 if (!FD->getName().equals("root")) { in isGraphicsRootRSFunc()
37 if (FD->getNumParams() == 0) { in isGraphicsRootRSFunc()
43 if ((targetAPI < SLANG_ICS_TARGET_API) && (FD->getNumParams() == 1)) { in isGraphicsRootRSFunc()
44 const clang::QualType &IntType = FD->getASTContext().IntTy; in isGraphicsRootRSFunc()
45 if (FD->getReturnType().getCanonicalType() == IntType) { in isGraphicsRootRSFunc()
56 clang::FunctionDecl const *FD) { in validateSpecialFuncDecl() argument
57 slangAssert(Context && FD); in validateSpecialFuncDecl()
59 const clang::ASTContext &C = FD->getASTContext(); in validateSpecialFuncDecl()
60 const clang::QualType &IntType = FD->getASTContext().IntTy; in validateSpecialFuncDecl()
62 if (isGraphicsRootRSFunc(targetAPI, FD)) { in validateSpecialFuncDecl()
63 if ((targetAPI < SLANG_ICS_TARGET_API) && (FD->getNumParams() == 1)) { in validateSpecialFuncDecl()
65 const clang::ParmVarDecl *PVD = FD->getParamDecl(0); in validateSpecialFuncDecl()
77 if (FD->getReturnType().getCanonicalType() != IntType) { in validateSpecialFuncDecl()
78 Context->ReportError(FD->getLocation(), in validateSpecialFuncDecl()
83 } else if (isInitRSFunc(FD) || isDtorRSFunc(FD)) { in validateSpecialFuncDecl()
84 if (FD->getNumParams() != 0) { in validateSpecialFuncDecl()
85 Context->ReportError(FD->getLocation(), in validateSpecialFuncDecl()
88 << FD->getName(); in validateSpecialFuncDecl()
92 if (FD->getReturnType().getCanonicalType() != C.VoidTy) { in validateSpecialFuncDecl()
93 Context->ReportError(FD->getLocation(), in validateSpecialFuncDecl()
96 << FD->getName(); in validateSpecialFuncDecl()