From 720ffb644400661b927c6359aac5677dab036ed4 Mon Sep 17 00:00:00 2001 From: Alexander Kornienko Date: Wed, 5 Dec 2012 13:56:52 +0000 Subject: Follow-up to r169286, addresses comments in http://llvm-reviews.chandlerc.com/D164#comment-4 : comments and a method rename git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@169382 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Format/UnwrappedLineParser.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/Format/UnwrappedLineParser.cpp') diff --git a/lib/Format/UnwrappedLineParser.cpp b/lib/Format/UnwrappedLineParser.cpp index e1972e9dd8..bdea42a2eb 100644 --- a/lib/Format/UnwrappedLineParser.cpp +++ b/lib/Format/UnwrappedLineParser.cpp @@ -52,6 +52,7 @@ bool UnwrappedLineParser::parseLevel() { addUnwrappedLine(); break; case tok::r_brace: + // FIXME: We need a test when it has to be "return Error;" return false; default: parseStatement(); @@ -318,7 +319,7 @@ void UnwrappedLineParser::addUnwrappedLine() { FormatTok.Tok.is(tok::comment)) { nextToken(); } - Callback.formatUnwrappedLine(Line); + Callback.consumeUnwrappedLine(Line); Line.Tokens.clear(); } -- cgit v1.2.3-18-g5258