]> granicus.if.org Git - clang/commit
clang-format: [JS] handle single lines comments ending in `\\`.
authorMartin Probst <martin@probst.io>
Tue, 8 Aug 2017 14:52:42 +0000 (14:52 +0000)
committerMartin Probst <martin@probst.io>
Tue, 8 Aug 2017 14:52:42 +0000 (14:52 +0000)
commit9ef5d8bb4126c08237db9923a346b1923fcc8213
treea76d85d1ab463681650d3fe4393b306dae8431f5
parent5dc0a08536a8c64aedecd8d8ee414a05d81c6a94
clang-format: [JS] handle single lines comments ending in `\\`.

Summary:
Previously, clang-format would consider the following code line to be part of
the comment and incorrectly format the rest of the file.

Reviewers: djasper

Subscribers: klimek, cfe-commits

Differential Revision: https://reviews.llvm.org/D36159

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@310365 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Format/FormatTokenLexer.cpp
unittests/Format/FormatTestJS.cpp