[PATCH] D47577: [clang-format] Separate block comments with CRLF correctly

2018-06-08 Thread Krasimir Georgiev via Phabricator via cfe-commits
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");

[PATCH] D47577: [clang-format] Separate block comments with CRLF correctly

2018-06-07 Thread Alexander Kornienko via Phabricator via cfe-commits
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

[PATCH] D47577: [clang-format] Separate block comments with CRLF correctly

2018-05-31 Thread Attila via Phabricator via cfe-commits
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" "\