[clang-format] Fix a clang-tidy finding, NFC
authorKrasimir Georgiev <krasimir@google.com>
Thu, 9 Nov 2017 13:22:03 +0000 (13:22 +0000)
committerKrasimir Georgiev <krasimir@google.com>
Thu, 9 Nov 2017 13:22:03 +0000 (13:22 +0000)
llvm-svn: 317784

clang/lib/Format/UnwrappedLineParser.cpp

index 9243cd9..5d09238 100644 (file)
@@ -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;