clang-format: [JS] support goog.requireType.
authorMartin Probst <martin@probst.io>
Mon, 7 Jan 2019 13:12:50 +0000 (13:12 +0000)
committerMartin Probst <martin@probst.io>
Mon, 7 Jan 2019 13:12:50 +0000 (13:12 +0000)
commit55b6d4b9f9e8e3c28774f4e4f4d59764bbd1f96b
tree4b9f6ae8bcfcd0cb40b291a2ac54b0548502eac4
parente1ced5c926748bb6a21a4c9300ffa697e28e440b
clang-format: [JS] support goog.requireType.

Summary:
It's a new primitive for importing symbols, and should be treated like
the (previously handled) `goog.require` and `goog.forwardDeclare`.

Reviewers: krasimir

Subscribers: cfe-commits

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

llvm-svn: 350516
clang/lib/Format/TokenAnnotator.cpp
clang/unittests/Format/FormatTestJS.cpp