I am using ClangFormat.
I wish to update the style of my ReactiveCocoa code from this
[[self.myService indexCase] subscribeNext:^(id response) {
DDLogDebug(@"response : %@", response);
}
error:^(NSError *error) {
[self.dataManager sendError:error];
}];
to this
[[self.myService indexCase]
subscribeNext:^(id response) {
DDLogDebug(@"response : %@", response);
} error:^(NSError *error) {
[self.dataManager sendError:error];
}];
What ClangFormat attributes should I be looking at to achieve this?
My Current .clang-format
file:
BasedOnStyle: WebKit
AlignTrailingComments: true
AllowShortFunctionsOnASingleLine: false
AllowShortIfStatementsOnASingleLine: true
BreakBeforeBraces: Linux
ColumnLimit: 120
IndentCaseLabels: true
IndentWidth: 4
KeepEmptyLinesAtTheStartOfBlocks: false
MaxEmptyLinesToKeep: 2
ObjCSpaceAfterProperty: true
ObjCSpaceBeforeProtocolList: true
PointerBindsToType: false
SpacesBeforeTrailingComments: 1
TabWidth: 4
UseTab: Never