style: Make clang-tidy format files using clang-format rules (#7880)

This commit is contained in:
Ayaz Salikhov
2026-07-27 19:39:53 +01:00
committed by GitHub
parent 2db631c915
commit ff7fff2cf2
4 changed files with 12 additions and 4 deletions

View File

@@ -144,7 +144,11 @@ def main():
+ files
)
canonicalize_fix_paths(Path(fixes_dir))
applied = subprocess.run([clang_apply_replacements, fixes_dir])
# `FormatStyle` in .clang-tidy does not reach this path,
# so ask for the repository style here.
applied = subprocess.run(
[clang_apply_replacements, "--format", "--style=file", fixes_dir]
)
return result.returncode or applied.returncode