Re: [PATCH v1] clang-format: Fix formatting of guard()
From: Mickaël Salaün
Date: Wed Jul 08 2026 - 07:35:21 EST
On Wed, Jul 08, 2026 at 01:11:31PM +0200, Miguel Ojeda wrote:
> On Wed, Jul 8, 2026 at 1:10 PM Mickaël Salaün <mic@xxxxxxxxxxx> wrote:
> >
> > What do you mean? Running clang-format -i security/landlock/*.[ch] does
> > some changes.
>
> I mean the command on the `.clang-format` file:
>
> # Taken from:
> # git grep -h '^#define [^[:space:]]*for_each[^[:space:]]*('
> include/ tools/ \
> # | sed "s,^#define \([^[:space:]]*for_each[^[:space:]]*\)(.*$, - '\1'," \
> # | LC_ALL=C sort -u
Ok, so the guard/scoped_guard changes will disappear once you refreshed
the .clang-format file. This means that I should not apply the Landlock
changes [1] right?
[1] https://lore.kernel.org/all/20260708110635.2083515-1-mic@xxxxxxxxxxx/
Do you plan to send this file update with a following v7.2-rc?
>
> Cheers,
> Miguel