clang-format: [JS] test declared fields.
authorMartin Probst <martin@probst.io>
Thu, 7 Nov 2019 22:37:06 +0000 (23:37 +0100)
committerMartin Probst <martin@probst.io>
Mon, 11 Nov 2019 15:36:00 +0000 (16:36 +0100)
commit6bcd8d4a18fc0604a2297a626c1fc808cbfb7b9b
tree3f8378895cef62b4ff1f6450f80dd741c767ecb7
parenta7638d384983e8e3eb44a2d8c757238efc7096dc
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
clang/unittests/Format/FormatTestJS.cpp