]> granicus.if.org Git - clang/commit
clang-format: Be more conservative about column layout formatting.
authorDaniel Jasper <djasper@google.com>
Thu, 24 Oct 2013 14:14:49 +0000 (14:14 +0000)
committerDaniel Jasper <djasper@google.com>
Thu, 24 Oct 2013 14:14:49 +0000 (14:14 +0000)
commit74317e4d3a6e662412cdd971df57da326229fedb
tree2edcadcf3e6116c904ae76ec52028add581a2e29
parent66b5dac8b70229dfe7c7cc882de21b1265a6cdea
clang-format: Be more conservative about column layout formatting.

Specifically, if a braced list has at least one nested braced list,
format it either all on one line or in one column (i.e. one item per
line).

This seems in general to be an improvement as the structure of nested
braced lists can make a tightly packed outer braced list hard to read.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193345 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Format/FormatToken.cpp
unittests/Format/FormatTest.cpp