This is an archive of the discontinued LLVM Phabricator instance.

clang-format: [JS] do not break location pragma comments.
AbandonedPublic

Authored by mprobst on Mar 18 2016, 2:46 PM.

Details

Reviewers
djasper
Summary

import ... from ...; // from //foo:bar serves as the equivalent if an IWYU
pragma. This change matches // from //.* style comments and never allows them
to wrap, just like IWYU pragmas for C++.

For the time being, it does not seem worth turning this into a configurable
option.

Diff Detail

Event Timeline

mprobst updated this revision to Diff 51075.Mar 18 2016, 2:46 PM
mprobst retitled this revision from to clang-format: [JS] do not break location pragma comments..
mprobst updated this object.
mprobst added reviewers: djasper, klimek, cfe-commits.
mprobst added a subscriber: cfe-commits.
mprobst abandoned this revision.Mar 23 2016, 5:18 AM

Abandoning this in favour of the "don't break imports at all" change.