(self)
| 197 | return "git-clang-format-19" |
| 198 | |
| 199 | def has_tool(self) -> bool: |
| 200 | cmd = [self.clang_fmt_path, "-h"] |
| 201 | proc = None |
| 202 | try: |
| 203 | proc = subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE) |
| 204 | except: |
| 205 | return False |
| 206 | return proc.returncode == 0 |
| 207 | |
| 208 | def format_run(self, changed_files: List[str], args: FormatArgs) -> Optional[str]: |
| 209 | cpp_files = self.filter_changed_files(changed_files) |