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

jpark37 . jpark37 at gmail.com
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: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131127/8899941f/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ClangFormat.zip
Type: application/zip
Size: 726 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131127/8899941f/attachment.zip>


More information about the cfe-commits mailing list