Skip to content

Prefer clang-format-19 in run-format.sh - #2582

Open
kbrunham-intel wants to merge 1 commit into
chipsalliance:masterfrom
kbrunham-intel:fix/2580
Open

Prefer clang-format-19 in run-format.sh#2582
kbrunham-intel wants to merge 1 commit into
chipsalliance:masterfrom
kbrunham-intel:fix/2580

Conversation

@kbrunham-intel

@kbrunham-intel kbrunham-intel commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Ran .github/bin/run-format.sh on current master with clang-format-19 (the version CI installs). No *.h/*.cc files changed; the tree is already clean for CI.
  • The rewrites reported in run-format.sh rewrites files; the repo should already be fully formatted #2580 came from the script falling back to clang-format-17, which disagrees with 19 on eight files.
  • Prefer clang-format-19 (then 18, 17, unversioned) so a local run-format.sh matches CI and is a no-op on master.

Fixes #2580

Test plan

  • CLANG_FORMAT=clang-format-19 .github/bin/run-format.sh leaves the tree unchanged
  • Unset CLANG_FORMAT now selects clang-format-19 and leaves the tree unchanged
  • CLANG_FORMAT=clang-format-17 .github/bin/run-format.sh still rewrites the eight files from run-format.sh rewrites files; the repo should already be fully formatted #2580 (not included in this PR; those diffs would fail CI)
  • CI on this PR is green

CI formats with clang-format-19. The script used to fall back to
clang-format-17, which rewrote files that were already clean on
master (issue chipsalliance#2580).
@kbrunham-intel
kbrunham-intel marked this pull request as ready for review August 18, 2026 01:41
@kbrunham-intel

Copy link
Copy Markdown
Contributor Author

Hi @hzeller. Please consider this change. It helps developers (like me) run the run-format.sh script and not see unneeded changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

run-format.sh rewrites files; the repo should already be fully formatted

1 participant