[cfe-commits] r158091 - /cfe/trunk/lib/Lex/Lexer.cpp
David Blaikie
dblaikie at gmail.com
Wed Jun 6 11:43:20 PDT 2012
Author: dblaikie
Date: Wed Jun 6 13:43:20 2012
New Revision: 158091
URL: http://llvm.org/viewvc/llvm-project?rev=158091&view=rev
Log:
Escape \n and \r in doxycomment.
Modified:
cfe/trunk/lib/Lex/Lexer.cpp
Modified: cfe/trunk/lib/Lex/Lexer.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/Lexer.cpp?rev=158091&r1=158090&r2=158091&view=diff
==============================================================================
--- cfe/trunk/lib/Lex/Lexer.cpp (original)
+++ cfe/trunk/lib/Lex/Lexer.cpp Wed Jun 6 13:43:20 2012
@@ -2043,8 +2043,8 @@
}
/// isBlockCommentEndOfEscapedNewLine - Return true if the specified newline
-/// character (either \n or \r) is part of an escaped newline sequence. Issue a
-/// diagnostic if so. We know that the newline is inside of a block comment.
+/// character (either \\n or \\r) is part of an escaped newline sequence. Issue
+/// a diagnostic if so. We know that the newline is inside of a block comment.
static bool isEndOfBlockCommentWithEscapedNewLine(const char *CurPtr,
Lexer *L) {
assert(CurPtr[0] == '\n' || CurPtr[0] == '\r');
More information about the cfe-commits
mailing list