This is an archive of the discontinued LLVM Phabricator instance.

[clang-format] Handle NSString literals by merging tokens.
ClosedPublic

Authored by alexfh on Apr 5 2017, 6:35 AM.

Details

Summary

This fixes a couple of outstanding bugs:

  • incorrect breaking of NSString literals containing double-width characters;
  • inconsistent formatting of ObjC dictionary literals containing NSString literals;
  • AlwaysBreakBeforeMultilineStrings ignoring implicitly-concatenated NSString literals.

Diff Detail

Repository
rL LLVM

Event Timeline

alexfh created this revision.Apr 5 2017, 6:35 AM
alexfh added a comment.Apr 7 2017, 5:47 AM

Friendly ping.

djasper accepted this revision.Apr 10 2017, 10:36 PM

Looks good. Thanks for cleaning this up.

This revision is now accepted and ready to land.Apr 10 2017, 10:36 PM
This revision was automatically updated to reflect the committed changes.