Lines Matching refs:FD
56 RSContext *Context, const clang::FunctionDecl *FD) {
57 slangAssert(Context && FD);
62 if (!isRootRSFunc(FD)) {
66 numParams = FD->getNumParams();
70 if (FD->getResultType().getCanonicalType() != C.VoidTy) {
72 clang::FullSourceLoc(FD->getLocation(), DiagEngine->getSourceManager()),
83 const clang::ParmVarDecl *PVD = FD->getParamDecl(i);
94 PVD = FD->getParamDecl(i);
104 clang::FullSourceLoc(FD->getLocation(),
114 PVD = FD->getParamDecl(i);
123 PVD = FD->getParamDecl(i);
195 clang::FullSourceLoc(FD->getLocation(),
210 const clang::FunctionDecl *FD) {
211 slangAssert(Context && FD);
212 llvm::StringRef Name = FD->getName();
217 FE = new RSExportForEach(Context, Name, FD);
219 if (!FE->validateAndConstructParams(Context, FD)) {
250 clang::FieldDecl *FD =
261 RD->addDecl(FD);
298 const clang::FunctionDecl *FD) {
300 if (!isRootRSFunc(FD)) {
304 if (FD->getNumParams() == 0) {
310 if ((targetAPI < SLANG_ICS_TARGET_API) && (FD->getNumParams() == 1)) {
311 const clang::ParmVarDecl *PVD = FD->getParamDecl(0);
313 const clang::QualType &IntType = FD->getASTContext().IntTy;
314 if ((FD->getResultType().getCanonicalType() == IntType) &&
326 clang::FunctionDecl const *FD) {
327 slangAssert(DiagEngine && FD);
329 const clang::ASTContext &C = FD->getASTContext();
331 if (isRootRSFunc(FD)) {
332 unsigned int numParams = FD->getNumParams();
335 if (FD->getResultType().getCanonicalType() != C.IntTy) {
337 clang::FullSourceLoc(FD->getLocation(),
351 } else if (isInitRSFunc(FD) || isDtorRSFunc(FD)) {
352 if (FD->getNumParams() != 0) {
354 clang::FullSourceLoc(FD->getLocation(),
358 "parameters")) << FD->getName();
362 if (FD->getResultType().getCanonicalType() != C.VoidTy) {
364 clang::FullSourceLoc(FD->getLocation(),
368 "return type")) << FD->getName();