]> granicus.if.org Git - clang/commit
clang-format: Improve braced init list detection:
authorDaniel Jasper <djasper@google.com>
Wed, 28 Aug 2013 07:50:37 +0000 (07:50 +0000)
committerDaniel Jasper <djasper@google.com>
Wed, 28 Aug 2013 07:50:37 +0000 (07:50 +0000)
commitf439dcb4ecb444df538c42b3284c093886fc7ab1
treef044db7a349b6b52e435791291aad8f991dba9ce
parentc476ea976badd316e3afd0f34afe1f030a710117
clang-format: Improve braced init list detection:

Before:
  std::this_thread::sleep_for(std::chrono::nanoseconds{
    std::chrono::seconds { 1 }
  } /
                              5);

After:
  std::this_thread::sleep_for(
      std::chrono::nanoseconds{ std::chrono::seconds{ 1 } } / 5);

This fixes llvm.org/PR16554.

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