[clang] bca11ba - [clang-format] Add InsertNewlineAtEOF to .clang-format files
Owen Pan via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 20 08:30:16 PDT 2023
Author: Owen Pan
Date: 2023-06-20T08:30:09-07:00
New Revision: bca11bafba9788dd80135b76a187c5f00e64f735
URL: https://github.com/llvm/llvm-project/commit/bca11bafba9788dd80135b76a187c5f00e64f735
DIFF: https://github.com/llvm/llvm-project/commit/bca11bafba9788dd80135b76a187c5f00e64f735.diff
LOG: [clang-format] Add InsertNewlineAtEOF to .clang-format files
Also, reformat all clang-format related files.
Differential Revision: https://reviews.llvm.org/D153208
Added:
Modified:
clang/include/clang/Format/.clang-format
clang/lib/Format/.clang-format
clang/tools/clang-format/.clang-format
clang/unittests/Format/.clang-format
clang/unittests/Format/FormatTestMacroExpansion.cpp
Removed:
################################################################################
diff --git a/clang/include/clang/Format/.clang-format b/clang/include/clang/Format/.clang-format
index 60f4950c01a59..63d45e0307a3d 100644
--- a/clang/include/clang/Format/.clang-format
+++ b/clang/include/clang/Format/.clang-format
@@ -1,4 +1,5 @@
BasedOnStyle: LLVM
InsertBraces: true
+InsertNewlineAtEOF: true
LineEnding: LF
RemoveBracesLLVM: true
diff --git a/clang/lib/Format/.clang-format b/clang/lib/Format/.clang-format
index 60f4950c01a59..63d45e0307a3d 100644
--- a/clang/lib/Format/.clang-format
+++ b/clang/lib/Format/.clang-format
@@ -1,4 +1,5 @@
BasedOnStyle: LLVM
InsertBraces: true
+InsertNewlineAtEOF: true
LineEnding: LF
RemoveBracesLLVM: true
diff --git a/clang/tools/clang-format/.clang-format b/clang/tools/clang-format/.clang-format
index 60f4950c01a59..63d45e0307a3d 100644
--- a/clang/tools/clang-format/.clang-format
+++ b/clang/tools/clang-format/.clang-format
@@ -1,4 +1,5 @@
BasedOnStyle: LLVM
InsertBraces: true
+InsertNewlineAtEOF: true
LineEnding: LF
RemoveBracesLLVM: true
diff --git a/clang/unittests/Format/.clang-format b/clang/unittests/Format/.clang-format
index 60f4950c01a59..63d45e0307a3d 100644
--- a/clang/unittests/Format/.clang-format
+++ b/clang/unittests/Format/.clang-format
@@ -1,4 +1,5 @@
BasedOnStyle: LLVM
InsertBraces: true
+InsertNewlineAtEOF: true
LineEnding: LF
RemoveBracesLLVM: true
diff --git a/clang/unittests/Format/FormatTestMacroExpansion.cpp b/clang/unittests/Format/FormatTestMacroExpansion.cpp
index feafadb1593e2..1ac5ac0d84f12 100644
--- a/clang/unittests/Format/FormatTestMacroExpansion.cpp
+++ b/clang/unittests/Format/FormatTestMacroExpansion.cpp
@@ -259,4 +259,4 @@ TEST_F(FormatTestMacroExpansion,
} // namespace
} // namespace test
} // namespace format
-} // namespace clang
\ No newline at end of file
+} // namespace clang
More information about the cfe-commits
mailing list