]> granicus.if.org Git - clang/commit
clang-format: Improve braced-list detection.
authorDaniel Jasper <djasper@google.com>
Tue, 13 Dec 2016 10:05:03 +0000 (10:05 +0000)
committerDaniel Jasper <djasper@google.com>
Tue, 13 Dec 2016 10:05:03 +0000 (10:05 +0000)
commite59ed4b096e75ce9e2db758d4d2210366f856825
tree1f6c36765fe242eb957efe11c2495acd7d450775
parent99b2f2310e825f3a7102fc48239c91887e4c07ee
clang-format: Improve braced-list detection.

Before:
  vector<int> v { 12 }
      GUARDED_BY(mutex);

After:
  vector<int> v{12} GUARDED_BY(mutex);

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