diff options
author | Paul Hoad <mydeveloperday@gmail.com> | 2019-03-23 14:37:58 +0000 |
---|---|---|
committer | Paul Hoad <mydeveloperday@gmail.com> | 2019-03-23 14:37:58 +0000 |
commit | c6deae452197631a4530a50df266cdf5063b601e (patch) | |
tree | f9815ece2ce465ca648961c316fc9436ba9cc35e /clang/lib/Format/TokenAnnotator.cpp | |
parent | a87ba1c59cb9f3381216cfe4e1a6a1e5425225ca (diff) | |
download | bcm5719-llvm-c6deae452197631a4530a50df266cdf5063b601e.tar.gz bcm5719-llvm-c6deae452197631a4530a50df266cdf5063b601e.zip |
Clang-format: add finer-grained options for putting all arguments on one line
Summary:
Add two new options,
AllowAllArgumentsOnNextLine and
AllowAllConstructorInitializersOnNextLine. These mirror the existing
AllowAllParametersOfDeclarationOnNextLine and allow me to support an
internal style guide where I work. I think this would be generally
useful, some have asked for it on stackoverflow:
https://stackoverflow.com/questions/30057534/clang-format-binpackarguments-not-working-as-expected
https://stackoverflow.com/questions/38635106/clang-format-how-to-prevent-all-function-arguments-on-next-line
Reviewers: djasper, krasimir, MyDeveloperDay
Reviewed By: MyDeveloperDay
Subscribers: jkorous, MyDeveloperDay, aol-nnov, lebedev.ri, uohcsemaj, cfe-commits, klimek
Differential Revision: https://reviews.llvm.org/D40988
Patch By: russellmcc (Russell McClellan)
llvm-svn: 356834
Diffstat (limited to 'clang/lib/Format/TokenAnnotator.cpp')
0 files changed, 0 insertions, 0 deletions