Re: [PATCH v3] perf clang-format: Prioritize Python.h and expand other categories

From: Namhyung Kim

Date: Sun Jul 12 2026 - 02:56:35 EST


On Thu, 04 Jun 2026 23:24:18 -0700, Ian Rogers wrote:
> This commit updates the .clang-format rules for the perf tools.
> It prioritizes Python.h sorting and expands the regex lists for C
> standard library and OS specific headers.
>
> - Prioritize Python.h by sorting it first (Priority -1), ensuring it
> is sorted before even the main header (Priority 0).
> - Keep other header priorities (1 and 2) to maintain their relative
> order.
> - Sanity check and complete "C Standard Library Headers" up to C23
> (added stdbit.h, stdckdint.h).
> - Sanity check and complete "OS/System-Specific Headers" based on
> actual usage in tools/perf (added asm-generic, uapi, and various
> flat POSIX/system headers).
>
> [...]
Applied to perf-tools-next, thanks!

Best regards,
Namhyung