]> granicus.if.org Git - clang/commitdiff
Escape \n and \r in doxycomment.
authorDavid Blaikie <dblaikie@gmail.com>
Wed, 6 Jun 2012 18:43:20 +0000 (18:43 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Wed, 6 Jun 2012 18:43:20 +0000 (18:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158091 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Lex/Lexer.cpp

index c6c39144af000726897d62a3b3bcb1edb168917f..a43543ad9a43569594d498e7f1aee22ae275d8f3 100644 (file)
@@ -2043,8 +2043,8 @@ bool Lexer::SaveBCPLComment(Token &Result, const char *CurPtr) {
 }
 
 /// 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
+/// 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');