From: Daniel Jasper Date: Mon, 31 Mar 2014 14:23:49 +0000 (+0000) Subject: clang-format: Solve issues found and fixed by clang-tidy. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d29984e9b810124745efba956bd126a2dbf6e4e1;p=clang clang-format: Solve issues found and fixed by clang-tidy. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@205193 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Format/ContinuationIndenter.cpp b/lib/Format/ContinuationIndenter.cpp index a8ab72c4ca..5aa3f4f8c6 100644 --- a/lib/Format/ContinuationIndenter.cpp +++ b/lib/Format/ContinuationIndenter.cpp @@ -230,7 +230,7 @@ unsigned ContinuationIndenter::addTokenToState(LineState &State, bool Newline, SourceMgr.getSpellingColumnNumber( State.NextToken->WhitespaceRange.getBegin()); State.Column += WhitespaceLength; - moveStateToNextToken(State, DryRun, /*NewLine=*/false); + moveStateToNextToken(State, DryRun, /*Newline=*/false); return 0; } diff --git a/lib/Format/UnwrappedLineParser.cpp b/lib/Format/UnwrappedLineParser.cpp index 204132daae..58a581e97e 100644 --- a/lib/Format/UnwrappedLineParser.cpp +++ b/lib/Format/UnwrappedLineParser.cpp @@ -1219,7 +1219,7 @@ void UnwrappedLineParser::parseRecord() { Style.BreakBeforeBraces == FormatStyle::BS_GNU) addUnwrappedLine(); - parseBlock(/*MustBeDeclaration=*/true, /*Addlevel=*/true, + parseBlock(/*MustBeDeclaration=*/true, /*AddLevel=*/true, /*MunchSemi=*/false); } // We fall through to parsing a structural element afterwards, so