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

Daniel Jasper djasper at google.com
Wed Nov 27 14:24:31 PST 2013


I'd like Manuel to take a look, but in general, please format Clang/LLVM
files with the correct style (i.e. "clang-format -style LLVM") :-).


On Wed, Nov 27, 2013 at 11:28 AM, jpark37 . <jpark37 at gmail.com> wrote:

> 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
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131127/a49a70ac/attachment.html>


More information about the cfe-commits mailing list