r216565 - clang-format: Address review comments of r216501.
Daniel Jasper
djasper at google.com
Wed Aug 27 10:16:46 PDT 2014
Author: djasper
Date: Wed Aug 27 12:16:46 2014
New Revision: 216565
URL: http://llvm.org/viewvc/llvm-project?rev=216565&view=rev
Log:
clang-format: Address review comments of r216501.
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=216565&r1=216564&r2=216565&view=diff
==============================================================================
--- cfe/trunk/lib/Format/UnwrappedLineParser.cpp (original)
+++ cfe/trunk/lib/Format/UnwrappedLineParser.cpp Wed Aug 27 12:16:46 2014
@@ -662,8 +662,7 @@ void UnwrappedLineParser::parseStructura
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();
More information about the cfe-commits
mailing list