[llvm-bugs] [Bug 35035] New: Clang-format makes inconsistent line endings in multiline comments on Windows
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Oct 23 08:36:55 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=35035
Bug ID: 35035
Summary: Clang-format makes inconsistent line endings in
multiline comments on Windows
Product: clang
Version: 5.0
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: Formatter
Assignee: unassignedclangbugs at nondot.org
Reporter: mikhail.matrosov at gmail.com
CC: djasper at google.com, klimek at google.com,
llvm-bugs at lists.llvm.org
Created attachment 19327
--> https://bugs.llvm.org/attachment.cgi?id=19327&action=edit
Source file before formatting
You need a file with multiline comment containing a line with spaces only:
/*
*/
Note how line between /* and */ contains two spaces. Save this with Windows
line endings (CR+LF). Format with "Mozilla" style:
"c:\Program Files (x86)\LLVM\bin\clang-format.exe" --style=Mozilla -i file.cpp
Check the file. It now contains additional blank line separated with CR symbol
only. Other line endings are still CR+LF.
--
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/20171023/cf4441aa/attachment.html>
More information about the llvm-bugs
mailing list