[PATCH] D141098: [clang-format][NFC] Set DeriveLineEnding to false in config files

Owen Pan via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 5 16:19:39 PST 2023


owenpan created this revision.
owenpan added reviewers: MyDeveloperDay, HazardyKnusperkeks, rymiel.
owenpan added a project: clang-format.
Herald added a project: All.
owenpan requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

To prevent `\r\n` line endings from getting into the source files.

I'd rather change the default to `false` for LLVM style though. What do you think?


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D141098

Files:
  clang/include/clang/Format/.clang-format
  clang/lib/Format/.clang-format
  clang/unittests/Format/.clang-format


Index: clang/unittests/Format/.clang-format
===================================================================
--- clang/unittests/Format/.clang-format
+++ clang/unittests/Format/.clang-format
@@ -1,3 +1,4 @@
 BasedOnStyle: LLVM
+DeriveLineEnding: false
 InsertBraces: true
 RemoveBracesLLVM: true
Index: clang/lib/Format/.clang-format
===================================================================
--- clang/lib/Format/.clang-format
+++ clang/lib/Format/.clang-format
@@ -1,3 +1,4 @@
 BasedOnStyle: LLVM
+DeriveLineEnding: false
 InsertBraces: true
 RemoveBracesLLVM: true
Index: clang/include/clang/Format/.clang-format
===================================================================
--- clang/include/clang/Format/.clang-format
+++ clang/include/clang/Format/.clang-format
@@ -1,3 +1,4 @@
 BasedOnStyle: LLVM
+DeriveLineEnding: false
 InsertBraces: true
 RemoveBracesLLVM: true


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D141098.486708.patch
Type: text/x-patch
Size: 891 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230106/868791fa/attachment.bin>


More information about the cfe-commits mailing list