git cl format could fix braces |
|||||||
Issue description
My understanding is that chrome style prefers:
if (true)
callFunction();
is preferred over
if (true) {
callFunction();
}
It would be nice if the pre-submit caught this mistake or (even better) git cl format fixed it.
,
Apr 13 2016
,
Apr 13 2016
,
Aug 31 2016
,
Sep 1 2016
,
Nov 11 2016
,
Nov 22 2016
'git cl format' is literally just a call through to 'clang-format-diff.py', which is sourced directly from the llvm repo: https://chromium.googlesource.com/chromium/llvm-project/cfe/tools/clang-format/+/master/clang-format-diff.py So the change would need to be made there. As such, I'm going to mark this bug as WontFix, as I don't believe there's anything Infra can directly do about this. Maybe some of the LLVM folks know more? |
|||||||
►
Sign in to add a comment |
|||||||
Comment 1 by jpar...@google.com
, Apr 13 2016