We use a style with padded parens for everything
except casts. It would be nice if there were a
paren.castpad option to allow for this.
Logged In: YES
We're way ahead of you :-)
The upcoming version of Checkstyle (release 3.0) will allow
fine grained control over the token types a check is applied
to. Here is a configuration file snippet that should do what
you asked for (untested).
<property name="tokens" value="TYPECAST"/>
<property name="option" value="nospace"/>
<property name="tokens" value="RPAREN, LPAREN, CTOR_CALL,
<property name="option" value="space"/>
<!-- add more TreeWalker modules here -->
It would be really great if you could try out the current
CVS and tell us if this does what you need.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.