[PATCH] D20208: clang-format: [JS] fix template string width counting.

Martin Probst via cfe-commits cfe-commits at lists.llvm.org
Thu May 12 08:55:55 PDT 2016


mprobst created this revision.
mprobst added reviewers: djasper, bkramer.
mprobst added a subscriber: cfe-commits.
Herald added a subscriber: klimek.

Simply looking at the final text greatly simplifies the algorithm and also
fixes a reported issue. This requires duplicating the "actual encoding width"
logic, but that seems cleaner than the column acrobatics before.

http://reviews.llvm.org/D20208

Files:
  lib/Format/Format.cpp
  unittests/Format/FormatTestJS.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20208.57047.patch
Type: text/x-patch
Size: 5625 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160512/95142bbb/attachment.bin>


More information about the cfe-commits mailing list