Re: [PATCH v1] tools clang-format: Add a tools clang-format that overrides some kernel behaviors

From: Ian Rogers

Date: Mon Apr 13 2026 - 11:39:43 EST


On Tue, Apr 7, 2026 at 10:11 AM Joe Perches <joe@xxxxxxxxxxx> wrote:
>
> On Tue, 2026-04-07 at 09:55 -0700, Ian Rogers wrote:
>
> > Sorting headers is desirable to avoid issues like duplicate includes.
>
> Perhaps.
>
> Some others prefer reverse-christmas-tree by length ordering for #includes
> though I think it's poor style.

Thanks Joe. I second not switching to a reverse-christmas-tree style :-)

If this patch is okay, could we bring it in through the perf tree?
Namhyung/Arnaldo, are you okay with doing this? Being able to easily
`git clang-format` is useful for my work in perf, and the motivating
conversation occurred on linux-perf-users.

Thanks,
Ian