travisjeffery / ClangFormat-Xcode

Xcode plug-in to to use clang-format from in Xcode and consistently format your code with Clang
https://twitter.com/travisjeffery
MIT License
2.89k stars 288 forks source link

No format in blocks #58

Open Morrowind1983 opened 9 years ago

Morrowind1983 commented 9 years ago

[sendOperation start:^(NSError* error) { if(error) {//this code won't be formatted on save } else { } }];

samnm commented 9 years ago

This seems to only happen when ColumnLimit is set to 0. It's still happening in the latest version of clang-format so it is independent of ClangFormat-Xcode.

KingOfBrian commented 9 years ago

I've logged a bug with clang-format for this:

https://llvm.org/bugs/show_bug.cgi?id=23315

KingOfBrian commented 9 years ago

Hey @Morrowind1983 -- if you update your system clang format, this issue should be resolved.