JavaScript automatic semicolon insertion can trigger before [ and (, so
avoid breaking before them if the previous token is likely to terminate
an expression.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Paths
| Differential D42570
clang-format: [JS] Prevent ASI before [ and (. ClosedPublic Authored by mprobst on Jan 26 2018, 2:16 AM.
Details Summary JavaScript automatic semicolon insertion can trigger before [ and (, so
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Jan 26 2018, 6:40 AM Closed by commit rL323532: clang-format: [JS] Prevent ASI before [ and (. (authored by mprobst). · Explain WhyJan 26 2018, 7:11 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 131585 cfe/trunk/lib/Format/TokenAnnotator.cpp
cfe/trunk/unittests/Format/FormatTestJS.cpp
|