[PATCH] D17385: clang-format: [JS] re-quote single or double quoted strings.
Martin Probst via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 1 21:32:32 PST 2016
mprobst updated this revision to Diff 49579.
mprobst added a comment.
- Move code closer together by piping Replacements into the FormatTokenLexer.
- remove sstream import
- * Treat JavaScript single quoted string literals as tok::string_literal, not
- Address review comments, mostly renaming things.
- Fix mustBreakBefore to handle tok::string_literal
- Insert individual replacements for each character change.
http://reviews.llvm.org/D17385
Files:
include/clang/Format/Format.h
lib/Format/Format.cpp
lib/Format/TokenAnnotator.cpp
unittests/Format/FormatTest.cpp
unittests/Format/FormatTestJS.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17385.49579.patch
Type: text/x-patch
Size: 11970 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160302/06e36948/attachment.bin>
More information about the cfe-commits
mailing list