This is an archive of the discontinued LLVM Phabricator instance.

[clang-format] Make NoLineBreakFormatter respect MustBreakBefore
ClosedPublic

Authored by krasimir on May 16 2017, 7:16 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

krasimir created this revision.May 16 2017, 7:16 AM
krasimir updated this revision to Diff 99141.May 16 2017, 7:18 AM
  • Updated comments
krasimir added a subscriber: cfe-commits.
djasper accepted this revision.May 17 2017, 5:41 AM

Are there cases where this makes a difference? If so, add a test. If not, add something to the patch description to clarify.

lib/Format/TokenAnnotator.cpp
2473 ↗(On Diff #99141)

Maybe add to the comment: "Import statements, especially in JavaScript, can be an exception to this rule."

This revision is now accepted and ready to land.May 17 2017, 5:41 AM
krasimir updated this revision to Diff 99405.May 18 2017, 1:17 AM
  • Add comment about import statements.
This revision was automatically updated to reflect the committed changes.