patch to preserve carriage returns when using clang-format VS plugin

jpark37 . jpark37 at
Wed Nov 27 02:28:33 PST 2013

Hello there,

I'm seeing newlines without carriage returns when using the clang-format
plugin for Visual Studio. The issue seems to be that clang-format is not
escaping newline characters when run with -output-replacements-xml, so the
.NET XML stuff ends up collapsing \r\n down to \n. I've attached a patch
that I've tested and appears to address the problem.

- James
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>
-------------- next part --------------
A non-text attachment was scrubbed...
Type: application/zip
Size: 726 bytes
Desc: not available
URL: <>

More information about the cfe-commits mailing list