]> granicus.if.org Git - clang/commit
Fix counting of parameters so that r175162 works as expected.
authorDaniel Jasper <djasper@google.com>
Thu, 14 Feb 2013 15:01:34 +0000 (15:01 +0000)
committerDaniel Jasper <djasper@google.com>
Thu, 14 Feb 2013 15:01:34 +0000 (15:01 +0000)
commit9fc56f2636137fcde8acb38865555ed6c7b84dfd
tree192806ea63941b3832a1b84fe9d2a35f64efc5fd
parentfc75908a7f58903a92c47e1ae02f9a05c36c9f59
Fix counting of parameters so that r175162 works as expected.

Before:
aaaaaaaaaaaaaaaaaaaaaaaa(aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa()
                              .aaaaaaaaaaaaaaaaa());

After:
aaaaaaaaaaaaaaaaaaaaaaaaa(
    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa().aaaaaaaaaaaaaaaaa());

Not sure which of the formattings above is better, but we should not pick
one by accident.

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