This is an archive of the discontinued LLVM Phabricator instance.

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
avoid breaking before them if the previous token is likely to terminate
an expression.

Diff Detail

Repository
rL LLVM

Event Timeline

mprobst created this revision.Jan 26 2018, 2:16 AM
djasper accepted this revision.Jan 26 2018, 6:40 AM

Makes sense.

This revision is now accepted and ready to land.Jan 26 2018, 6:40 AM
This revision was automatically updated to reflect the committed changes.