]> granicus.if.org Git - clang/commitdiff
clang-format: Solve issues found and fixed by clang-tidy.
authorDaniel Jasper <djasper@google.com>
Mon, 31 Mar 2014 14:23:49 +0000 (14:23 +0000)
committerDaniel Jasper <djasper@google.com>
Mon, 31 Mar 2014 14:23:49 +0000 (14:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@205193 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Format/ContinuationIndenter.cpp
lib/Format/UnwrappedLineParser.cpp

index a8ab72c4ca560a571039df251bb48f2fdf22620d..5aa3f4f8c6c7eb75da58fa245a37b509d905334e 100644 (file)
@@ -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;
   }
 
index 204132daae391a51ba4ba3edaf8691649f51139d..58a581e97edb31b383f2119f5e62b7a1c6c60946 100644 (file)
@@ -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