clang-apply-replacements doesn't handle windows newlines correctly

Manuel Klimek klimek at google.com
Wed Dec 3 05:24:16 PST 2014


On Wed Dec 03 2014 at 4:18:24 AM Nikola Smiljanic <popizdeh at gmail.com>
wrote:

> I'm not entirely sure this is the right way to fix the issue, but since
> SourceManager reads \r \n we should probably write them without newline
> translation. What happens now is, newline is read as \r \n and when it's
> written out the \n is translated so we end up with duplicated \r.
>
>
> _______________________________________________
> 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/20141203/33f22df0/attachment.html>


More information about the cfe-commits mailing list