clang-format: [JS] for async loops.
authorMartin Probst <martin@probst.io>
Mon, 15 May 2017 19:33:20 +0000 (19:33 +0000)
committerMartin Probst <martin@probst.io>
Mon, 15 May 2017 19:33:20 +0000 (19:33 +0000)
commitbd49e321d34ed62412071f3a9ebe4d4ce26f3861
tree463cc976698032ac81ab77f0e71c4c9fe3651e49
parent878715f978f0b673ce44feaf84e31b029e8d0c5b
clang-format: [JS] for async loops.

Summary:
JavaScript supports asynchronous loop iteration in async functions:

    for async (const x of y) ...

Reviewers: djasper

Subscribers: klimek, cfe-commits

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

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