[llvm-bugs] [Bug 28535] Preamble is also generated for the second reparse on Windows

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Feb 22 02:59:00 PST 2017


https://bugs.llvm.org/show_bug.cgi?id=28535

Erik Verbruggen <Erik.Verbruggen at Me.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #2 from Erik Verbruggen <Erik.Verbruggen at Me.com> ---
In the example program, the ifstream is not in binary mode. So, it will convert
\r\n to \n. So, when the preambles are compared for the unchanged case (where
the file comes from disk and contains \r\n line terminators) and the case with
unsaved files, they are of a different size because of the missing \r's. So
clang will re-generate the preamble.

So, it's not really a bug.

-- 
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/20170222/0b27ba07/attachment.html>


More information about the llvm-bugs mailing list