Author: mcrosier Date: Fri Jan 4 16:40:33 2013 New Revision: 171545 URL: http://llvm.org/viewvc/llvm-project?rev=171545&view=rev Log: Fix indent and remove parameter with a matching default value.
Modified: cfe/trunk/lib/Rewrite/Frontend/RewriteModernObjC.cpp cfe/trunk/lib/Rewrite/Frontend/RewriteObjC.cpp Modified: cfe/trunk/lib/Rewrite/Frontend/RewriteModernObjC.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Rewrite/Frontend/RewriteModernObjC.cpp?rev=171545&r1=171544&r2=171545&view=diff ============================================================================== --- cfe/trunk/lib/Rewrite/Frontend/RewriteModernObjC.cpp (original) +++ cfe/trunk/lib/Rewrite/Frontend/RewriteModernObjC.cpp Fri Jan 4 16:40:33 2013 @@ -2309,11 +2309,10 @@ QualType getFuncType = getSimpleFunctionType(Context->getObjCSelType(), &ArgTys[0], ArgTys.size()); SelGetUidFunctionDecl = FunctionDecl::Create(*Context, TUDecl, - SourceLocation(), - SourceLocation(), - SelGetUidIdent, getFuncType, 0, - SC_Extern, - SC_None, false); + SourceLocation(), + SourceLocation(), + SelGetUidIdent, getFuncType, 0, + SC_Extern, SC_None); } void RewriteModernObjC::RewriteFunctionDecl(FunctionDecl *FD) { @@ -2408,11 +2407,10 @@ QualType msgSendType = getSimpleFunctionType(Context->getObjCIdType(), &ArgTys[0], ArgTys.size()); SuperContructorFunctionDecl = FunctionDecl::Create(*Context, TUDecl, - SourceLocation(), - SourceLocation(), - msgSendIdent, msgSendType, 0, - SC_Extern, - SC_None, false); + SourceLocation(), + SourceLocation(), + msgSendIdent, msgSendType, + 0, SC_Extern, SC_None); } // SynthMsgSendFunctionDecl - id objc_msgSend(id self, SEL op, ...); @@ -2429,11 +2427,10 @@ &ArgTys[0], ArgTys.size(), true /*isVariadic*/); MsgSendFunctionDecl = FunctionDecl::Create(*Context, TUDecl, - SourceLocation(), - SourceLocation(), - msgSendIdent, msgSendType, 0, - SC_Extern, - SC_None, false); + SourceLocation(), + SourceLocation(), + msgSendIdent, msgSendType, 0, + SC_Extern, SC_None); } // SynthMsgSendSuperFunctionDecl - id objc_msgSendSuper(void); @@ -2445,11 +2442,10 @@ &ArgTys[0], 1, true /*isVariadic*/); MsgSendSuperFunctionDecl = FunctionDecl::Create(*Context, TUDecl, - SourceLocation(), - SourceLocation(), - msgSendIdent, msgSendType, 0, - SC_Extern, - SC_None, false); + SourceLocation(), + SourceLocation(), + msgSendIdent, msgSendType, 0, + SC_Extern, SC_None); } // SynthMsgSendStretFunctionDecl - id objc_msgSend_stret(id self, SEL op, ...); @@ -2466,11 +2462,10 @@ &ArgTys[0], ArgTys.size(), true /*isVariadic*/); MsgSendStretFunctionDecl = FunctionDecl::Create(*Context, TUDecl, - SourceLocation(), - SourceLocation(), - msgSendIdent, msgSendType, 0, - SC_Extern, - SC_None, false); + SourceLocation(), + SourceLocation(), + msgSendIdent, msgSendType, 0, + SC_Extern, SC_None); } // SynthMsgSendSuperStretFunctionDecl - @@ -2486,9 +2481,9 @@ MsgSendSuperStretFunctionDecl = FunctionDecl::Create(*Context, TUDecl, SourceLocation(), SourceLocation(), - msgSendIdent, msgSendType, 0, - SC_Extern, - SC_None, false); + msgSendIdent, + msgSendType, 0, + SC_Extern, SC_None); } // SynthMsgSendFpretFunctionDecl - double objc_msgSend_fpret(id self, SEL op, ...); @@ -2505,11 +2500,10 @@ &ArgTys[0], ArgTys.size(), true /*isVariadic*/); MsgSendFpretFunctionDecl = FunctionDecl::Create(*Context, TUDecl, - SourceLocation(), - SourceLocation(), - msgSendIdent, msgSendType, 0, - SC_Extern, - SC_None, false); + SourceLocation(), + SourceLocation(), + msgSendIdent, msgSendType, 0, + SC_Extern, SC_None); } // SynthGetClassFunctionDecl - Class objc_getClass(const char *name); @@ -2520,11 +2514,10 @@ QualType getClassType = getSimpleFunctionType(Context->getObjCClassType(), &ArgTys[0], ArgTys.size()); GetClassFunctionDecl = FunctionDecl::Create(*Context, TUDecl, - SourceLocation(), - SourceLocation(), - getClassIdent, getClassType, 0, - SC_Extern, - SC_None, false); + SourceLocation(), + SourceLocation(), + getClassIdent, getClassType, 0, + SC_Extern, SC_None); } // SynthGetSuperClassFunctionDecl - Class class_getSuperclass(Class cls); @@ -2540,9 +2533,7 @@ SourceLocation(), getSuperClassIdent, getClassType, 0, - SC_Extern, - SC_None, - false); + SC_Extern, SC_None); } // SynthGetMetaClassFunctionDecl - Class objc_getMetaClass(const char *name); @@ -2553,11 +2544,10 @@ QualType getClassType = getSimpleFunctionType(Context->getObjCClassType(), &ArgTys[0], ArgTys.size()); GetMetaClassFunctionDecl = FunctionDecl::Create(*Context, TUDecl, - SourceLocation(), - SourceLocation(), - getClassIdent, getClassType, 0, - SC_Extern, - SC_None, false); + SourceLocation(), + SourceLocation(), + getClassIdent, getClassType, + 0, SC_Extern, SC_None); } Stmt *RewriteModernObjC::RewriteObjCStringLiteral(ObjCStringLiteral *Exp) { @@ -3213,8 +3203,8 @@ // AST for __Stretn(receiver, args).s; IdentifierInfo *ID = &Context->Idents.get(name); FunctionDecl *FD = FunctionDecl::Create(*Context, TUDecl, SourceLocation(), - SourceLocation(), ID, castType, 0, SC_Extern, - SC_None, false, false); + SourceLocation(), ID, castType, 0, + SC_Extern, SC_None, false, false); DeclRefExpr *DRE = new (Context) DeclRefExpr(FD, false, castType, VK_RValue, SourceLocation()); CallExpr *STCE = new (Context) CallExpr(*Context, DRE, MsgExprs, Modified: cfe/trunk/lib/Rewrite/Frontend/RewriteObjC.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Rewrite/Frontend/RewriteObjC.cpp?rev=171545&r1=171544&r2=171545&view=diff ============================================================================== --- cfe/trunk/lib/Rewrite/Frontend/RewriteObjC.cpp (original) +++ cfe/trunk/lib/Rewrite/Frontend/RewriteObjC.cpp Fri Jan 4 16:40:33 2013 @@ -2265,11 +2265,10 @@ QualType getFuncType = getSimpleFunctionType(Context->getObjCSelType(), &ArgTys[0], ArgTys.size()); SelGetUidFunctionDecl = FunctionDecl::Create(*Context, TUDecl, - SourceLocation(), - SourceLocation(), - SelGetUidIdent, getFuncType, 0, - SC_Extern, - SC_None, false); + SourceLocation(), + SourceLocation(), + SelGetUidIdent, getFuncType, 0, + SC_Extern, SC_None); } void RewriteObjC::RewriteFunctionDecl(FunctionDecl *FD) { @@ -2362,11 +2361,10 @@ QualType msgSendType = getSimpleFunctionType(Context->getObjCIdType(), &ArgTys[0], ArgTys.size()); SuperContructorFunctionDecl = FunctionDecl::Create(*Context, TUDecl, - SourceLocation(), - SourceLocation(), - msgSendIdent, msgSendType, 0, - SC_Extern, - SC_None, false); + SourceLocation(), + SourceLocation(), + msgSendIdent, msgSendType, + 0, SC_Extern, SC_None); } // SynthMsgSendFunctionDecl - id objc_msgSend(id self, SEL op, ...); @@ -2383,11 +2381,10 @@ &ArgTys[0], ArgTys.size(), true /*isVariadic*/); MsgSendFunctionDecl = FunctionDecl::Create(*Context, TUDecl, - SourceLocation(), - SourceLocation(), - msgSendIdent, msgSendType, 0, - SC_Extern, - SC_None, false); + SourceLocation(), + SourceLocation(), + msgSendIdent, msgSendType, 0, + SC_Extern, SC_None); } // SynthMsgSendSuperFunctionDecl - id objc_msgSendSuper(struct objc_super *, SEL op, ...); @@ -2407,11 +2404,10 @@ &ArgTys[0], ArgTys.size(), true /*isVariadic*/); MsgSendSuperFunctionDecl = FunctionDecl::Create(*Context, TUDecl, - SourceLocation(), - SourceLocation(), - msgSendIdent, msgSendType, 0, - SC_Extern, - SC_None, false); + SourceLocation(), + SourceLocation(), + msgSendIdent, msgSendType, 0, + SC_Extern, SC_None); } // SynthMsgSendStretFunctionDecl - id objc_msgSend_stret(id self, SEL op, ...); @@ -2428,11 +2424,10 @@ &ArgTys[0], ArgTys.size(), true /*isVariadic*/); MsgSendStretFunctionDecl = FunctionDecl::Create(*Context, TUDecl, - SourceLocation(), - SourceLocation(), - msgSendIdent, msgSendType, 0, - SC_Extern, - SC_None, false); + SourceLocation(), + SourceLocation(), + msgSendIdent, msgSendType, 0, + SC_Extern, SC_None); } // SynthMsgSendSuperStretFunctionDecl - @@ -2456,9 +2451,9 @@ MsgSendSuperStretFunctionDecl = FunctionDecl::Create(*Context, TUDecl, SourceLocation(), SourceLocation(), - msgSendIdent, msgSendType, 0, - SC_Extern, - SC_None, false); + msgSendIdent, + msgSendType, 0, + SC_Extern, SC_None); } // SynthMsgSendFpretFunctionDecl - double objc_msgSend_fpret(id self, SEL op, ...); @@ -2475,11 +2470,10 @@ &ArgTys[0], ArgTys.size(), true /*isVariadic*/); MsgSendFpretFunctionDecl = FunctionDecl::Create(*Context, TUDecl, - SourceLocation(), - SourceLocation(), - msgSendIdent, msgSendType, 0, - SC_Extern, - SC_None, false); + SourceLocation(), + SourceLocation(), + msgSendIdent, msgSendType, 0, + SC_Extern, SC_None); } // SynthGetClassFunctionDecl - id objc_getClass(const char *name); @@ -2490,11 +2484,10 @@ QualType getClassType = getSimpleFunctionType(Context->getObjCIdType(), &ArgTys[0], ArgTys.size()); GetClassFunctionDecl = FunctionDecl::Create(*Context, TUDecl, - SourceLocation(), - SourceLocation(), - getClassIdent, getClassType, 0, - SC_Extern, - SC_None, false); + SourceLocation(), + SourceLocation(), + getClassIdent, getClassType, 0, + SC_Extern, SC_None); } // SynthGetSuperClassFunctionDecl - Class class_getSuperclass(Class cls); @@ -2510,9 +2503,7 @@ SourceLocation(), getSuperClassIdent, getClassType, 0, - SC_Extern, - SC_None, - false); + SC_Extern, SC_None); } // SynthGetMetaClassFunctionDecl - id objc_getMetaClass(const char *name); @@ -2523,11 +2514,10 @@ QualType getClassType = getSimpleFunctionType(Context->getObjCIdType(), &ArgTys[0], ArgTys.size()); GetMetaClassFunctionDecl = FunctionDecl::Create(*Context, TUDecl, - SourceLocation(), - SourceLocation(), - getClassIdent, getClassType, 0, - SC_Extern, - SC_None, false); + SourceLocation(), + SourceLocation(), + getClassIdent, getClassType, + 0, SC_Extern, SC_None); } Stmt *RewriteObjC::RewriteObjCStringLiteral(ObjCStringLiteral *Exp) { _______________________________________________ cfe-commits mailing list cfe-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits