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>
17 lines
387 B
Python
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())
|