When formatting the following string:
"/*\r\n" " * Comment with\r\n" " \r\n" " * blanks.\r\n" " */\r\n"
clang-format produced:
"/*\r\n" " * Comment with\r\n" " \r\r\n" " * blanks.\r\n" " */\r\n"
And when formatting
"#define A(\\\r\n" " x) /* \\\r\n" "a comment \\\r\n" "inside */ \\\r\n" " f();"
with line length 17, clang-format produced:
"#define A( \\\r" " x) /* \\ \\\r" "a comment \\ \\\r" "inside */ \\\r" " f();"
So in one case it added additional \r instead of replacing with the blank
line and in another it added additional newline escape character \.
After the change the result are respectively:
"/*\r\n" " * Comment with\r\n" "\r\n" " * blanks .\r\ n" " */\r\n"
and
"#define A(x) /* \\\r\n" " a comment \\\r\n" " inside */ \\\r\n" " f();"
FYI, there's a global UseCRLF flag in WhitespaceManager. It may make sense to use it everywhere instead of deciding for each comment. But I'll let actual clang-format maintainers decide on pros and cons of this.