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

Attachment: clang-format_block_comments.patch
Description: Binary data

_______________________________________________
cfe-commits mailing list
cfe-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to