[LLVMbugs] [Bug 20552] New: -frewrite-includes produces files with inconsistent line endings

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Aug 5 14:01:50 PDT 2014


            Bug ID: 20552
           Summary: -frewrite-includes produces files with inconsistent
                    line endings
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: rnk at google.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

It's really easy to get into this situation on Windows if you have a project
that uses Unix style line endings that includes Windows system headers.  Those
headers will have DOS line endings, and simply concatenating the text from two
headers will result in a mixed file.  Making matters worse, we end up with
stuff like:

#if 0 /* expanded by -frewrite-includes */^M
#pragma once^M#endif /* expanded by -frewrite-includes */^M

We should figure this out.

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140805/13854d54/attachment.html>

More information about the llvm-bugs mailing list