Skip to contentSkip to conversation

perf tool: Align structs in arrays in .clang-format

PATCH New Ian Rogers 2 participants 2 messages Sep 2 perf events

lore
Share & tools
lore

Ian Rogers

author reviewer
#0 lore raw

PATCH 1/1 perf tool: Align structs in arrays in .clang-format

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.

Assisted-by Antigravity:gemini-3.1-pro
---
 tools/perf/.clang-format | 1 +
 1 file changed, 1 insertion(+)
tools/perf/.clang-format +1 -0
index e4cff363a603..7cc11f84da88 100644
@@ -21,3 +21,4 @@ IncludeCategories:
   # Your Project's Other Headers
   - Regex:           '^".*"'
     Priority:        4
+AlignArrayOfStructures: Left
Signature · 1 line
2.55.0.966.g6673acef38-goog
#1 lore raw
Sashiko has reviewed this patch and found no issues. It looks great!
Quoted 5 lines

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.

Sashiko has reviewed this patch and found no issues. It looks great!

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1