commit | 720ffb644400661b927c6359aac5677dab036ed4 | [log] [tgz] |
---|---|---|
author | Alexander Kornienko <alexfh@google.com> | Wed Dec 05 13:56:52 2012 +0000 |
committer | Alexander Kornienko <alexfh@google.com> | Wed Dec 05 13:56:52 2012 +0000 |
tree | 941db449ec712949eacfb26ad78dde7e7db9bedc | |
parent | 99469f732efbd6600dfd0a70e0a36116a717dd06 [diff] [blame] |
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
diff --git a/lib/Format/UnwrappedLineParser.cpp b/lib/Format/UnwrappedLineParser.cpp index e1972e9..bdea42a 100644 --- a/lib/Format/UnwrappedLineParser.cpp +++ b/lib/Format/UnwrappedLineParser.cpp
@@ -52,6 +52,7 @@ 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 @@ FormatTok.Tok.is(tok::comment)) { nextToken(); } - Callback.formatUnwrappedLine(Line); + Callback.consumeUnwrappedLine(Line); Line.Tokens.clear(); }