Skip to main content

Simplify and wrap the use of clang-tidy and coccinelle

Project description


A Security/Safety Checker for C/C++ based on Clang-Tidy and Coccinelle.


pip install schecker

import sys
import schecker

paths = [ './path/to/your/c/project' ]
excludes = [ './path/to/your/c/project/third-party' ]
scripts = ['schecker/tests/cocci-scripts/']

schecker = schecker.Schecker(paths, excludes=excludes)

# now start the actual test, this may take some time


Schecker depends on clang-tidy and coccinelle, though it is possible to disable the modules seperatly. E.g. you don't need coccinelle: Schecker(..., modules_disabled=['coccinelle'])

sudo aptitude install clang-tidy coccinelle



Getting Comfy with Coccinelle

Defect Spotting with Coccinelle

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for schecker, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size schecker-0.2.0-py2.py3-none-any.whl (5.9 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size schecker-0.2.0.tar.gz (4.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page