From: Pedro Alves <pedro@palves.net>
To: Simon Marchi <simark@simark.ca>, Tom Tromey <tromey@adacore.com>,
gdb-patches@sourceware.org
Subject: Re: [PATCH v4 0/4] Add include guard checker and reformatter
Date: Fri, 26 Apr 2024 16:19:31 +0100 [thread overview]
Message-ID: <4b041f84-e36b-449e-9bfa-3e5235411bb1@palves.net> (raw)
In-Reply-To: <35cc3c26-db4a-4594-9a21-9917bd7e41b3@simark.ca>
On 2024-04-19 19:43, Simon Marchi wrote:
> On 2024-04-19 12:55, Pedro Alves wrote:
>> On 2024-04-19 16:26, Simon Marchi wrote:
>>> So, after patch 4/4, your script doesn't need to handle the the
>>> `defined(FOO_H)` style (OLDDEF in your script). I think you could
>>> remove support for that, it would simplify it a little bit.
>>
>> Doesn't it need to handle it in case someone creates a new header and writes
>> defined(FOO_H) manually? You'd still want the hook to fix that.
>>
>
> IMO, after the initial run, the script doesn't really need to auto fix
> things, it can just check and report errors.
The Black pre-hook fixes things for you instead of reporting formatting
issues. I don't see why should this hook be held to different standards?
prev parent reply other threads:[~2024-04-26 15:19 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-19 15:03 Tom Tromey
2024-04-19 15:03 ` [PATCH v4 1/4] Fix some minor header file irregularities Tom Tromey
2024-04-19 15:03 ` [PATCH v4 2/4] Add an include-checking script Tom Tromey
2024-04-19 15:03 ` [PATCH v4 3/4] Add check-include-guards.py to pre-commit Tom Tromey
2024-04-19 15:03 ` [PATCH v4 4/4] Run check-include-guards.py Tom Tromey
2024-04-19 15:26 ` [PATCH v4 0/4] Add include guard checker and reformatter Simon Marchi
2024-04-19 16:55 ` Pedro Alves
2024-04-19 18:43 ` Simon Marchi
2024-04-19 20:52 ` Tom Tromey
2024-04-26 15:19 ` Pedro Alves [this message]
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=4b041f84-e36b-449e-9bfa-3e5235411bb1@palves.net \
--to=pedro@palves.net \
--cc=gdb-patches@sourceware.org \
--cc=simark@simark.ca \
--cc=tromey@adacore.com \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).