From clang-format version 3.7.0 and up, , there is no way to keep following format of ObjectiveC block:
- (void)_aMethod { [self.test1 t:self w:self callback:^(typeof(self) self, NSNumber *u, NSNumber *v) { u = c; }] }
Regardless of the change in .clang-format configuration file, all parameters will be lined up so that colons will be on the same column, like following:
- (void)_aMethod { [self.test1 t:self w:self callback:^(typeof(self) self, NSNumber *u, NSNumber *v) { u = c; }] }
Considering with ObjectiveC, the first code style is cleaner & more readable for some people, I've added a config option: ObjCDontBreakBeforeNestedBlockParam (boolean) so that if it is enable, the first code style will be favored.
Nit: this section should really go into the Format.h and the ClangFormatStyle.rst, for the release note a couple of lines is probably ample.
But ultimately this example will disappear from the release notes (as they move on) and I think this example is good to have in the main documentation.