New issue
Advanced search Search tips

Issue 863549 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: Nov 26
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug

Blocked on:
issue 768586



Sign in to add a comment

git cl format: weird formatting for ternary in ObjC message send

Project Member Reported by a...@chromium.org, Jul 13

Issue description

In https://chromium-review.googlesource.com/c/chromium/src/+/1135718 there is the line:

  [(newCursor ? newCursor : [NSCursor arrowCursor]) set];

git cl format wants to make it:

  [(newCursor ? newCursor : [NSCursor arrowCursor])set];

which is... weird.

Assigning to you, Nico; dunno who else is in this area. Reassign as necessary.
 
Labels: clang-format
It's clang-format's way of letting you know that your code is too clever :-)
Blockedon: 768586
Summary: git cl format: weird formatting for ternary in ObjC message send (was: git cl format: weird formatting)
Looks like this got fixed in yesterday's clang-format roll.
Status: Fixed (was: Assigned)
A clang-format with the fix got deployed on Nov 21 2018.

Sign in to add a comment