]> granicus.if.org Git - clang/commit
clang-format: Fix formatting of ternary expressions with comments.
authorDaniel Jasper <djasper@google.com>
Wed, 3 Feb 2016 17:27:10 +0000 (17:27 +0000)
committerDaniel Jasper <djasper@google.com>
Wed, 3 Feb 2016 17:27:10 +0000 (17:27 +0000)
commit7d018c0578a34bf413106bf72c47152b2cb83937
tree7719a70ff7a6e7ec73ee983807fe981d7616958e
parent749c9c251e1617e4a5fcaf5994cd2f75607dd8e5
clang-format: Fix formatting of ternary expressions with comments.

Before:
  int i = aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa ?
      /*bbbbbbbbbbbbbbbbbbbb=*/bbbbbbbbbbbbbbbbbbbbbbbbb :
       ccccccccccccccccccccccccccc;

After:
  int i = aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa ?
      /*bbbbbbbbbbbbbbbbbbbb=*/bbbbbbbbbbbbbbbbbbbbbbbbb :
              ccccccccccccccccccccccccccc;

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