diff options
| author | Daniel Jasper <djasper@google.com> | 2013-07-10 14:02:49 +0000 |
|---|---|---|
| committer | Daniel Jasper <djasper@google.com> | 2013-07-10 14:02:49 +0000 |
| commit | c7bd68f9edcbca95e882d0ab18d09371f0bdb82c (patch) | |
| tree | 94d951e4acfef1b377f9aecbe07032ac56e6b1df /lib/CodeGen/CGExprAgg.cpp | |
| parent | 041d10caff48859c0de6d001559a73185f5e0601 (diff) | |
| download | clang-c7bd68f9edcbca95e882d0ab18d09371f0bdb82c.tar.gz clang-c7bd68f9edcbca95e882d0ab18d09371f0bdb82c.tar.bz2 clang-c7bd68f9edcbca95e882d0ab18d09371f0bdb82c.tar.xz | |
Add experimental flag for adaptive parameter bin-packing.
This is not activated for any style, might change or go away
completely.
For those that want to play around with it, set
ExperimentalAutoDetectBinPacking to true.
clang-format will then:
Look at whether function calls/declarations/definitions are currently
formatted with one parameter per line (on a case-by-case basis). If so,
clang-format will avoid bin-packing the parameters. If all parameters
are on one line (thus that line is "inconclusive"), clang-format will
make the choice dependent on whether there are other bin-packed
calls/declarations in the same file.
The reason for this change is that bin-packing in some situations can be
really bad and an author might opt to put one parameter on each line. If
the author does that, he might want clang-format not to mess with that.
If the author is unhappy with the one-per-line formatting, clang-format
can easily be convinced to bin-pack by putting any two parameters on the
same line.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186003 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprAgg.cpp')
0 files changed, 0 insertions, 0 deletions
