clang-format: Make braced list formatting more consistent.
authorDaniel Jasper <djasper@google.com>
Thu, 26 Feb 2015 11:46:29 +0000 (11:46 +0000)
committerDaniel Jasper <djasper@google.com>
Thu, 26 Feb 2015 11:46:29 +0000 (11:46 +0000)
commitb812e323fa053490238730fa957d2a58db065c06
treeb71febd699cac8d178e7fe01e1fc27b95979411b
parent2d52afd71c1cf28fbf6fc314d6962ed7b9a4cdac
clang-format: Make braced list formatting more consistent.

Before:
  Aaaa aaaaaaaaaaa{
      {
       a, // +1 indent weird.
       b, // trailing comma signals one per line.
      },  // trailing comma signals one per line.
  };

After:
  Aaaa aaaaaaaaaaa{
      {
          a, // better!?
          b, // trailing comma signals one per line.
      },     // trailing comma signals one per line.
  };

Interesting that this apparently was entirely untested :-(.

llvm-svn: 230627
clang/lib/Format/ContinuationIndenter.cpp
clang/unittests/Format/FormatTest.cpp