MCPcopy Create free account
hub / github.com/FEX-Emu/FEX / has_tool

Method has_tool

External/code-format-helper/code-format-helper.py:199–206  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 1

runMethod · 0.45

Tested by

no test coverage detected