[PATCH] D31706: [clang-format] Handle NSString literals by merging tokens.

Alexander Kornienko via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 5 06:35:40 PDT 2017


alexfh created this revision.
Herald added a subscriber: klimek.

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.


https://reviews.llvm.org/D31706

Files:
  lib/Format/BreakableToken.cpp
  lib/Format/ContinuationIndenter.cpp
  lib/Format/FormatTokenLexer.cpp
  lib/Format/FormatTokenLexer.h
  lib/Format/TokenAnnotator.cpp
  unittests/Format/FormatTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31706.94218.patch
Type: text/x-patch
Size: 8971 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170405/801e9116/attachment.bin>


More information about the cfe-commits mailing list