diff options
author | Krasimir Georgiev <krasimir@google.com> | 2017-11-10 12:50:09 +0000 |
---|---|---|
committer | Krasimir Georgiev <krasimir@google.com> | 2017-11-10 12:50:09 +0000 |
commit | 410ed245f6455fd007d5e129fbfd20af2cdbcc6d (patch) | |
tree | 696131e465cac26c31c776ddedfc61328dab6373 /clang/lib/Format/UnwrappedLineParser.cpp | |
parent | a9d58fae6aaf286966bb4c55cc5b9bcaed0b7a5d (diff) | |
download | bcm5719-llvm-410ed245f6455fd007d5e129fbfd20af2cdbcc6d.tar.gz bcm5719-llvm-410ed245f6455fd007d5e129fbfd20af2cdbcc6d.zip |
[clang-format] Support python-style comments in text protos
Summary: This patch adds support for python-style comments in text protos.
Reviewers: djasper
Reviewed By: djasper
Subscribers: bkramer, cfe-commits, klimek
Differential Revision: https://reviews.llvm.org/D39806
llvm-svn: 317886
Diffstat (limited to 'clang/lib/Format/UnwrappedLineParser.cpp')
-rw-r--r-- | clang/lib/Format/UnwrappedLineParser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Format/UnwrappedLineParser.cpp b/clang/lib/Format/UnwrappedLineParser.cpp index 5d092381aa2..55518d67f3a 100644 --- a/clang/lib/Format/UnwrappedLineParser.cpp +++ b/clang/lib/Format/UnwrappedLineParser.cpp @@ -56,7 +56,7 @@ private: }; static bool isLineComment(const FormatToken &FormatTok) { - return FormatTok.is(tok::comment) && FormatTok.TokenText.startswith("//"); + return FormatTok.is(tok::comment) && !FormatTok.TokenText.startswith("/*"); } // Checks if \p FormatTok is a line comment that continues the line comment |