MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / find_llvm_tool

Function find_llvm_tool

scripts/sanitizer-coverage-map.py:146–159  ·  view source on GitHub ↗
(name: str, cc: str)

Source from the content-addressed store, hash-verified

144
145
146def find_llvm_tool(name: str, cc: str) -> str:
147 cc_path = shutil.which(cc)
148 if cc_path:
149 cand = os.path.join(os.path.dirname(os.path.realpath(cc_path)), name)
150 if os.access(cand, os.X_OK):
151 return cand
152 p = shutil.which(name)
153 if p:
154 return p
155 if shutil.which("xcrun"):
156 res = subprocess.run(["xcrun", "--find", name], capture_output=True, text=True, check=False)
157 if res.returncode == 0:
158 return res.stdout.strip()
159 sys.exit(f"sanitizer-coverage-map: {name} not found next to {cc} or on PATH")
160
161
162def cmd_run(args) -> int:

Callers 1

cmd_runFunction · 0.85

Calls 1

runMethod · 0.45

Tested by

no test coverage detected