5

I have a block of objective c code that looks like this

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

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

However, after passing through Uncrustify, it becomes

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

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

Is there anyway to make Uncrustify collapse the two indents into one and preserve the formatting of the code?

Tony
  • 36,591
  • 10
  • 48
  • 83

1 Answers1

0

I believe this issue was fixed in Uncrustify 0.58

Shaheen Ghiassy
  • 7,397
  • 3
  • 40
  • 40