[PATCH] D36159: clang-format: [JS] handle single lines comments ending in `\\`.
Manuel Klimek via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 8 00:56:29 PDT 2017
klimek accepted this revision.
klimek added a comment.
This revision is now accepted and ready to land.
lg
================
Comment at: lib/Format/FormatTokenLexer.cpp:544-545
+ while (BackslashPos != StringRef::npos) {
+ if (BackslashPos + 1 < FormatTok->TokenText.size() &&
+ FormatTok->TokenText[BackslashPos + 1] == '\n') {
+ const char *Offset = Lex->getBufferLocation();
----------------
Just wondering whether the \n can be in the next token. Probably not, though, the way we set up the lexer.
https://reviews.llvm.org/D36159
More information about the cfe-commits
mailing list