aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2025-07-24 16:06:23 -0700
committerJunio C Hamano <gitster@pobox.com>2025-07-24 16:06:24 -0700
commitc239410df92b396bbfe2fcb79211d897be7b02b1 (patch)
tree95c0cbbaa358567b3fd41f3019cef63889b5f6f4
parentMerge branch 'ag/imap-send-list-folders-doc' into next (diff)
parentCodingGuidelines: document test balloons in flight (diff)
downloadgit-c239410df92b396bbfe2fcb79211d897be7b02b1.tar.gz
git-c239410df92b396bbfe2fcb79211d897be7b02b1.zip
Merge branch 'jc/document-test-balloons-in-flight' into next
To help our developers, document what C99 language features are being considered for adoption, in addition to what past experiments have already decided. * jc/document-test-balloons-in-flight: CodingGuidelines: document test balloons in flight
-rw-r--r--Documentation/CodingGuidelines8
1 files changed, 8 insertions, 0 deletions
diff --git a/Documentation/CodingGuidelines b/Documentation/CodingGuidelines
index 528b42d1dd..f474120425 100644
--- a/Documentation/CodingGuidelines
+++ b/Documentation/CodingGuidelines
@@ -301,6 +301,14 @@ 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.
+
New C99 features that we cannot use yet:
. %z and %zu as a printf() argument for a size_t (the %z being for