]> granicus.if.org Git - clang/commitdiff
improve a comment.
authorChris Lattner <sabre@nondot.org>
Sun, 12 Oct 2008 00:23:07 +0000 (00:23 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 12 Oct 2008 00:23:07 +0000 (00:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57389 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Lex/Lexer.cpp

index 8bce589f177f1e7fb2b6e5fd58dad603a7d8f197..8acfe2aef6a2ce1e0d9f0c233bd0646fa192a2ca 100644 (file)
@@ -813,7 +813,8 @@ bool Lexer::SkipBCPLComment(Token &Result, const char *CurPtr) {
   }
   
   // Otherwise, eat the \n character.  We don't care if this is a \n\r or
-  // \r\n sequence.
+  // \r\n sequence.  This is an efficiency hack (because we know the \n can't
+  // contribute to another token), it isn't needed for correctness.
   ++CurPtr;
     
   // The next returned token is at the start of the line.