Objective-C Beautifier?
Objective-C Beautifier?
- Subject: Objective-C Beautifier?
- From: Karl Moskowski <email@hidden>
- Date: Wed, 12 Nov 2008 10:42:31 -0500
Does anyone know of a good, Objective-C-friendly set of configuration
options for an existing C-code beautifier, e.g., bcpp <http://invisible-island.net/bcpp/bcpp.html
> or uncrustify <http://uncrustify.sourceforge.net/>?
The default config files I've tried are a little lacking when it comes
to Obj-C:
- in some cases, they add a space before colons in selector names
- in some cases, they add a space after @ in string literals
- they don't align things in multi-line method calls
I'd also like something that correctly adjusts spacing around
parentheses and operators (e.g., if (condition) -> if( condition )).
BTW, in case anyone's interested trying them out, here's info on
adding a bcpp menu to TextMate, which can easily be adapted to Xcode.
<http://blog.neontology.com/posts/2007/01/05/beautiful-c-in-textmate>
and here's one on adding uncrustify to Xcode's scripts menu
<http://hackertoys.com/2008/09/18/adding-a-code-beautifier-script-to-xcode/
>
Alternatively, is there another utility that'll do the trick? (AFAIK,
indent doesn't do Objective-C well at all.)
----
Karl Moskowski <email@hidden>
Voodoo Ergonomics Inc. <http://voodooergonomics.com/>
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden