r205193 - clang-format: Solve issues found and fixed by clang-tidy.

Daniel Jasper djasper at google.com
Mon Mar 31 07:23:49 PDT 2014


Author: djasper
Date: Mon Mar 31 09:23:49 2014
New Revision: 205193

URL: http://llvm.org/viewvc/llvm-project?rev=205193&view=rev
Log:
clang-format: Solve issues found and fixed by clang-tidy.

Modified:
    cfe/trunk/lib/Format/ContinuationIndenter.cpp
    cfe/trunk/lib/Format/UnwrappedLineParser.cpp

Modified: cfe/trunk/lib/Format/ContinuationIndenter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Format/ContinuationIndenter.cpp?rev=205193&r1=205192&r2=205193&view=diff
==============================================================================
--- cfe/trunk/lib/Format/ContinuationIndenter.cpp (original)
+++ cfe/trunk/lib/Format/ContinuationIndenter.cpp Mon Mar 31 09:23:49 2014
@@ -230,7 +230,7 @@ unsigned ContinuationIndenter::addTokenT
                            SourceMgr.getSpellingColumnNumber(
                                State.NextToken->WhitespaceRange.getBegin());
     State.Column += WhitespaceLength;
-    moveStateToNextToken(State, DryRun, /*NewLine=*/false);
+    moveStateToNextToken(State, DryRun, /*Newline=*/false);
     return 0;
   }
 

Modified: cfe/trunk/lib/Format/UnwrappedLineParser.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Format/UnwrappedLineParser.cpp?rev=205193&r1=205192&r2=205193&view=diff
==============================================================================
--- cfe/trunk/lib/Format/UnwrappedLineParser.cpp (original)
+++ cfe/trunk/lib/Format/UnwrappedLineParser.cpp Mon Mar 31 09:23:49 2014
@@ -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





More information about the cfe-commits mailing list