[libcxx-commits] [libcxx] [libcxxabi] [libc++] Add InsertNewlineAtEOF=True to .clang-format (PR #214078)

Michael G. Kazakov via libcxx-commits libcxx-commits at lists.llvm.org
Wed Aug 5 01:14:07 PDT 2026


https://github.com/mikekazakov updated https://github.com/llvm/llvm-project/pull/214078

>From 9601cf2b5049fc0d432579d0e8a09219b68b6a5e Mon Sep 17 00:00:00 2001
From: Michael Kazakov <mike.kazakov at gmail.com>
Date: Tue, 4 Aug 2026 22:27:31 +0100
Subject: [PATCH 1/2] Added InsertNewlineAtEOF=True to .clang-format

---
 libcxx/.clang-format | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libcxx/.clang-format b/libcxx/.clang-format
index c99c535fe0ce1..42a7238dd8386 100644
--- a/libcxx/.clang-format
+++ b/libcxx/.clang-format
@@ -63,6 +63,7 @@ EmptyLineAfterAccessModifier: Never
 EmptyLineBeforeAccessModifier: Always
 IndentWrappedFunctionNames: false
 IndentRequires: true
+InsertNewlineAtEOF: true
 InsertTrailingCommas: Wrapped
 KeepEmptyLinesAtTheStartOfBlocks: false
 MaxEmptyLinesToKeep: 1

>From 971a6fc686dd1b39fc2dc9452da81e5b39589d30 Mon Sep 17 00:00:00 2001
From: Michael Kazakov <mike.kazakov at gmail.com>
Date: Wed, 5 Aug 2026 09:02:25 +0100
Subject: [PATCH 2/2] Added to libcxxabi as well

---
 libcxxabi/.clang-format | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libcxxabi/.clang-format b/libcxxabi/.clang-format
index c99c535fe0ce1..42a7238dd8386 100644
--- a/libcxxabi/.clang-format
+++ b/libcxxabi/.clang-format
@@ -63,6 +63,7 @@ EmptyLineAfterAccessModifier: Never
 EmptyLineBeforeAccessModifier: Always
 IndentWrappedFunctionNames: false
 IndentRequires: true
+InsertNewlineAtEOF: true
 InsertTrailingCommas: Wrapped
 KeepEmptyLinesAtTheStartOfBlocks: false
 MaxEmptyLinesToKeep: 1



More information about the libcxx-commits mailing list