]> granicus.if.org Git - clang/commit
Improve formatting of code with comments.
authorDaniel Jasper <djasper@google.com>
Tue, 29 Jan 2013 19:41:55 +0000 (19:41 +0000)
committerDaniel Jasper <djasper@google.com>
Tue, 29 Jan 2013 19:41:55 +0000 (19:41 +0000)
commitd4f2c2e21addd8ed0a50b92f062d3229cde0506a
tree35927ab800fbda655d8909c9f055841b0fbeb39b
parent3d207e76a1c7ece5deec3d6ee35af04fe7f6212e
Improve formatting of code with comments.

Before:
aaaaaaa(aaaaaa( // comment
                aaaaaaa));
<big mess>

After:
aaaaaaa(aaaaaa( // comment
    aaaaaaaa));
function(/* parameter 1 */ aaaaaaa,
         /* parameter 2 */ aaaaaaa,
         /* parameter 3 */ aaaaaaa,
         /* parameter 4 */ aaaaaaa);

(the latter example was only wrong in the one-arg-per-line mode, e.g. in
Google style).

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