[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CANiq72nr88=r-rackE7+DBAxg8VYy8LYO9D2h0vnxbAoSXFFSQ@mail.gmail.com>
Date: Thu, 12 Oct 2023 18:53:37 +0200
From: Miguel Ojeda <miguel.ojeda.sandonis@...il.com>
To: Joe Perches <joe@...ches.com>
Cc: Miguel Ojeda <ojeda@...nel.org>, dan.j.williams@...el.com,
corbet@....net, gregkh@...uxfoundation.org,
linux-doc@...r.kernel.org, linux-kernel@...r.kernel.org,
linux@...ck-us.net, max.kellermann@...os.com,
workflows@...r.kernel.org
Subject: Re: [PATCH v3] Documentation/process/coding-style.rst: space around const
On Thu, Oct 12, 2023 at 4:48 PM Joe Perches <joe@...ches.com> wrote:
>
> Do older versions of clang-format ignore entries
> they don't understand?
Sadly, no, that is the reason we keep it at the minimum.
However, I just took a look again at it, and I see that such support
was added to LLVM 12, the `--Wno-error=unknown` flag in commit
f64903fd8176 ("Add -Wno-error=unknown flag to clang-format.").
So this means that the minimum is bumped to 12, we could in principle
use newer options.
I think the downsides are that users will need to pass the flag
(potentially in e.g. their IDE or similar) and that formatting could
be potentially chaotic depending on the options ignored. I guess
particular subsystems could agree on which version to use.
Cheers,
Miguel
Powered by blists - more mailing lists