diff options
| author | Daniel Jasper <djasper@google.com> | 2014-08-27 17:16:46 +0000 |
|---|---|---|
| committer | Daniel Jasper <djasper@google.com> | 2014-08-27 17:16:46 +0000 |
| commit | 4429f149062cf067cd581fcd60f183750b19ea6d (patch) | |
| tree | f74a39ad1b7299354939f17c15ddcecd3d15007b /clang/lib | |
| parent | 22972a7c59b937a6b5ca5fb700cd35407c457a70 (diff) | |
| download | bcm5719-llvm-4429f149062cf067cd581fcd60f183750b19ea6d.tar.gz bcm5719-llvm-4429f149062cf067cd581fcd60f183750b19ea6d.zip | |
clang-format: Address review comments of r216501.
llvm-svn: 216565
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/Format/UnwrappedLineParser.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Format/UnwrappedLineParser.cpp b/clang/lib/Format/UnwrappedLineParser.cpp index aad3faa1965..56cad19277d 100644 --- a/clang/lib/Format/UnwrappedLineParser.cpp +++ b/clang/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(); |

