aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorMartin Probst <martin@probst.io>2020-01-24 11:30:31 +0100
committerMartin Probst <martin@probst.io>2020-01-27 16:27:25 +0100
commit02656f29abda4eedd22e3b2b30bf2f422983514e (patch)
treed78fe4446fe18495b1f4c4a375af37b6a96b6dbb /clang/lib/CodeGen/CodeGenModule.h
parent84c3f05c8e3e28fd58c458f842e721bbbaa837b2 (diff)
downloadllvm-02656f29abda4eedd22e3b2b30bf2f422983514e.zip
llvm-02656f29abda4eedd22e3b2b30bf2f422983514e.tar.gz
llvm-02656f29abda4eedd22e3b2b30bf2f422983514e.tar.bz2
clang-format: [JS] options for arrow functions.
Summary: clang-format currently always wraps the body of non-empty arrow functions: const x = () => { z(); }; This change implements support for the `AllowShortLambdasOnASingleLine` style options, controlling the indent style for arrow function bodies that have one or fewer statements. SLS_All puts all on a single line, SLS_Inline only arrow functions used in an inline position. const x = () => { z(); }; Multi-statement arrow functions continue to be wrapped. Function expressions (`a = function() {}`) and function/method declarations are unaffected as well. Reviewers: krasimir Subscribers: cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D73335
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
0 files changed, 0 insertions, 0 deletions