]> granicus.if.org Git - clang/commit
clang-format: [JS] Fix incorrect detection of ternary expressions.
authorDaniel Jasper <djasper@google.com>
Wed, 27 May 2015 05:37:40 +0000 (05:37 +0000)
committerDaniel Jasper <djasper@google.com>
Wed, 27 May 2015 05:37:40 +0000 (05:37 +0000)
commit7ab5dd8db79fbb34176672fb5a5ff1cea0f026ad
treea706a6ea3817705e79afe862ff9d2bc9d1681fde
parent4b3ecccc19a25eab45f5354112aa0e22f06036b7
clang-format: [JS] Fix incorrect detection of ternary expressions.

A definintion like this could not be formatted at all:
  constructor({aa}: {
    aa?: string,
    aaaaaaaa?: string,
    aaaaaaaaaaaaaaa?: boolean,
    aaaaaa?: List<string>
  }) {
  }

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