Skip to content

[clang-format][objc] Preserve space after colon #137971

Open
@ovaar

Description

@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:

NSTableCellView *result = [outlineView makeViewWithIdentifier: columnIdentifier owner: self];

However, clang-format currently strips the space after the colon, reformatting it as:

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions