Issue |
137971
|
Summary |
[clang-format][objc] Preserve space after colon
|
Labels |
clang-format
|
Assignees |
|
Reporter |
ovaar
|
In Objective-C, it's common in some codebases to place a space between the colon (:) and the value in method calls or message expressions for improved readability and vertical alignment, like so:
```objc
NSTableCellView *result = [outlineView makeViewWithIdentifier: columnIdentifier owner: self];
```
However, clang-format currently strips the space after the colon, reformatting it as:
```objc
NSTableCellView *result = [outlineView makeViewWithIdentifier:columnIdentifier owner:self];
```
Therefore I submit the request for such option to preserve or enforce a space after the colon in Objective-C method calls or message expressions.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs