Uncrustify adds space between double brackets (C / Objective-C)

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:

// from a C header file:
#define BEGIN_STACK_MODIFY(L)  int __index = lua_gettop( (L) );
                                                        ^   ^

// from an ObjC (.m) implementation file:
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):

// from an ObjC header file:
#define BEGIN_STACK_MODIFY(L)  int __index = lua_gettop((L));

// from an ObjC (.m) implementation file:
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 .

- , , , , , , .

+5
1

( , .)

@Petesh : sp_paren_paren - , .

+3

All Articles