git cl format forces no space between "override" and "{" |
|||
Issue description
If you write:
void myMethod() override {}
git cl format will "correct" it to:
void myMethod() override{}
Not so old code is not like this, so this must be a recent regression in the formatting rules.
For example see this CR: https://chromium-review.googlesource.com/c/chromium/src/+/1067647
,
May 23 2018
,
May 23 2018
Iirc that happens if you put a needless ; after {} -- remove it and things should work.
,
May 23 2018
Yup, looks like that's the problem in that cl. See above for how to fix.
,
May 29 2018
Ah. Thanks! |
|||
►
Sign in to add a comment |
|||
Comment 1 by junov@chromium.org
, May 23 2018