This is an archive of the discontinued LLVM Phabricator instance.

clang-format: [JS] Fix line breaks before comments when sorting imports.
ClosedPublic

Authored by mprobst on Sep 18 2016, 10:29 AM.

Details

Summary

Previously, clang-format would always insert an additional line break after the
import block if the main body started with a comment, due to loosing track of
the first non-import line.

Diff Detail

Repository
rL LLVM

Event Timeline

mprobst updated this revision to Diff 71754.Sep 18 2016, 10:29 AM
mprobst retitled this revision from to clang-format: [JS] Fix line breaks before comments when sorting imports..
mprobst updated this object.
mprobst added a reviewer: djasper.
mprobst added a subscriber: cfe-commits.
djasper accepted this revision.Sep 18 2016, 11:33 PM
djasper edited edge metadata.

Looks Good.

This revision is now accepted and ready to land.Sep 18 2016, 11:33 PM
This revision was automatically updated to reflect the committed changes.