From dadfc6b38b00ff6e7c243ccc834f06d794a32b59 Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Sun, 22 Jan 2023 02:37:39 -0800 Subject: [PATCH] [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 --- clang/include/clang/Format/.clang-format | 1 + clang/lib/Format/.clang-format | 1 + clang/unittests/Format/.clang-format | 1 + 3 files changed, 3 insertions(+) diff --git a/clang/include/clang/Format/.clang-format b/clang/include/clang/Format/.clang-format index 0e362770f..60f4950 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 0e362770f..60f4950 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 0e362770f..60f4950 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 -- 2.7.4