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>
This commit is contained in:
16
cppcheck/cppcheck/__init__.py
Normal file
16
cppcheck/cppcheck/__init__.py
Normal file
@@ -0,0 +1,16 @@
|
||||
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())
|
||||
Reference in New Issue
Block a user