diff options
author | Daniel Jasper <djasper@google.com> | 2015-07-02 14:01:34 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2015-07-02 14:01:34 +0000 |
commit | 55c384e039ebe1b6fb2e965cccb5f8e4217fbc98 (patch) | |
tree | 26b8635db5964fdda2faf5266bf6b4543e63a3df /clang/lib/Format/Format.cpp | |
parent | 3d2ba47a90a9c9d8ec78cd5b1079507c82ba2c3d (diff) | |
download | llvm-55c384e039ebe1b6fb2e965cccb5f8e4217fbc98.zip llvm-55c384e039ebe1b6fb2e965cccb5f8e4217fbc98.tar.gz llvm-55c384e039ebe1b6fb2e965cccb5f8e4217fbc98.tar.bz2 |
clang-format: [JS] Fix bug in regex literal parsing.
The lexer wasn't properly reset leading to unexpected deletions.
llvm-svn: 241262
Diffstat (limited to 'clang/lib/Format/Format.cpp')
-rw-r--r-- | clang/lib/Format/Format.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp index b4ec445..6e2012e 100644 --- a/clang/lib/Format/Format.cpp +++ b/clang/lib/Format/Format.cpp @@ -1227,6 +1227,7 @@ private: getFormattingLangOpts(Style), Buffer.begin(), Buffer.begin() + Offset, Buffer.end())); Lex->SetKeepWhitespaceMode(true); + TrailingWhitespace = 0; } }; |