[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 17:10:40 PST 2016


mprobst updated this revision to Diff 49569.
mprobst marked an inline comment as done.
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


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.49569.patch
Type: text/x-patch
Size: 11440 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160302/184095b8/attachment-0001.bin>


More information about the cfe-commits mailing list