Subject: bug#59027: closed (Re: bug#59027: [PATCH] clang-format configuration tweaks)

From: [email-masked] (GNU bug Tracking System)
Date: Sat, 05 Nov 2022 00:56:02 +0000

Your bug report

#59027: [PATCH] clang-format configuration tweaks

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
59027: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=59027
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#59027: [PATCH] clang-format configuration tweaks
From: Stefan Kangas <[email-masked]>
To: Matt Armstrong <[email-masked]>, [email-masked]
Date: Fri, 4 Nov 2022 17:55:36 -0700
List-Id: <debbugs-submit.debbugs.gnu.org>

Matt Armstrong <[email-masked]> writes:

> These two patches configure clang-format to format code more like Emacs
> does.

Thanks, pushed to master.

Subject: [PATCH] clang-format configuration tweaks
From: Matt Armstrong <[email-masked]>
To: [email-masked]
Date: Fri, 04 Nov 2022 15:49:50 -0700
List-Id: <debbugs-submit.debbugs.gnu.org>

Tags: patch

These two patches configure clang-format to format code more like Emacs
does.

>From ddcaa8130852a2a4bab91308809b835a5ed2f2c4 Mon Sep 17 00:00:00 2001
From: Matt Armstrong <[email-masked]>
Date: Thu, 3 Nov 2022 14:34:03 -0700
Subject: [PATCH 1/6] Configure clang-format to use tabs

* .clang-format (UseTab): Set to "Always", to match
the (indent-tabs-mode . t) in .dir-locals.el
---
 .clang-format | 1 +
 1 file changed, 1 insertion(+)

diff --git a/.clang-format b/.clang-format
index ac9f95c88a8..8a8391c2e47 100644
--- a/.clang-format
+++ b/.clang-format
@@ -21,6 +21,7 @@ MaxEmptyLinesToKeep: 1
 PenaltyBreakBeforeFirstCallParameter: 2000
 SpaceAfterCStyleCast: true
 SpaceBeforeParens: Always
+UseTab: Always
 
 # Local Variables:
 # mode: yaml
-- 
2.35.1

>From ad11e3dfeeadb333515c99c6b5c89dec1cb701c0 Mon Sep 17 00:00:00 2001
From: Matt Armstrong <[email-masked]>
Date: Fri, 4 Nov 2022 15:24:57 -0700
Subject: [PATCH 2/6] ; * .clang-format (ForEachMacros): Add
 FOR_EACH_LIVE_BUFFER.

---
 .clang-format | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/.clang-format b/.clang-format
index 8a8391c2e47..464375bd418 100644
--- a/.clang-format
+++ b/.clang-format
@@ -6,7 +6,10 @@ BreakBeforeBinaryOperators: All
 BreakBeforeBraces: GNU
 ColumnLimit: 70
 ContinuationIndentWidth: 2
-ForEachMacros: [FOR_EACH_TAIL, FOR_EACH_TAIL_SAFE, ITREE_FOREACH]
+ForEachMacros: [FOR_EACH_TAIL,
+                FOR_EACH_TAIL_SAFE,
+                FOR_EACH_LIVE_BUFFER,
+                ITREE_FOREACH]
 IncludeCategories:
   - Regex: '^<config\.h>$'
     Priority: -1
-- 
2.35.1