* [PATCH v1] perf tool: Align structs in arrays in .clang-format
@ 2026-09-02 15:34 Ian Rogers
0 siblings, 0 replies; only message in thread
From: Ian Rogers @ 2026-09-02 15:34 UTC (permalink / raw)
To: Peter Zijlstra, Ingo Molnar, Arnaldo Carvalho de Melo,
Namhyung Kim, Jiri Olsa, Ian Rogers, Adrian Hunter, James Clark,
linux-perf-users, linux-kernel
Cc: Nick Desaulniers, Bill Wendling, llvm
Configure clang-format to ensure structs within arrays maintain left
alignment inside tools/perf/.clang-format. This prevents standard
formatting runs from arbitrarily squashing tabbed initialization pillars.
Signed-off-by: Ian Rogers <irogers@google.com>
Assisted-by: Antigravity:gemini-3.1-pro
---
tools/perf/.clang-format | 1 +
1 file changed, 1 insertion(+)
diff --git a/tools/perf/.clang-format b/tools/perf/.clang-format
index e4cff363a603..7cc11f84da88 100644
--- a/tools/perf/.clang-format
+++ b/tools/perf/.clang-format
@@ -21,3 +21,4 @@ IncludeCategories:
# Your Project's Other Headers
- Regex: '^".*"'
Priority: 4
+AlignArrayOfStructures: Left
--
2.55.0.966.g6673acef38-goog
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-02 15:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-02 15:34 [PATCH v1] perf tool: Align structs in arrays in .clang-format Ian Rogers
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox