(root: Path)
| 76 | |
| 77 | |
| 78 | def iter_source_files(root: Path): |
| 79 | for d in SOURCE_DIRS: |
| 80 | base = root / d |
| 81 | if not base.is_dir(): |
| 82 | continue |
| 83 | for path in base.rglob("*"): |
| 84 | if not path.is_file(): |
| 85 | continue |
| 86 | if path.suffix not in SOURCE_EXTS: |
| 87 | continue |
| 88 | if path.name in SOURCE_SKIP: |
| 89 | continue |
| 90 | yield path |
| 91 | |
| 92 | |
| 93 | def run_clang_format(root: Path) -> None: |