clang-format currently always wraps the body of non-empty arrow
functions:
const x = () => { z(); };
This change implements support for the AllowShortLambdasOnASingleLine
style options, and also sets the default Google style to SLS_All, i.e.
to indent arrow function bodies that have one or fewer statements on a
single line:
const x = () => { z(); };
Multi-statement arrow functions continue to be wrapped. Function
expressions (a = function() {}) and function/method declarations are
unaffected as well.
@mprobst - this is breaking buildbots: http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-android/builds/27196/steps/bootstrap%20clang/logs/stdio
Please can you remove the default case and add a suitable llvm_unreachable() after the switch statement ?