diff options
| author | Martin Probst <martin@probst.io> | 2017-05-15 11:15:29 +0000 |
|---|---|---|
| committer | Martin Probst <martin@probst.io> | 2017-05-15 11:15:29 +0000 |
| commit | 2c1cdae2dfe5b9aa4eceb9e76fa52bf621cc66aa (patch) | |
| tree | fcb10919adfdbd37e0c505938fe5872c9d4e6818 /llvm/lib/CodeGen/CodeGen.cpp | |
| parent | 4ab5193735ca202b7c01f3c29765dd35bc573eb1 (diff) | |
| download | bcm5719-llvm-2c1cdae2dfe5b9aa4eceb9e76fa52bf621cc66aa.tar.gz bcm5719-llvm-2c1cdae2dfe5b9aa4eceb9e76fa52bf621cc66aa.zip | |
JavaScript allows parameter lists to include trailing commas:
myFunction(param1, param2,);
For symmetry with other parenthesized lists ([...], {...}), clang-format should
wrap parenthesized lists one-per-line if they contain a trailing comma:
myFunction(
param1,
param2,
);
This is particularly useful in function declarations or calls with many
arguments, e.g. commonly in constructors.
Differential Revision: https://reviews.llvm.org/D33023
llvm-svn: 303049
Diffstat (limited to 'llvm/lib/CodeGen/CodeGen.cpp')
0 files changed, 0 insertions, 0 deletions

