From 18480eabd28d56d454f9d83e3e65e4b880aae58c Mon Sep 17 00:00:00 2001 From: Daniel Jasper Date: Wed, 27 Aug 2014 17:16:46 +0000 Subject: [PATCH] clang-format: Address review comments of r216501. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@216565 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Format/UnwrappedLineParser.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/Format/UnwrappedLineParser.cpp b/lib/Format/UnwrappedLineParser.cpp index aad3faa196..56cad19277 100644 --- a/lib/Format/UnwrappedLineParser.cpp +++ b/lib/Format/UnwrappedLineParser.cpp @@ -662,8 +662,7 @@ void UnwrappedLineParser::parseStructuralElement() { FormatTok->Finalized = true; nextToken(); if (FormatTok->is(tok::l_brace)) { - FormatTok->Finalized = true; - while (FormatTok) { + while (FormatTok && FormatTok->isNot(tok::eof)) { FormatTok->Finalized = true; if (FormatTok->is(tok::r_brace)) { nextToken(); -- 2.50.1