[clang] dadfc6b - [clang-format][NFC] Set LineEnding to LF in config files

Owen Pan via cfe-commits cfe-commits at lists.llvm.org
Sun Jan 22 02:53:41 PST 2023


Author: Owen Pan
Date: 2023-01-22T02:53:06-08:00
New Revision: dadfc6b38b00ff6e7c243ccc834f06d794a32b59

URL: https://github.com/llvm/llvm-project/commit/dadfc6b38b00ff6e7c243ccc834f06d794a32b59
DIFF: https://github.com/llvm/llvm-project/commit/dadfc6b38b00ff6e7c243ccc834f06d794a32b59.diff

LOG: [clang-format][NFC] Set LineEnding to LF in config files

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

Differential Revision: https://reviews.llvm.org/D141098

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/clang/include/clang/Format/.clang-format b/clang/include/clang/Format/.clang-format
index 0e362770f3537..60f4950c01a59 100644
--- a/clang/include/clang/Format/.clang-format
+++ b/clang/include/clang/Format/.clang-format
@@ -1,3 +1,4 @@
 BasedOnStyle: LLVM
 InsertBraces: true
+LineEnding: LF
 RemoveBracesLLVM: true

diff  --git a/clang/lib/Format/.clang-format b/clang/lib/Format/.clang-format
index 0e362770f3537..60f4950c01a59 100644
--- a/clang/lib/Format/.clang-format
+++ b/clang/lib/Format/.clang-format
@@ -1,3 +1,4 @@
 BasedOnStyle: LLVM
 InsertBraces: true
+LineEnding: LF
 RemoveBracesLLVM: true

diff  --git a/clang/unittests/Format/.clang-format b/clang/unittests/Format/.clang-format
index 0e362770f3537..60f4950c01a59 100644
--- a/clang/unittests/Format/.clang-format
+++ b/clang/unittests/Format/.clang-format
@@ -1,3 +1,4 @@
 BasedOnStyle: LLVM
 InsertBraces: true
+LineEnding: LF
 RemoveBracesLLVM: true


        


More information about the cfe-commits mailing list