cppcheck 1.3.0__py3-none-win_arm64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- cppcheck/Cppcheck/addons/__init__.py +0 -0
- cppcheck/Cppcheck/addons/cppcheck.py +41 -0
- cppcheck/Cppcheck/addons/cppcheckdata.py +1718 -0
- cppcheck/Cppcheck/addons/findcasts.py +32 -0
- cppcheck/Cppcheck/addons/misc.py +163 -0
- cppcheck/Cppcheck/addons/misra.py +4992 -0
- cppcheck/Cppcheck/addons/misra_9.py +559 -0
- cppcheck/Cppcheck/addons/naming.py +91 -0
- cppcheck/Cppcheck/addons/namingng.py +420 -0
- cppcheck/Cppcheck/addons/runaddon.py +16 -0
- cppcheck/Cppcheck/addons/threadsafety.py +350 -0
- cppcheck/Cppcheck/addons/y2038.py +241 -0
- cppcheck/Cppcheck/cfg/avr.cfg +402 -0
- cppcheck/Cppcheck/cfg/bento4.cfg +142 -0
- cppcheck/Cppcheck/cfg/boost.cfg +1284 -0
- cppcheck/Cppcheck/cfg/bsd.cfg +567 -0
- cppcheck/Cppcheck/cfg/cairo.cfg +89 -0
- cppcheck/Cppcheck/cfg/cppcheck-lib.cfg +72 -0
- cppcheck/Cppcheck/cfg/cppunit.cfg +48 -0
- cppcheck/Cppcheck/cfg/dpdk.cfg +11 -0
- cppcheck/Cppcheck/cfg/embedded_sql.cfg +4 -0
- cppcheck/Cppcheck/cfg/emscripten.cfg +108 -0
- cppcheck/Cppcheck/cfg/ginac.cfg +12848 -0
- cppcheck/Cppcheck/cfg/gnu.cfg +1699 -0
- cppcheck/Cppcheck/cfg/googletest.cfg +60 -0
- cppcheck/Cppcheck/cfg/gtk.cfg +21364 -0
- cppcheck/Cppcheck/cfg/icu.cfg +221 -0
- cppcheck/Cppcheck/cfg/kde.cfg +87 -0
- cppcheck/Cppcheck/cfg/libcerror.cfg +203 -0
- cppcheck/Cppcheck/cfg/libcurl.cfg +487 -0
- cppcheck/Cppcheck/cfg/libsigc++.cfg +36 -0
- cppcheck/Cppcheck/cfg/lua.cfg +316 -0
- cppcheck/Cppcheck/cfg/mfc.cfg +271 -0
- cppcheck/Cppcheck/cfg/microsoft_atl.cfg +40 -0
- cppcheck/Cppcheck/cfg/microsoft_sal.cfg +490 -0
- cppcheck/Cppcheck/cfg/microsoft_unittest.cfg +20 -0
- cppcheck/Cppcheck/cfg/motif.cfg +318 -0
- cppcheck/Cppcheck/cfg/nspr.cfg +38 -0
- cppcheck/Cppcheck/cfg/ntl.cfg +6907 -0
- cppcheck/Cppcheck/cfg/opencv2.cfg +132 -0
- cppcheck/Cppcheck/cfg/opengl.cfg +581 -0
- cppcheck/Cppcheck/cfg/openmp.cfg +157 -0
- cppcheck/Cppcheck/cfg/openssl.cfg +174 -0
- cppcheck/Cppcheck/cfg/pcre.cfg +165 -0
- cppcheck/Cppcheck/cfg/posix.cfg +6438 -0
- cppcheck/Cppcheck/cfg/protobuf.cfg +9 -0
- cppcheck/Cppcheck/cfg/python.cfg +674 -0
- cppcheck/Cppcheck/cfg/qt.cfg +5468 -0
- cppcheck/Cppcheck/cfg/ruby.cfg +142 -0
- cppcheck/Cppcheck/cfg/sdl.cfg +354 -0
- cppcheck/Cppcheck/cfg/selinux.cfg +3621 -0
- cppcheck/Cppcheck/cfg/sfml.cfg +301 -0
- cppcheck/Cppcheck/cfg/sqlite3.cfg +1571 -0
- cppcheck/Cppcheck/cfg/std.cfg +9143 -0
- cppcheck/Cppcheck/cfg/tinyxml2.cfg +37 -0
- cppcheck/Cppcheck/cfg/vcl.cfg +4 -0
- cppcheck/Cppcheck/cfg/windows.cfg +17181 -0
- cppcheck/Cppcheck/cfg/wxsqlite3.cfg +1955 -0
- cppcheck/Cppcheck/cfg/wxsvg.cfg +16905 -0
- cppcheck/Cppcheck/cfg/wxwidgets.cfg +17229 -0
- cppcheck/Cppcheck/cfg/zephyr.cfg +113 -0
- cppcheck/Cppcheck/cfg/zlib.cfg +1450 -0
- cppcheck/Cppcheck/copyright +674 -0
- cppcheck/Cppcheck/cppcheck.exe +0 -0
- cppcheck/Cppcheck/platforms/aix_ppc64.xml +18 -0
- cppcheck/Cppcheck/platforms/arm32-wchar_t2.xml +18 -0
- cppcheck/Cppcheck/platforms/arm32-wchar_t4.xml +18 -0
- cppcheck/Cppcheck/platforms/arm64-wchar_t2.xml +18 -0
- cppcheck/Cppcheck/platforms/arm64-wchar_t4.xml +18 -0
- cppcheck/Cppcheck/platforms/avr8.xml +18 -0
- cppcheck/Cppcheck/platforms/cray_sv1.xml +18 -0
- cppcheck/Cppcheck/platforms/elbrus-e1cp.xml +18 -0
- cppcheck/Cppcheck/platforms/mips32.xml +18 -0
- cppcheck/Cppcheck/platforms/msp430_eabi_large_datamodel.xml +18 -0
- cppcheck/Cppcheck/platforms/pic16.xml +18 -0
- cppcheck/Cppcheck/platforms/pic8-enhanced.xml +18 -0
- cppcheck/Cppcheck/platforms/pic8.xml +18 -0
- cppcheck/Cppcheck/platforms/unix32-unsigned.xml +18 -0
- cppcheck/Cppcheck/platforms/unix64-unsigned.xml +18 -0
- cppcheck/Cppcheck/vcpkg.spdx.json +110 -0
- cppcheck/Cppcheck/vcpkg_abi_info.txt +18 -0
- cppcheck/__init__.py +68 -0
- cppcheck/__main__.py +9 -0
- cppcheck/_version.py +16 -0
- cppcheck/_version.pyi +4 -0
- cppcheck/py.typed +0 -0
- cppcheck-1.3.0.dist-info/METADATA +80 -0
- cppcheck-1.3.0.dist-info/RECORD +91 -0
- cppcheck-1.3.0.dist-info/WHEEL +5 -0
- cppcheck-1.3.0.dist-info/entry_points.txt +3 -0
- cppcheck-1.3.0.dist-info/licenses/LICENSE +201 -0
|
File without changes
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
|
|
2
|
+
import cppcheckdata
|
|
3
|
+
import sys
|
|
4
|
+
import os
|
|
5
|
+
|
|
6
|
+
__checkers__ = []
|
|
7
|
+
|
|
8
|
+
def checker(f):
|
|
9
|
+
__checkers__.append(f)
|
|
10
|
+
return f
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
__errorid__ = ''
|
|
14
|
+
__addon_name__ = ''
|
|
15
|
+
def reportError(location, severity, message, errorId=None):
|
|
16
|
+
cppcheckdata.reportError(location, severity, message, __addon_name__, errorId or __errorid__)
|
|
17
|
+
|
|
18
|
+
def runcheckers():
|
|
19
|
+
# If there are no checkers then don't run
|
|
20
|
+
if len(__checkers__) == 0:
|
|
21
|
+
return
|
|
22
|
+
global __addon_name__
|
|
23
|
+
global __errorid__
|
|
24
|
+
addon = sys.argv[0]
|
|
25
|
+
parser = cppcheckdata.ArgumentParser()
|
|
26
|
+
args = parser.parse_args()
|
|
27
|
+
|
|
28
|
+
__addon_name__ = os.path.splitext(os.path.basename(addon))[0]
|
|
29
|
+
|
|
30
|
+
for dumpfile in args.dumpfile:
|
|
31
|
+
if not args.quiet:
|
|
32
|
+
print('Checking %s...' % dumpfile)
|
|
33
|
+
|
|
34
|
+
data = cppcheckdata.CppcheckData(dumpfile)
|
|
35
|
+
|
|
36
|
+
for cfg in data.iterconfigurations():
|
|
37
|
+
if not args.quiet:
|
|
38
|
+
print('Checking %s, config %s...' % (dumpfile, cfg.name))
|
|
39
|
+
for c in __checkers__:
|
|
40
|
+
__errorid__ = c.__name__
|
|
41
|
+
c(cfg, data)
|