Files
dependencies/cppcheck/cppcheck/__init__.py
Adeeb Shihadeh f117a0e60d add cppcheck package (#10)
Cppcheck 2.19.1 static analysis tool, built from source. Includes
the MISRA C addon, cfg files, and platform definitions for opendbc
and panda safety analysis.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-23 10:18:33 -08:00

17 lines
387 B
Python

import os
import sys
DIR = os.path.join(os.path.dirname(__file__), "install")
def _run():
binary = os.path.join(DIR, "cppcheck")
os.execvp(binary, ["cppcheck"] + sys.argv[1:])
def smoketest():
import subprocess
binary = os.path.join(DIR, "cppcheck")
result = subprocess.run([binary, "--version"], capture_output=True, text=True, check=True)
print(result.stdout.strip())