]> granicus.if.org Git - clang/commit
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)
commit1407bee187d7b964d5293ac8bf4f7a490c78cec6
tree98953a2e6b0057cfa12cb6c8851a66041c57051d
parenta8262981683c4768f43e8b8bc507ab77fff0b216
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.

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