SuccessChanges

Summary

  1. clang-format: [JS] support null operators. (details)
  2. clang-format: [JS] test declared fields. (details)
Commit a7638d384983e8e3eb44a2d8c757238efc7096dc by martin
clang-format: [JS] support null operators.
Summary: JavaScript / TypeScript is adding two new operators: the null
propagating operator `?.` and the nullish coalescing operator `??`.
    const x = foo ?? 'default';
   const z = foo?.bar?.baz;
This change adds support to lex and format both.
Reviewers: krasimir
Subscribers: cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D69971
The file was modifiedclang/unittests/Format/FormatTestJS.cpp
The file was modifiedclang/lib/Format/FormatTokenLexer.cpp
The file was modifiedclang/lib/Format/FormatToken.h
Commit 6bcd8d4a18fc0604a2297a626c1fc808cbfb7b9b by martin
clang-format: [JS] test declared fields.
Summary: TypeScript now supports declaring fields:
    class Foo {
     declare field: string;
   }
clang-format happens to already format this fine, so this change just
adds a regression test.
Reviewers: krasimir
Subscribers: cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D69972
The file was modifiedclang/unittests/Format/FormatTestJS.cpp