From: "Roger Pau Monné" <roger.pau@citrix.com>
To: Grygorii Strashko <grygorii_strashko@epam.com>
Cc: Stefano Stabellini <sstabellini@kernel.org>,
Oleksandr Andrushchenko <andr2000@gmail.com>,
"xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>,
Artem Mygaiev <Artem_Mygaiev@epam.com>
Subject: Re: Coding Style Review and Automation
Date: Wed, 12 Feb 2025 12:31:55 +0100 [thread overview]
Message-ID: <Z6yGq6TEIfavyPIS@macbook.local> (raw)
In-Reply-To: <65fcc449-3b15-4e14-995a-ddd3bec9f3d0@epam.com>
On Wed, Feb 12, 2025 at 01:14:20PM +0200, Grygorii Strashko wrote:
> Hi
>
> On 12.02.25 11:14, Roger Pau Monné wrote:
> > On Tue, Feb 11, 2025 at 02:33:08PM -0800, Stefano Stabellini wrote:
> > > Hi Oleksandr,
> > >
> > > This morning, we had a discussion among maintainers, and the suggested
> > > approach moving forward is as follows:
> > >
> > > - First, it would be helpful to see a sample of the proposed changes
> > > applied to a single source file as an example. If you could provide
> > > such a patch, it would help advance the discussion.
> > >
> > > - If the changes are acceptable, we need to properly document the new
> > > coding style in xen.git. If not, we will need to iterate again. We may
> > > also need to add a "xen" template to clang-format.
> > >
> > > - Once finalized, we will proceed by making changes to the Xen source
> > > code piece by piece, as you suggested, rather than applying a single
> > > large patch.
> >
> > No objections, just wandering myself whether it was considered to
> > initially only apply the new style to new chunks of code? Using
> > `git-clang-format` or similar as suggested by Anthony.
> >
> > Is the adjusted style expected to be too different from the current
> > one as such approach would lead to hard to read code due to the mixed
> > styles?
>
> Sorry for may be dumb question, but wouldn't it be reasonable to consider
> adding just .clang-format specification to the Xen code base without
> automation features?
Yes, ti can be considered, but I think part of the desire to have
clang-format is so checking can be automated.
In any case, even if checking is not initially automated, whatever
rules are in .clang-format must be in-line with the coding style
document. Otherwise the presence of .clang-format would just be
misleading if the resulting generated format doesn't adhere to our
coding style.
Thanks, Roger.
next prev parent reply other threads:[~2025-02-12 11:32 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-10 21:16 Coding Style Review and Automation Oleksandr Andrushchenko
2025-02-11 1:37 ` Stefano Stabellini
2025-02-11 9:01 ` Roger Pau Monné
2025-02-11 9:10 ` Luca Fancellu
2025-02-11 9:31 ` Roger Pau Monné
2025-02-11 9:49 ` Luca Fancellu
2025-02-11 10:26 ` Roger Pau Monné
2025-02-11 10:30 ` Jan Beulich
2025-02-11 11:03 ` Anthony PERARD
2025-02-11 10:19 ` Jan Beulich
2025-02-11 14:06 ` Roger Pau Monné
2025-02-11 18:54 ` Marek Marczykowski-Górecki
2025-02-12 11:54 ` Edwin Torok
2025-02-11 10:14 ` Jan Beulich
2025-02-11 10:35 ` Roger Pau Monné
2025-02-11 10:28 ` Jan Beulich
2025-02-11 22:33 ` Stefano Stabellini
2025-02-12 9:14 ` Roger Pau Monné
2025-02-12 11:14 ` Grygorii Strashko
2025-02-12 11:31 ` Roger Pau Monné [this message]
2025-02-13 6:43 ` Oleksandr Andrushchenko
2025-02-12 20:03 ` Oleksandr Andrushchenko
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=Z6yGq6TEIfavyPIS@macbook.local \
--to=roger.pau@citrix.com \
--cc=Artem_Mygaiev@epam.com \
--cc=andr2000@gmail.com \
--cc=grygorii_strashko@epam.com \
--cc=sstabellini@kernel.org \
--cc=xen-devel@lists.xenproject.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.