]> granicus.if.org Git - clang/commit
Fix function declaration behavior.
authorDaniel Jasper <djasper@google.com>
Wed, 22 May 2013 08:55:55 +0000 (08:55 +0000)
committerDaniel Jasper <djasper@google.com>
Wed, 22 May 2013 08:55:55 +0000 (08:55 +0000)
commit24e19e4f96abd12f3f4b72b8a315b8ac257bc88f
tree656479429ef7d57a233f924a5323996803cfbc03
parent5ad72bb8eb8e5cc4c061ccd28632295213d319db
Fix function declaration behavior.

This only affects styles that prevent bin packing. There, a break after
a template declaration also forced a line break after the function name.

Before:
template <class SomeType, class SomeOtherType>
SomeType
SomeFunction(SomeType Type, SomeOtherType OtherType) {}

After:
template <class SomeType, class SomeOtherType>
SomeType SomeFunction(SomeType Type, SomeOtherType OtherType) {}

This fixes llvm.org/PR16072.

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