[PATCH] D153208: [clang-format] Add InsertNewlineAtEOF to .clang-format files
Owen Pan via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Jun 17 15:41:16 PDT 2023
owenpan created this revision.
Herald added projects: All, clang, clang-format.
Herald added a subscriber: cfe-commits.
Herald added reviewers: rymiel, HazardyKnusperkeks, MyDeveloperDay.
owenpan requested review of this revision.
Also, add `Language: Cpp` to make it explicit. Then reformat all clang-format related files.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D153208
Files:
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
Index: clang/unittests/Format/FormatTestMacroExpansion.cpp
===================================================================
--- clang/unittests/Format/FormatTestMacroExpansion.cpp
+++ clang/unittests/Format/FormatTestMacroExpansion.cpp
@@ -259,4 +259,4 @@
} // namespace
} // namespace test
} // namespace format
-} // namespace clang
\ No newline at end of file
+} // namespace clang
Index: clang/unittests/Format/.clang-format
===================================================================
--- clang/unittests/Format/.clang-format
+++ clang/unittests/Format/.clang-format
@@ -1,4 +1,6 @@
BasedOnStyle: LLVM
InsertBraces: true
+InsertNewlineAtEOF: true
+Language: Cpp
LineEnding: LF
RemoveBracesLLVM: true
Index: clang/tools/clang-format/.clang-format
===================================================================
--- clang/tools/clang-format/.clang-format
+++ clang/tools/clang-format/.clang-format
@@ -1,4 +1,6 @@
BasedOnStyle: LLVM
InsertBraces: true
+InsertNewlineAtEOF: true
+Language: Cpp
LineEnding: LF
RemoveBracesLLVM: true
Index: clang/lib/Format/.clang-format
===================================================================
--- clang/lib/Format/.clang-format
+++ clang/lib/Format/.clang-format
@@ -1,4 +1,6 @@
BasedOnStyle: LLVM
InsertBraces: true
+InsertNewlineAtEOF: true
+Language: Cpp
LineEnding: LF
RemoveBracesLLVM: true
Index: clang/include/clang/Format/.clang-format
===================================================================
--- clang/include/clang/Format/.clang-format
+++ clang/include/clang/Format/.clang-format
@@ -1,4 +1,6 @@
BasedOnStyle: LLVM
InsertBraces: true
+InsertNewlineAtEOF: true
+Language: Cpp
LineEnding: LF
RemoveBracesLLVM: true
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D153208.532428.patch
Type: text/x-patch
Size: 1715 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230617/038cfe4b/attachment.bin>
More information about the cfe-commits
mailing list