]> granicus.if.org Git - clang/commit
clang-format: Recognize braced lists with trailing function call.
authorDaniel Jasper <djasper@google.com>
Fri, 22 Nov 2013 07:26:53 +0000 (07:26 +0000)
committerDaniel Jasper <djasper@google.com>
Fri, 22 Nov 2013 07:26:53 +0000 (07:26 +0000)
commit844e62bd1fff9215bb37d8a1bf24867837861ca4
tree86a7c15ed832a3821279c55bd9ff549d0f81a6ad
parent68bf2a99a5b920bceee9549dc8c35bb0e6ef0014
clang-format: Recognize braced lists with trailing function call.

Before:
  int count = set<int> { f(), g(), h() }
      .size();

After:
  int count = set<int>{f(), g(), h()}.size();

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