Lines Matching defs:FD
462 FunctionDecl *FD = dyn_cast<FunctionDecl>(D);
464 if(FD && IL) {
465 unsigned int NumParams = FD->getNumParams();
474 ArgTy = FD->getParamDecl(ParamIdxFromZero)->getType();
1022 else if (FieldDecl *FD = dyn_cast<FieldDecl>(D)) {
1025 if (!FD->getType()->isDependentType() &&
1026 !FD->getType()->isIncompleteType() &&
1027 S.Context.getTypeAlign(FD->getType()) <= 8)
1029 << Attr.getName() << FD->getType();
1031 FD->addAttr(::new (S.Context)
1630 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) {
1631 QualType RetTy = FD->getResultType();
1739 FunctionDecl *FD = dyn_cast<FunctionDecl>(D);
1740 if (!FD) {
2542 if (FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) {
2543 const FunctionType *FT = FD->getType()->castAs<FunctionType>();
2904 FunctionDecl *FD = dyn_cast<FunctionDecl>(CleanupDecl);
2905 if (!FD) {
2912 if (FD->getNumParams() != 1) {
2922 QualType ParamTy = FD->getParamDecl(0)->getType();
2923 if (S.CheckAssignmentConstraints(FD->getParamDecl(0)->getLocation(),
2932 CleanupAttr(Attr.getRange(), S.Context, FD,
2934 S.MarkFunctionReferenced(Attr.getParameterLoc(), FD);
2935 S.DiagnoseUseOfDecl(FD, Attr.getParameterLoc());
3392 } else if (FieldDecl *FD = dyn_cast<FieldDecl>(D)) {
3393 if (FD->isBitField())
3805 FunctionDecl *FD = cast<FunctionDecl>(D);
3806 if (!FD->getResultType()->isVoidType()) {
3807 TypeLoc TL = FD->getTypeSourceInfo()->getTypeLoc().IgnoreParens();
3809 S.Diag(FD->getTypeSpecStartLoc(), diag::err_kern_type_not_void_return)
3810 << FD->getType()
3814 S.Diag(FD->getTypeSpecStartLoc(), diag::err_kern_type_not_void_return)
3815 << FD->getType();
3894 const FunctionDecl *FD = dyn_cast<FunctionDecl>(D);
3898 if (S.CheckCallingConvAttr(Attr, CC, FD))
3990 const FunctionDecl *FD) {
4044 if (FD)
4045 MT = FD->isCXXInstanceMember() ? TargetInfo::CCMT_Member :
4303 else if (FunctionDecl *FD = dyn_cast<FunctionDecl>(D))
4304 returnType = FD->getResultType();
5088 if (FunctionDecl *FD = dyn_cast<FunctionDecl>(ND)) {
5094 NewFD = FunctionDecl::Create(FD->getASTContext(), FD->getDeclContext(),
5096 FD->getType(), FD->getTypeSourceInfo(),
5098 FD->hasPrototype(),
5102 if (FD->getQualifier())
5103 NewFD->setQualifierInfo(FD->getQualifierLoc());
5107 QualType FDTy = FD->getType();
5163 if (FunctionDecl *FD = dyn_cast<FunctionDecl>(D))
5164 if (FD->isExternC())
5165 ND = FD;
5226 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(decl)) {
5229 if (FD->hasAttr<UnavailableAttr>() &&