[PATCH] clang-format: fix for \r\r\n produced in multiline block comments

Daniel Jasper djasper at google.com
Wed Oct 30 00:40:23 PDT 2013

Submitted as r193678.

On Wed, Oct 30, 2013 at 12:55 AM, Christopher Olsen
<chrisaolsen at gmail.com>wrote:

> In multiline block comments \r\n line endings are replaced with
> \r\r\n.  BreakableToken does not consider \r a "blank" character.  So,
> internally it breaks lines on \n, leaving a dangling \r, then replaces
> the \n with \r\n resulting in \r\r\n.
> Attached is a fix which simply adds \r to the list of blank characters
> in BreakableToken and includes a test case in SupportsCRLF.
> Chris
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131030/76c0a4fa/attachment.html>

More information about the cfe-commits mailing list