]> granicus.if.org Git - clang/commit
Prevent only breaking before "?" in conditional expressions.
authorDaniel Jasper <djasper@google.com>
Fri, 15 Feb 2013 11:07:25 +0000 (11:07 +0000)
committerDaniel Jasper <djasper@google.com>
Fri, 15 Feb 2013 11:07:25 +0000 (11:07 +0000)
commit7878a7bdebceaa8d8a893abb295027cde619e467
treeda8028738de74974b5dfc15f60067f25b4cc169c
parentc1ea4b96adca4767991bb0a7b21052cef4db059c
Prevent only breaking before "?" in conditional expressions.

This is almost always more readable.

Before:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
    ? aaaaaaaaaaaaaaaaaaaaaaaaaaa : aaaaaaaaaaaaaaaaaaaaaaaaaaa;

After:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
    ? aaaaaaaaaaaaaaaaaaaaaaaaaaa
    : aaaaaaaaaaaaaaaaaaaaaaaaaaa;

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