I have a very strange problem with uncrustify (v0.60) that does not affect any parameter. The problem only occurs if parentheses are enclosed in parentheses:
#define BEGIN_STACK_MODIFY(L) int __index = lua_gettop( (L) );
^ ^
if ( (self = [super init]) )
^ ^
I want to reformat them this way, but uncrustify always adds these spaces between the brackets (when I manually reformat the code below, uncrustify will reformat it to the version above so that it is not just ignored by uncrustify):
#define BEGIN_STACK_MODIFY(L) int __index = lua_gettop((L));
if ((self = [super init]))
I used UncrustifyX to check all (well, a large number) of options for possible related parameters for spaces and brackets with no luck.
You can check my uncrustify configuration file here by default .
- , , , , , , .