[PATCH] D33329: clang-format: [JS] for await, and fix a crash with for loops.

2017-05-18 Thread Martin Probst via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL303382: clang-format: [JS] for await, and fix a crash with for loops. (authored by mprobst). Changed prior to commit: https://reviews.llvm.org/D33329?vs=99468&id=99496#toc Repository: rL LLVM https:

[PATCH] D33329: clang-format: [JS] for await, and fix a crash with for loops.

2017-05-18 Thread Martin Probst via Phabricator via cfe-commits
mprobst created this revision. Herald added a subscriber: klimek. The syntax is actually `for await (const x of y)` (d'oh). This also fixes a crash for `for` tokens not followed by additional tokens. https://reviews.llvm.org/D33329 Files: lib/Format/TokenAnnotator.cpp lib/Format/UnwrappedLi