File: cppcheck.py

package info (click to toggle)
mygui 3.4.3%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 38,792 kB
  • sloc: cpp: 133,849; ansic: 30,249; xml: 15,794; cs: 12,601; tcl: 776; python: 400; makefile: 35; sh: 4
file content (14 lines) | stat: -rwxr-xr-x 382 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env python3

# run from root sources directory: python3 Scripts/cppcheck/cppcheck.py
import os


def checkFolderSources(folder):
    os.system(
        "cppcheck -j 8 --suppressions-list=Scripts/cppcheck/suppressions.txt "
        "--enable=all --std=c++17 --quiet "
        "--project=\"" + folder + "/compile_commands.json\"")


checkFolderSources('cmake-build-debug')