krasimir requested changes to this revision.
krasimir added inline comments.
This revision now requires changes to proceed.
Comment at: lib/Format/BreakableToken.cpp:327
+ TokenText.substr(2, TokenText.size() - 4)
+ .split(Lines, TokenText.count('\r') > 0 ? "\r\n" : "\n");
alexfh added a reviewer: djasper.
alexfh added inline comments.
Comment at: lib/Format/BreakableToken.cpp:327
+ TokenText.substr(2, TokenText.size() - 4)
+ .split(Lines, TokenText.count('\r') > 0 ? "\r\n" : "\n");
FYI, there's a global UseCRLF flag in Whi
Uran198 created this revision.
Uran198 added a reviewer: alexfh.
Herald added subscribers: cfe-commits, klimek.
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"
"\