In range-based for-loops, prefer splitting after ":".
authorDaniel Jasper <djasper@google.com>
Tue, 26 Feb 2013 13:18:08 +0000 (13:18 +0000)
committerDaniel Jasper <djasper@google.com>
Tue, 26 Feb 2013 13:18:08 +0000 (13:18 +0000)
commit16b3562f00e8e55e34f6f4244b2ffddacce717df
tree96514d4d361943ad1d63e34bcc69270db257b023
parentfb5e241183e67c94159448e7a8113bef2c381ffe
In range-based for-loops, prefer splitting after ":".

Before:
for (const aaaaaaaaaaaaaaaaaaaaa &
         aaaaaaaaa : aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa) {}

After:
for (const aaaaaaaaaaaaaaaaaaaaa &aaaaaaaaa :
     aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa) {}

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