emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: GNU bug Tracking System
Subject: bug#59027: closed ([PATCH] clang-format configuration tweaks)
Date: Sat, 05 Nov 2022 00:56:02 +0000

Your message dated Fri, 4 Nov 2022 17:55:36 -0700
with message-id 
<CADwFkmm3zgJHGT-NHD_pCCSZs=Xudy_F8W7AjJ2UAHh55H4e-A@mail.gmail.com>
and subject line Re: bug#59027: [PATCH] clang-format configuration tweaks
has caused the debbugs.gnu.org bug report #59027,
regarding [PATCH] clang-format configuration tweaks
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
59027: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=59027
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: [PATCH] clang-format configuration tweaks Date: Fri, 04 Nov 2022 15:49:50 -0700
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 <matt@rfc20.org>
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 <matt@rfc20.org>
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


--- End Message ---
--- Begin Message --- Subject: Re: bug#59027: [PATCH] clang-format configuration tweaks Date: Fri, 4 Nov 2022 17:55:36 -0700
Matt Armstrong <matt@rfc20.org> writes:

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

Thanks, pushed to master.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]