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: unassignedclangb...@nondot.org
Reporter: mikhail.matro...@gmail.com
CC: djas...@google.com, kli...@google.com,
llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs