]> granicus.if.org Git - clang/commit
clang-format: If the template list of a variable declaration spans
authorDaniel Jasper <djasper@google.com>
Mon, 23 Nov 2015 15:55:45 +0000 (15:55 +0000)
committerDaniel Jasper <djasper@google.com>
Mon, 23 Nov 2015 15:55:45 +0000 (15:55 +0000)
commit6a92b11850081157414e1d4ed77cd403438f0ce7
treee59d19dcbcda1cd4ec5bedae68de77185f3e5781
parentcf9fbd23358480884cdb0d8bebec1f93b087bd10
clang-format: If the template list of a variable declaration spans
multiple lines, also break before the variable name.

Before:
  std::vector<aaaaaa, // wrap
              aa> aaa;

After:
  std::vector<aaaaaa, // wrap
              aa>
      aaa;

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