[PATCH] D23761: clang-format: [JS] supports casts to types starting with punctuation ("{[(").

Yunzhong Gao via cfe-commits cfe-commits at lists.llvm.org
Sun Aug 21 16:11:12 PDT 2016


ygao added a subscriber: ygao.

================
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) == '{') {
----------------
What happens if the '${' is immediately after a backslash (the if statement above), should the '${' get escaped?


https://reviews.llvm.org/D23761





More information about the cfe-commits mailing list