Files
clang-p2996/clang/lib/Format/TokenAnnotator.cpp
Martin Probst 7ebad4ea81 clang-format: [JS] do not wrap before any is.
Summary:
`is` type annotations can occur at any nesting level. For example:

    function x() {
      return function y(): a is B { ... };
    }

Breaking before the `is` above breaks TypeScript parsing the code. This
change prevents the wrap.

Reviewers: krasimir

Subscribers: klimek, cfe-commits

Differential Revision: https://reviews.llvm.org/D47193

llvm-svn: 332968
2018-05-22 10:39:07 +00:00

128 KiB