]> granicus.if.org Git - clang/commitdiff
Typo and misc comment fix.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 10 May 2013 02:36:35 +0000 (02:36 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 10 May 2013 02:36:35 +0000 (02:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181583 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Lex/Lexer.cpp

index 9958287ba4744f49ae085e9b8ceb7c9337e124ed..66498b1a2c9d40c40480a8d44303ee2f5e65cd13 100644 (file)
@@ -1870,7 +1870,9 @@ bool Lexer::SkipWhitespace(Token &Result, const char *CurPtr) {
   // Whitespace - Skip it, then return the token after the whitespace.
   bool SawNewline = isVerticalWhitespace(CurPtr[-1]);
 
-  unsigned char Char = *CurPtr;  // Skip consequtive spaces efficiently.
+  unsigned char Char = *CurPtr;
+
+  // Skip consecutive spaces efficiently.
   while (1) {
     // Skip horizontal whitespace very aggressively.
     while (isHorizontalWhitespace(Char))
@@ -1886,7 +1888,7 @@ bool Lexer::SkipWhitespace(Token &Result, const char *CurPtr) {
       return false;
     }
 
-    // ok, but handle newline.
+    // OK, but handle newline.
     SawNewline = true;
     Char = *++CurPtr;
   }