简体   繁体   中英

Is there a maximum indentation at once setting for Uncrustify?

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?

我相信这个问题已在Uncrustify 0.58中修复

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM