Home | History | Annotate | Download | only in Frontend

Lines Matching defs:FD

331     void RewriteFunctionDecl(FunctionDecl *FD);
334 void RewriteBlockLiteralFunctionDecl(FunctionDecl *FD);
388 void RewriteBlockPointerFunctionArgs(FunctionDecl *FD);
408 CallExpr *SynthesizeCallToFunctionDecl(FunctionDecl *FD,
487 void InsertBlockLiteralsWithinFunction(FunctionDecl *FD);
723 if (FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) {
724 RewriteFunctionDecl(FD);
877 FieldDecl *FD = FieldDecl::Create(*Context, 0, SourceLocation(),
883 MemberExpr *ME = new (Context) MemberExpr(PE, true, FD, SourceLocation(),
884 FD->getType(), VK_LValue,
2138 FunctionDecl *FD, Expr **args, unsigned nargs, SourceLocation StartLoc,
2141 QualType msgSendType = FD->getType();
2145 new (Context) DeclRefExpr(FD, false, msgSendType, VK_LValue, SourceLocation());
2247 else if (FunctionDecl *FD = dyn_cast<FunctionDecl>(Dcl)) {
2248 Loc = FD->getLocation();
2251 const FunctionType *funcType = FD->getType()->getAs<FunctionType>();
2258 else if (FieldDecl *FD = dyn_cast<FieldDecl>(Dcl)) {
2259 Loc = FD->getLocation();
2260 Type = FD->getType();
2371 void RewriteModernObjC::RewriteFunctionDecl(FunctionDecl *FD) {
2373 if (FD->getIdentifier() &&
2374 FD->getName() == "sel_registerName") {
2375 SelGetUidFunctionDecl = FD;
2378 RewriteObjCQualifiedInterfaceTypes(FD);
2424 void RewriteModernObjC::RewriteBlockLiteralFunctionDecl(FunctionDecl *FD) {
2425 SourceLocation FunLocStart = FD->getTypeSpecStartLoc();
2426 const FunctionType *funcType = FD->getType()->getAs<FunctionType>();
2433 FdStr += FD->getName();
2442 if (FD->isVariadic()) {
3134 FunctionDecl *FD) {
3135 if (FD->isExternC() && !FD->isMain()) {
3136 const DeclContext *DC = FD->getDeclContext();
3142 if (FD->getStorageClass() != SC_None)
3143 R.RewriteBlockLiteralFunctionDecl(FD);
3144 return FD->getTypeSpecStartLoc();
3162 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) {
3163 if (FD->isExternC() && !FD->isMain()) {
3164 const DeclContext *DC = FD->getDeclContext();
3251 FunctionDecl *FD = FunctionDecl::Create(*Context, TUDecl, SourceLocation(),
3254 DeclRefExpr *DRE = new (Context) DeclRefExpr(FD, false, castType, VK_RValue,
3829 FieldDecl *FD = *i;
3830 RewriteObjCFieldDecl(FD, Result);
4614 void RewriteModernObjC::InsertBlockLiteralsWithinFunction(FunctionDecl *FD) {
4616 (!Blocks.empty()) ? getFunctionSourceLocation(*this, FD)
4617 : FD->getTypeSpecStartLoc();
4618 StringRef FuncName = FD->getName();
4821 FieldDecl *FD = FieldDecl::Create(*Context, 0, SourceLocation(),
4827 MemberExpr *ME = new (Context) MemberExpr(PE, true, FD, SourceLocation(),
4828 FD->getType(), VK_LValue,
4869 FieldDecl *FD = FieldDecl::Create(*Context, 0, SourceLocation(),
4876 FD, SourceLocation(),
4877 FD->getType(), VK_LValue,
4881 FD = FieldDecl::Create(*Context, 0, SourceLocation(), SourceLocation(),
4886 FD, SourceLocation(),
4973 void RewriteModernObjC::RewriteBlockPointerFunctionArgs(FunctionDecl *FD) {
4974 SourceLocation DeclLoc = FD->getLocation();
5073 if (FunctionDecl *FD = dyn_cast<FunctionDecl>(ND)) {
5074 RewriteBlockPointerFunctionArgs(FD);
5084 else if (FieldDecl *FD = dyn_cast<FieldDecl>(ND))
5085 DeclT = FD->getType();
5474 FunctionDecl *FD;
5486 FD = SynthBlockInitFunctionDecl(Tag);
5487 DeclRefExpr *DRE = new (Context) DeclRefExpr(FD, false, FType, VK_RValue,
5493 FD = SynthBlockInitFunctionDecl(Func);
5494 DeclRefExpr *Arg = new (Context) DeclRefExpr(FD, false, FD->getType(),
5527 FD = SynthBlockInitFunctionDecl((*I)->getName());
5528 Exp = new (Context) DeclRefExpr(FD, false, FD->getType(),
5537 FD = SynthBlockInitFunctionDecl((*I)->getName());
5538 Arg = new (Context) DeclRefExpr(FD, false, FD->getType(),
5543 FD = SynthBlockInitFunctionDecl((*I)->getName());
5544 Exp = new (Context) DeclRefExpr(FD, false, FD->getType(),
5571 FD = SynthBlockInitFunctionDecl((*I)->getName());
5572 Exp = new (Context) DeclRefExpr(FD, false, FD->getType(), VK_LValue,
5885 FieldDecl *FD = *i;
5886 if (isTopLevelBlockPointerType(FD->getType()))
5887 RewriteBlockPointerDecl(FD);
5888 if (FD->getType()->isObjCQualifiedIdType() ||
5889 FD->getType()->isObjCQualifiedInterfaceType())
5890 RewriteObjCQualifiedInterfaceTypes(FD);
5899 FunctionDecl *FD = cast<FunctionDecl>(D);
5900 if (FD->isOverloadedOperator())
5906 RewriteBlocksInFunctionProtoType(FD->getType(), FD);
5908 if (!FD->isThisDeclarationADefinition())
5912 if (CompoundStmt *Body = dyn_cast_or_null<CompoundStmt>(FD->getBody())) {
5913 CurFunctionDef = FD;
5917 FD->setBody(Body);
5925 InsertBlockLiteralsWithinFunction(FD);
7811 FieldDecl *FD = FieldDecl::Create(*Context, 0, SourceLocation(),
7817 MemberExpr *ME = new (Context) MemberExpr(PE, true, FD, SourceLocation(),
7818 FD->getType(), VK_LValue,
7840 FieldDecl *FD = FieldDecl::Create(*Context, 0, SourceLocation(),
7847 MemberExpr *ME = new (Context) MemberExpr(PE, /*isArrow*/false, FD, SourceLocation(),
7848 FD->getType(), VK_LValue,