Re: [PATCH v1] clang-format: Fix formatting of guard()
From: Miguel Ojeda
Date: Wed Jul 08 2026 - 07:37:14 EST
On Wed, Jul 8, 2026 at 1:20 PM Mickaël Salaün <mic@xxxxxxxxxxx> wrote:
>
> 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?
It would disappear, but that is why I said that we could have a
section of the list that is for explicitly-added entries, where we
could add `scoped_guard` back.
So we could 1) apply your patch, 2) have a patch to add a new section
of the list with the `scoped_guard` entry and a comment, 3) update the
main list, keeping that new section below or above.
(If you want to send that series, please feel free, of course!)
Does that clarify?
Having said that, `clang-format` is not enforced (unlike `rustfmt`),
so you could apply your patch (or not) independently.
Cheers,
Miguel