Allow breaking after the return type in function declarations.
authorDaniel Jasper <djasper@google.com>
Wed, 13 Feb 2013 20:33:44 +0000 (20:33 +0000)
committerDaniel Jasper <djasper@google.com>
Wed, 13 Feb 2013 20:33:44 +0000 (20:33 +0000)
commitb9caeacd0213ebbde79d096534b46603106e94b4
treeb65d5e98957ebba8c71a7b1342d757a2bbe51122
parentf662cff68902ce072e4442810dffe9769ba2dfe7
Allow breaking after the return type in function declarations.

This has so far been disabled for Google style, but should be done
before breaking at nested name specifiers or in template parameters.

Before (in Google style):
template <typename T>
aaaaaaaa::aaaaa::aaaaaa<T, aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa<
    T>::aaaaaaa() {}

After:
template <typename T>
aaaaaaaa::aaaaa::aaaaaa<T, aaaaaaaaaaaaaaaaaaaaaaaaa>
aaaaaaaaaaaaaaaaaaaaaaaa<T>::aaaaaaa() {}

llvm-svn: 175074
clang/include/clang/Format/Format.h
clang/lib/Format/Format.cpp
clang/lib/Format/TokenAnnotator.cpp
clang/unittests/Format/FormatTest.cpp