From: Johnny Richard <johnny@johnnyrichard.com>
To: ~johnnyrichard/olang-devel@lists.sr.ht
Cc: Johnny Richard <johnny@johnnyrichard.com>
Subject: [PATCH olang] linter: turn off clang-format to keep retro compatibility with v16
Date: Fri, 29 Mar 2024 02:59:30 +0100 [thread overview]
Message-ID: <20240329015936.655705-1-johnny@johnnyrichard.com> (raw)
Clang-format version 17 breaks compatibility with version 16, we want to
keep retro compatibility with 16 since we have other contributors which
wont be able to easily migrate.
Signed-off-by: Johnny Richard <johnny@johnnyrichard.com>
---
src/pretty_print_ast.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/pretty_print_ast.c b/src/pretty_print_ast.c
index 129f090..548e38e 100644
--- a/src/pretty_print_ast.c
+++ b/src/pretty_print_ast.c
@@ -26,7 +26,10 @@
#define ANSI_COLOR_MAGENTA "\x1b[35m"
#define ANSI_COLOR_RESET "\x1b[0m"
+
+// clang-format off
#define PP_IS_BIT_SET(data, index) ((data) & 1 << index)
+// clang-format on
typedef struct pretty_print_node
{
--
2.44.0
next reply other threads:[~2024-03-29 0:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-29 1:59 Johnny Richard [this message]
2024-03-29 0:59 ` [olang/patches/.build.yml] build success builds.sr.ht
2024-03-30 0:54 ` [PATCH olang] linter: turn off clang-format to keep retro compatibility with v16 Carlos Maniero
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240329015936.655705-1-johnny@johnnyrichard.com \
--to=johnny@johnnyrichard.com \
--cc=~johnnyrichard/olang-devel@lists.sr.ht \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.johnnyrichard.com/olang.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox