diff options
author | Chris Lattner <sabre@nondot.org> | 2008-10-12 00:23:07 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-10-12 00:23:07 +0000 |
commit | 87e97ea7b8946b3cb4ef223830c598b981d0f824 (patch) | |
tree | 0097025cfff67f6222ab42cc0afed9ca8c9df42b /clang/lib/Lex/Lexer.cpp | |
parent | c46186e890b0975bf6e160629e8e12944dfc1a68 (diff) | |
download | bcm5719-llvm-87e97ea7b8946b3cb4ef223830c598b981d0f824.tar.gz bcm5719-llvm-87e97ea7b8946b3cb4ef223830c598b981d0f824.zip |
improve a comment.
llvm-svn: 57389
Diffstat (limited to 'clang/lib/Lex/Lexer.cpp')
-rw-r--r-- | clang/lib/Lex/Lexer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Lex/Lexer.cpp b/clang/lib/Lex/Lexer.cpp index 8bce589f177..8acfe2aef6a 100644 --- a/clang/lib/Lex/Lexer.cpp +++ b/clang/lib/Lex/Lexer.cpp @@ -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. |