clang-format: Support assignments as conditional operands.
authorDaniel Jasper <djasper@google.com>
Fri, 14 Nov 2014 13:03:40 +0000 (13:03 +0000)
committerDaniel Jasper <djasper@google.com>
Fri, 14 Nov 2014 13:03:40 +0000 (13:03 +0000)
commit6c22c44e12ac0082aabb467607c77cd09a4f025c
treec1e82f80021e559408fa53e867e49b1188725ec8
parentba7308c07e6d57b020eeb6915220fdc9636edd46
clang-format: Support assignments as conditional operands.

Before:
  return a != b
             // comment
             ? a
             : a = a != b
                   // comment
         ? a =
               b : a;
After:
  return a != b
             // comment
             ? a
             : a = a != b
                       // comment
                       ? a = b
                       : a;

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