qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Alex Bennée" <alex.bennee@linaro.org>
To: Brian Cain <quic_bcain@quicinc.com>
Cc: Peter Maydell <peter.maydell@linaro.org>,  <qemu-devel@nongnu.org>
Subject: Re: [Semihosting Tests PATCH v2 1/3] .editorconfig: add code conventions for tooling
Date: Fri, 31 May 2024 09:54:49 +0100	[thread overview]
Message-ID: <875xuucqee.fsf@draig.linaro.org> (raw)
In-Reply-To: <e6bfd903-566e-4e1d-aeaf-efc798b36a92@quicinc.com> (Brian Cain's message of "Thu, 30 May 2024 10:22:03 -0500")

Brian Cain <quic_bcain@quicinc.com> writes:

> On 5/30/2024 6:23 AM, Alex Bennée wrote:
>> It's a pain when you come back to a code base you haven't touched in a
>> while and realise whatever indent settings you were using having
>> carried over. Add an editorconfig and be done with it.
>>
>> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
>
>
> Adding an editorconfig seems like a great idea IMO.  But I wonder -
> will it result in unintentional additional changes when saving a file
> that contains baseline non-conformance?

This is for the semihosting tests, we have had an editorconfig in the
mainline QEMU repo for a long time. Generally it's just standardising
what people usually hand configure their editors for which can range in
their aggressiveness in reformatting existing code.

> Related: would a .clang-format file also be useful? git-clang-format
> can be used to apply formatting changes only on the code that's been
> changed.

As a pre-commit hook? Or via something like clangd? 

> Also: should we consider excluding any exceptional files that we don't
> expect to conform?

Do we have such files? We certainly have a bunch of legacy whitespace
damage hanging about but I didn't think we had a lot of non-conforming
files.

<snip>

-- 
Alex Bennée
Virtualisation Tech Lead @ Linaro


  reply	other threads:[~2024-05-31  8:56 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-30 11:23 [Semihosting Tests PATCH v2 0/3] add SYS_GET_CMDLINE test Alex Bennée
2024-05-30 11:23 ` [Semihosting Tests PATCH v2 1/3] .editorconfig: add code conventions for tooling Alex Bennée
2024-05-30 15:22   ` Brian Cain
2024-05-31  8:54     ` Alex Bennée [this message]
2024-05-31 10:05       ` Peter Maydell
2024-05-30 11:23 ` [Semihosting Tests PATCH v2 2/3] update includes for bare metal compiling Alex Bennée
2024-05-30 11:23 ` [Semihosting Tests PATCH v2 3/3] add SYS_GET_CMDLINE test Alex Bennée
2024-05-30 14:31 ` [Semihosting Tests PATCH v2 0/3] " Peter Maydell

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=875xuucqee.fsf@draig.linaro.org \
    --to=alex.bennee@linaro.org \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=quic_bcain@quicinc.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 NNTP newsgroup(s).