[PATCH] clang-format: [js] Support template strings.
Daniel Jasper
djasper at google.com
Fri Feb 20 00:12:27 PST 2015
================
Comment at: lib/Format/Format.cpp:798
@@ +797,3 @@
+ IsMultiline || I[0]->NewlinesBefore > 0 || I[0]->IsMultiline;
+ if (I[0]->isNot(tok::unknown) || I[0]->TokenText != "`")
+ continue;
----------------
Can you add a test with two template strings? I think that might do the wrong thing as you need to abort when you find a TT_TemplateString.
http://reviews.llvm.org/D7763
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
More information about the cfe-commits
mailing list