r317784 - [clang-format] Fix a clang-tidy finding, NFC
Krasimir Georgiev via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 9 05:22:03 PST 2017
Author: krasimir
Date: Thu Nov 9 05:22:03 2017
New Revision: 317784
URL: http://llvm.org/viewvc/llvm-project?rev=317784&view=rev
Log:
[clang-format] Fix a clang-tidy finding, NFC
Modified:
cfe/trunk/lib/Format/UnwrappedLineParser.cpp
Modified: cfe/trunk/lib/Format/UnwrappedLineParser.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Format/UnwrappedLineParser.cpp?rev=317784&r1=317783&r2=317784&view=diff
==============================================================================
--- cfe/trunk/lib/Format/UnwrappedLineParser.cpp (original)
+++ cfe/trunk/lib/Format/UnwrappedLineParser.cpp Thu Nov 9 05:22:03 2017
@@ -2179,7 +2179,7 @@ void UnwrappedLineParser::parseJavaScrip
while (!eof()) {
if (FormatTok->is(tok::semi))
return;
- if (Line->Tokens.size() == 0) {
+ if (Line->Tokens.empty()) {
// Common issue: Automatic Semicolon Insertion wrapped the line, so the
// import statement should terminate.
return;
More information about the cfe-commits
mailing list