[PATCH] D23761: clang-format: [JS] supports casts to types starting with punctuation ("{[(").
Martin Probst via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 22 04:23:49 PDT 2016
mprobst marked an inline comment as done.
================
Comment at: lib/Format/FormatTokenLexer.cpp:245
@@ -241,1 +244,3 @@
++Offset; // Skip the escaped character.
+ if (Offset + 1 < Lex->getBuffer().end() && *Offset == '$' &&
+ *(Offset + 1) == '{') {
----------------
ygao wrote:
> What happens if the '${' is immediately after a backslash (the if statement above), should the '${' get escaped?
Sorry, I accidentally included this in the wrong diff – the template string thing is in D22431. I'll answer there.
https://reviews.llvm.org/D23761
More information about the cfe-commits
mailing list