This is an archive of the discontinued LLVM Phabricator instance.

[clang-format] Don't insert break between JS template string and tag identifier
ClosedPublic

Authored by mitchellwills on Mar 18 2019, 6:15 PM.

Details

Reviewers
mprobst
Summary

While it's allowed to have the template string and tag identifier separated by a line break, currently the clang-format output is not stable when a break is forced. Additionally, disallowing a line break makes it clear that the identifier is actually a tag for a template string.

Diff Detail

Event Timeline

mitchellwills created this revision.Mar 18 2019, 6:15 PM
mitchellwills set the repository for this revision to rC Clang.Mar 18 2019, 6:18 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 18 2019, 6:18 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
mprobst accepted this revision.Mar 19 2019, 3:23 AM

LGTM.

This revision is now accepted and ready to land.Mar 19 2019, 3:23 AM
mprobst closed this revision.Mar 19 2019, 4:27 AM

Landed as r356447.