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.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Paths
| Differential D33329
clang-format: [JS] for await, and fix a crash with for loops. ClosedPublic Authored by mprobst on May 18 2017, 11:39 AM.
Details Summary The syntax is actually for await (const x of y) (d'oh).
Diff Detail
Event TimelineThis revision is now accepted and ready to land.May 18 2017, 2:23 PM Closed by commit rL303382: clang-format: [JS] for await, and fix a crash with for loops. (authored by mprobst). · Explain WhyMay 18 2017, 2:32 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 99496 cfe/trunk/lib/Format/TokenAnnotator.cpp
cfe/trunk/lib/Format/UnwrappedLineParser.cpp
cfe/trunk/unittests/Format/FormatTestJS.cpp
|