]> granicus.if.org Git - clang/commit
Properly format nested conditional operators.
authorDaniel Jasper <djasper@google.com>
Fri, 31 May 2013 14:56:12 +0000 (14:56 +0000)
committerDaniel Jasper <djasper@google.com>
Fri, 31 May 2013 14:56:12 +0000 (14:56 +0000)
commitc01897c3f6139304ed25e3f673bef77be209617f
tree62a77ed3f9a6f8e2b0e764169c594fd172275697
parenteb48366d41a6dcca236f1e28aea61efd569a3374
Properly format nested conditional operators.

Before:
bool aaaaaa = aaaaaaaaaaaaa //
                  ? aaaaaaaaaaaaaaa
                  : bbbbbbbbbbbbbbb //
                  ? ccccccccccccccc
                  : ddddddddddddddd;

After:
bool aaaaaa = aaaaaaaaaaaaa //
                  ? aaaaaaaaaaaaaaa
                  : bbbbbbbbbbbbbbb //
                        ? ccccccccccccccc
                        : ddddddddddddddd;

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