Git development
 help / color / mirror / Atom feed
* [PATCH] CodingGuidelines: allow compound literals
@ 2026-10-26 14:14 Phillip Wood
  2026-10-26 21:11 ` Junio C Hamano
  0 siblings, 1 reply; 4+ messages in thread
From: Phillip Wood @ 2026-10-26 14:14 UTC (permalink / raw)
  To: git; +Cc: Patrick Steinhardt, Phillip Wood

From: Phillip Wood <phillip.wood@dunelm.org.uk>

Our coding guidelines say that we'll allow compound literals from
mid 2026 if no problems are reported in relation to the test balloon
added in 01e49941d6 (reftable/system: provide thin wrapper for tempfile
subsystem, 2024-11-18). As no such reports have been received, update
the guidelines to allow this construct.

Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk>
---
base-commit: 26d8d94e94df5535eecd036f16627493506a0614
Published-As: https://github.com/phillipwood/git/releases/tag/pw%2Fcoding-guidelines-allow-compound-literals%2Fv1
View-Changes-At: https://github.com/phillipwood/git/compare/26d8d94e9...a4b382c03
Fetch-It-Via: git fetch https://github.com/phillipwood/git pw/coding-guidelines-allow-compound-literals/v1

 Documentation/CodingGuidelines | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/Documentation/CodingGuidelines b/Documentation/CodingGuidelines
index c06f5d3071..23a4d2186a 100644
--- a/Documentation/CodingGuidelines
+++ b/Documentation/CodingGuidelines
@@ -311,13 +311,8 @@ For C programs:
    . since late 2023 with 8277dbe987 we have been using the bool type
      from <stdbool.h>.
 
-   C99 features we have test balloons for:
-
-   . since late 2024 with v2.48.0-rc0~20, we have test balloons for
-     compound literal syntax, e.g., (struct foo){ .member = value };
-     our hope is that no platforms we care about have trouble using
-     them, and officially adopt its wider use in mid 2026.  Do not add
-     more use of the syntax until that happens.
+   . since late 2024 with v2.48.0-rc0~20, we have been using compound
+     literals, e.g., (struct foo){ .member = value };
 
    New C99 features that we cannot use yet:
 
-- 
2.56.0.336.g97505d19352


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-10-27 10:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-26 14:14 [PATCH] CodingGuidelines: allow compound literals Phillip Wood
2026-10-26 21:11 ` Junio C Hamano
2026-10-27  6:36   ` Patrick Steinhardt
2026-10-27 10:49     ` Phillip Wood

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox