Change clang-format's affinity for breaking after return types.
authorDaniel Jasper <djasper@google.com>
Thu, 11 Apr 2013 14:29:13 +0000 (14:29 +0000)
committerDaniel Jasper <djasper@google.com>
Thu, 11 Apr 2013 14:29:13 +0000 (14:29 +0000)
commit6728fc11bcfdc75d111aabec7766180b08094804
tree638c276b6cd4f28f67adfe6d96cff7373f141f55
parent18f082055275a5226d0ad5037128e7f1bf5ac827
Change clang-format's affinity for breaking after return types.

Function declarations are now broken with the following preferences:
1) break amongst arguments.
2) break after return type.
3) break after (.
4) break before after nested name specifiers.

Options #2 or #3 are preferred over #1 only if a substantial number of
lines can be saved by that.

llvm-svn: 179287
clang/lib/Format/Format.cpp
clang/lib/Format/TokenAnnotator.cpp
clang/unittests/Format/FormatTest.cpp