This is an archive of the discontinued LLVM Phabricator instance.

clang-format: [JS] Fix calculation of template string width.
ClosedPublic

Authored by mprobst on May 1 2015, 2:32 PM.

Details

Reviewers
djasper
Summary

OriginalColumn might not be set, so fall back to Location and SourceMgr in case
it is missing. Also initialize end column in case the token is multi line, but
it's the ` token itself that starts the multi line.

Diff Detail

Event Timeline

mprobst updated this revision to Diff 24831.May 1 2015, 2:32 PM
mprobst retitled this revision from to clang-format: [JS] Fix calculation of template string width..
mprobst updated this object.
mprobst edited the test plan for this revision. (Show Details)
mprobst added a reviewer: djasper.
mprobst added subscribers: Unknown Object (MLST), Unknown Object (MLST).
djasper accepted this revision.May 2 2015, 1:09 AM
djasper edited edge metadata.

Submitted as r236383, thank you!

This revision is now accepted and ready to land.May 2 2015, 1:09 AM
djasper closed this revision.May 2 2015, 1:09 AM