From: Krasimir Georgiev Date: Thu, 9 Nov 2017 13:22:03 +0000 (+0000) Subject: [clang-format] Fix a clang-tidy finding, NFC X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9d174426354f0c0a8d54832648f92f4ef6d14bf3;p=clang [clang-format] Fix a clang-tidy finding, NFC git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@317784 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Format/UnwrappedLineParser.cpp b/lib/Format/UnwrappedLineParser.cpp index 9243cd99cb..5d092381aa 100644 --- a/lib/Format/UnwrappedLineParser.cpp +++ b/lib/Format/UnwrappedLineParser.cpp @@ -2179,7 +2179,7 @@ void UnwrappedLineParser::parseJavaScriptEs6ImportExport() { 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;