[llvm-bugs] [Bug 24999] New: clang-format -i replaces LF by CRLF
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Sep 30 03:01:38 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=24999
Bug ID: 24999
Summary: clang-format -i replaces LF by CRLF
Product: clang
Version: trunk
Hardware: PC
OS: Windows XP
Status: NEW
Severity: normal
Priority: P
Component: Formatter
Assignee: unassignedclangbugs at nondot.org
Reporter: llvm at meinersbur.de
CC: djasper at google.com, klimek at google.com,
llvm-bugs at lists.llvm.org
Classification: Unclassified
Since commit r248367 ("clang-format: Add initial #include sorting
capabilities.") clang-format changes files with LF line terminator to CRLF.
This is at least annoying with version control system which recognize this as a
change.
On some files clang-format crashes with the message:
$ clang-format.exe -i -style=llvm lib/Transform/ScheduleOptimizer.cpp
LÆopÚration demandÚe nÆa pu sÆaccomplir sur un fichier ayant une section mappÚe
utilisateur ouverte.
(French for: The requested action could not be executed because an open mapped
file section is used)
The mentioned ScheduleOptimizer.cpp is from the Polly project. Operating system
is Windows 10. To reproduce, you can run the polly-update-format target (e.g.
"ninja polly-update-format")
--
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/20150930/989c9384/attachment.html>
More information about the llvm-bugs
mailing list