Is there a maximum indent for installing Uncrustify?

I have a block of object code c that looks like

[paths enumerateObjectsUsingBlock:^(NSString * path, NSUInteger idx, BOOL * stop) {
    BOOL isDir;

    if ([fm fileExistsAtPath:path isDirectory:&isDir]) {
        ......
    }
}];

However, after going through Uncrustify it becomes

[paths enumerateObjectsUsingBlock:^(NSString * path, NSUInteger idx, BOOL * stop) {
        BOOL isDir;

        if ([fm fileExistsAtPath:path isDirectory:&isDir]) {
            ......
        }
    }];

Is there a way to make Uncrustify collapse two indents into one and keep the code formatting?

+5
source share
1 answer

I believe this problem has been fixed in Uncrustify 0.58

0
source

All Articles