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.
Files changed (91) hide show
  1. cppcheck/Cppcheck/addons/__init__.py +0 -0
  2. cppcheck/Cppcheck/addons/cppcheck.py +41 -0
  3. cppcheck/Cppcheck/addons/cppcheckdata.py +1718 -0
  4. cppcheck/Cppcheck/addons/findcasts.py +32 -0
  5. cppcheck/Cppcheck/addons/misc.py +163 -0
  6. cppcheck/Cppcheck/addons/misra.py +4992 -0
  7. cppcheck/Cppcheck/addons/misra_9.py +559 -0
  8. cppcheck/Cppcheck/addons/naming.py +91 -0
  9. cppcheck/Cppcheck/addons/namingng.py +420 -0
  10. cppcheck/Cppcheck/addons/runaddon.py +16 -0
  11. cppcheck/Cppcheck/addons/threadsafety.py +350 -0
  12. cppcheck/Cppcheck/addons/y2038.py +241 -0
  13. cppcheck/Cppcheck/cfg/avr.cfg +402 -0
  14. cppcheck/Cppcheck/cfg/bento4.cfg +142 -0
  15. cppcheck/Cppcheck/cfg/boost.cfg +1284 -0
  16. cppcheck/Cppcheck/cfg/bsd.cfg +567 -0
  17. cppcheck/Cppcheck/cfg/cairo.cfg +89 -0
  18. cppcheck/Cppcheck/cfg/cppcheck-lib.cfg +72 -0
  19. cppcheck/Cppcheck/cfg/cppunit.cfg +48 -0
  20. cppcheck/Cppcheck/cfg/dpdk.cfg +11 -0
  21. cppcheck/Cppcheck/cfg/embedded_sql.cfg +4 -0
  22. cppcheck/Cppcheck/cfg/emscripten.cfg +108 -0
  23. cppcheck/Cppcheck/cfg/ginac.cfg +12848 -0
  24. cppcheck/Cppcheck/cfg/gnu.cfg +1699 -0
  25. cppcheck/Cppcheck/cfg/googletest.cfg +60 -0
  26. cppcheck/Cppcheck/cfg/gtk.cfg +21364 -0
  27. cppcheck/Cppcheck/cfg/icu.cfg +221 -0
  28. cppcheck/Cppcheck/cfg/kde.cfg +87 -0
  29. cppcheck/Cppcheck/cfg/libcerror.cfg +203 -0
  30. cppcheck/Cppcheck/cfg/libcurl.cfg +487 -0
  31. cppcheck/Cppcheck/cfg/libsigc++.cfg +36 -0
  32. cppcheck/Cppcheck/cfg/lua.cfg +316 -0
  33. cppcheck/Cppcheck/cfg/mfc.cfg +271 -0
  34. cppcheck/Cppcheck/cfg/microsoft_atl.cfg +40 -0
  35. cppcheck/Cppcheck/cfg/microsoft_sal.cfg +490 -0
  36. cppcheck/Cppcheck/cfg/microsoft_unittest.cfg +20 -0
  37. cppcheck/Cppcheck/cfg/motif.cfg +318 -0
  38. cppcheck/Cppcheck/cfg/nspr.cfg +38 -0
  39. cppcheck/Cppcheck/cfg/ntl.cfg +6907 -0
  40. cppcheck/Cppcheck/cfg/opencv2.cfg +132 -0
  41. cppcheck/Cppcheck/cfg/opengl.cfg +581 -0
  42. cppcheck/Cppcheck/cfg/openmp.cfg +157 -0
  43. cppcheck/Cppcheck/cfg/openssl.cfg +174 -0
  44. cppcheck/Cppcheck/cfg/pcre.cfg +165 -0
  45. cppcheck/Cppcheck/cfg/posix.cfg +6438 -0
  46. cppcheck/Cppcheck/cfg/protobuf.cfg +9 -0
  47. cppcheck/Cppcheck/cfg/python.cfg +674 -0
  48. cppcheck/Cppcheck/cfg/qt.cfg +5468 -0
  49. cppcheck/Cppcheck/cfg/ruby.cfg +142 -0
  50. cppcheck/Cppcheck/cfg/sdl.cfg +354 -0
  51. cppcheck/Cppcheck/cfg/selinux.cfg +3621 -0
  52. cppcheck/Cppcheck/cfg/sfml.cfg +301 -0
  53. cppcheck/Cppcheck/cfg/sqlite3.cfg +1571 -0
  54. cppcheck/Cppcheck/cfg/std.cfg +9143 -0
  55. cppcheck/Cppcheck/cfg/tinyxml2.cfg +37 -0
  56. cppcheck/Cppcheck/cfg/vcl.cfg +4 -0
  57. cppcheck/Cppcheck/cfg/windows.cfg +17181 -0
  58. cppcheck/Cppcheck/cfg/wxsqlite3.cfg +1955 -0
  59. cppcheck/Cppcheck/cfg/wxsvg.cfg +16905 -0
  60. cppcheck/Cppcheck/cfg/wxwidgets.cfg +17229 -0
  61. cppcheck/Cppcheck/cfg/zephyr.cfg +113 -0
  62. cppcheck/Cppcheck/cfg/zlib.cfg +1450 -0
  63. cppcheck/Cppcheck/copyright +674 -0
  64. cppcheck/Cppcheck/cppcheck.exe +0 -0
  65. cppcheck/Cppcheck/platforms/aix_ppc64.xml +18 -0
  66. cppcheck/Cppcheck/platforms/arm32-wchar_t2.xml +18 -0
  67. cppcheck/Cppcheck/platforms/arm32-wchar_t4.xml +18 -0
  68. cppcheck/Cppcheck/platforms/arm64-wchar_t2.xml +18 -0
  69. cppcheck/Cppcheck/platforms/arm64-wchar_t4.xml +18 -0
  70. cppcheck/Cppcheck/platforms/avr8.xml +18 -0
  71. cppcheck/Cppcheck/platforms/cray_sv1.xml +18 -0
  72. cppcheck/Cppcheck/platforms/elbrus-e1cp.xml +18 -0
  73. cppcheck/Cppcheck/platforms/mips32.xml +18 -0
  74. cppcheck/Cppcheck/platforms/msp430_eabi_large_datamodel.xml +18 -0
  75. cppcheck/Cppcheck/platforms/pic16.xml +18 -0
  76. cppcheck/Cppcheck/platforms/pic8-enhanced.xml +18 -0
  77. cppcheck/Cppcheck/platforms/pic8.xml +18 -0
  78. cppcheck/Cppcheck/platforms/unix32-unsigned.xml +18 -0
  79. cppcheck/Cppcheck/platforms/unix64-unsigned.xml +18 -0
  80. cppcheck/Cppcheck/vcpkg.spdx.json +110 -0
  81. cppcheck/Cppcheck/vcpkg_abi_info.txt +18 -0
  82. cppcheck/__init__.py +68 -0
  83. cppcheck/__main__.py +9 -0
  84. cppcheck/_version.py +16 -0
  85. cppcheck/_version.pyi +4 -0
  86. cppcheck/py.typed +0 -0
  87. cppcheck-1.3.0.dist-info/METADATA +80 -0
  88. cppcheck-1.3.0.dist-info/RECORD +91 -0
  89. cppcheck-1.3.0.dist-info/WHEEL +5 -0
  90. cppcheck-1.3.0.dist-info/entry_points.txt +3 -0
  91. cppcheck-1.3.0.dist-info/licenses/LICENSE +201 -0
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0"?>
2
+ <platform>
3
+ <char_bit>8</char_bit>
4
+ <default-sign>unsigned</default-sign>
5
+ <sizeof>
6
+ <bool>1</bool>
7
+ <short>2</short>
8
+ <int>4</int>
9
+ <long>8</long>
10
+ <long-long>8</long-long>
11
+ <float>4</float>
12
+ <double>8</double>
13
+ <long-double>8</long-double>
14
+ <pointer>8</pointer>
15
+ <size_t>8</size_t>
16
+ <wchar_t>2</wchar_t>
17
+ </sizeof>
18
+ </platform>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0"?>
2
+ <platform>
3
+ <char_bit>8</char_bit>
4
+ <default-sign>unsigned</default-sign>
5
+ <sizeof>
6
+ <bool>1</bool>
7
+ <short>2</short>
8
+ <int>4</int>
9
+ <long>4</long>
10
+ <long-long>8</long-long>
11
+ <float>4</float>
12
+ <double>8</double>
13
+ <long-double>8</long-double>
14
+ <pointer>4</pointer>
15
+ <size_t>4</size_t>
16
+ <wchar_t>2</wchar_t>
17
+ </sizeof>
18
+ </platform>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0"?>
2
+ <platform>
3
+ <char_bit>8</char_bit>
4
+ <default-sign>unsigned</default-sign>
5
+ <sizeof>
6
+ <bool>1</bool>
7
+ <short>2</short>
8
+ <int>4</int>
9
+ <long>4</long>
10
+ <long-long>8</long-long>
11
+ <float>4</float>
12
+ <double>8</double>
13
+ <long-double>8</long-double>
14
+ <pointer>4</pointer>
15
+ <size_t>4</size_t>
16
+ <wchar_t>4</wchar_t>
17
+ </sizeof>
18
+ </platform>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0"?>
2
+ <platform>
3
+ <char_bit>8</char_bit>
4
+ <default-sign>unsigned</default-sign>
5
+ <sizeof>
6
+ <bool>1</bool>
7
+ <short>2</short>
8
+ <int>4</int>
9
+ <long>4</long>
10
+ <long-long>8</long-long>
11
+ <float>4</float>
12
+ <double>8</double>
13
+ <long-double>8</long-double>
14
+ <pointer>8</pointer>
15
+ <size_t>4</size_t>
16
+ <wchar_t>2</wchar_t>
17
+ </sizeof>
18
+ </platform>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0"?>
2
+ <platform>
3
+ <char_bit>8</char_bit>
4
+ <default-sign>unsigned</default-sign>
5
+ <sizeof>
6
+ <bool>1</bool>
7
+ <short>2</short>
8
+ <int>4</int>
9
+ <long>4</long>
10
+ <long-long>8</long-long>
11
+ <float>4</float>
12
+ <double>8</double>
13
+ <long-double>8</long-double>
14
+ <pointer>8</pointer>
15
+ <size_t>4</size_t>
16
+ <wchar_t>4</wchar_t>
17
+ </sizeof>
18
+ </platform>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0"?>
2
+ <platform>
3
+ <char_bit>8</char_bit>
4
+ <default-sign>unsigned</default-sign>
5
+ <sizeof>
6
+ <bool>1</bool>
7
+ <short>2</short>
8
+ <int>2</int>
9
+ <long>4</long>
10
+ <long-long>8</long-long>
11
+ <float>4</float>
12
+ <double>4</double>
13
+ <long-double>4</long-double>
14
+ <pointer>2</pointer>
15
+ <size_t>2</size_t>
16
+ <wchar_t>2</wchar_t>
17
+ </sizeof>
18
+ </platform>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0"?>
2
+ <platform>
3
+ <char_bit>8</char_bit>
4
+ <default-sign>unsigned</default-sign>
5
+ <sizeof>
6
+ <bool>1</bool>
7
+ <short>2</short>
8
+ <int>8</int>
9
+ <long>8</long>
10
+ <long-long>8</long-long>
11
+ <float>8</float>
12
+ <double>8</double>
13
+ <long-double>16</long-double>
14
+ <pointer>8</pointer>
15
+ <size_t>8</size_t>
16
+ <wchar_t>8</wchar_t>
17
+ </sizeof>
18
+ </platform>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0"?>
2
+ <platform>
3
+ <char_bit>8</char_bit>
4
+ <default-sign>unsigned</default-sign>
5
+ <sizeof>
6
+ <bool>1</bool>
7
+ <short>2</short>
8
+ <int>4</int>
9
+ <long>8</long>
10
+ <long-long>8</long-long>
11
+ <float>4</float>
12
+ <double>8</double>
13
+ <long-double>16</long-double>
14
+ <pointer>8</pointer>
15
+ <size_t>8</size_t>
16
+ <wchar_t>4</wchar_t>
17
+ </sizeof>
18
+ </platform>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0"?>
2
+ <platform>
3
+ <char_bit>8</char_bit>
4
+ <default-sign>signed</default-sign>
5
+ <sizeof>
6
+ <bool>1</bool>
7
+ <short>2</short>
8
+ <int>4</int>
9
+ <long>4</long>
10
+ <long-long>8</long-long>
11
+ <float>4</float>
12
+ <double>8</double>
13
+ <long-double>8</long-double>
14
+ <pointer>4</pointer>
15
+ <size_t>4</size_t>
16
+ <wchar_t>4</wchar_t>
17
+ </sizeof>
18
+ </platform>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0"?>
2
+ <platform>
3
+ <char_bit>8</char_bit>
4
+ <default-sign>signed</default-sign>
5
+ <sizeof>
6
+ <bool>1</bool>
7
+ <short>2</short>
8
+ <int>2</int>
9
+ <long>4</long>
10
+ <long-long>8</long-long>
11
+ <float>4</float>
12
+ <double>8</double>
13
+ <long-double>8</long-double>
14
+ <pointer>4</pointer>
15
+ <size_t>4</size_t>
16
+ <wchar_t>2</wchar_t>
17
+ </sizeof>
18
+ </platform>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0"?>
2
+ <platform>
3
+ <char_bit>8</char_bit>
4
+ <default-sign>unsigned</default-sign>
5
+ <sizeof>
6
+ <bool>1</bool>
7
+ <short>2</short>
8
+ <int>2</int>
9
+ <long>4</long>
10
+ <long-long>8</long-long>
11
+ <float>4</float>
12
+ <double>4</double>
13
+ <long-double>8</long-double>
14
+ <pointer>2</pointer>
15
+ <size_t>2</size_t>
16
+ <wchar_t>2</wchar_t>
17
+ </sizeof>
18
+ </platform>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0"?>
2
+ <platform>
3
+ <char_bit>8</char_bit>
4
+ <default-sign>unsigned</default-sign>
5
+ <sizeof>
6
+ <bool>1</bool>
7
+ <short>2</short>
8
+ <int>2</int>
9
+ <long>4</long>
10
+ <long-long>8</long-long>
11
+ <float>4</float>
12
+ <double>4</double>
13
+ <long-double>4</long-double>
14
+ <pointer>2</pointer>
15
+ <size_t>2</size_t>
16
+ <wchar_t>2</wchar_t>
17
+ </sizeof>
18
+ </platform>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0"?>
2
+ <platform>
3
+ <char_bit>8</char_bit>
4
+ <default-sign>unsigned</default-sign>
5
+ <sizeof>
6
+ <bool>1</bool>
7
+ <short>2</short>
8
+ <int>2</int>
9
+ <long>4</long>
10
+ <long-long>4</long-long>
11
+ <float>4</float>
12
+ <double>4</double>
13
+ <long-double>4</long-double>
14
+ <pointer>2</pointer>
15
+ <size_t>2</size_t>
16
+ <wchar_t>2</wchar_t>
17
+ </sizeof>
18
+ </platform>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0"?>
2
+ <platform>
3
+ <char_bit>8</char_bit>
4
+ <default-sign>unsigned</default-sign>
5
+ <sizeof>
6
+ <bool>1</bool>
7
+ <short>2</short>
8
+ <int>4</int>
9
+ <long>4</long>
10
+ <long-long>8</long-long>
11
+ <float>4</float>
12
+ <double>8</double>
13
+ <long-double>12</long-double>
14
+ <pointer>4</pointer>
15
+ <size_t>4</size_t>
16
+ <wchar_t>2</wchar_t>
17
+ </sizeof>
18
+ </platform>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0"?>
2
+ <platform>
3
+ <char_bit>8</char_bit>
4
+ <default-sign>unsigned</default-sign>
5
+ <sizeof>
6
+ <bool>1</bool>
7
+ <short>2</short>
8
+ <int>4</int>
9
+ <long>8</long>
10
+ <long-long>8</long-long>
11
+ <float>4</float>
12
+ <double>8</double>
13
+ <long-double>16</long-double>
14
+ <pointer>8</pointer>
15
+ <size_t>8</size_t>
16
+ <wchar_t>4</wchar_t>
17
+ </sizeof>
18
+ </platform>
@@ -0,0 +1,110 @@
1
+ {
2
+ "$schema": "https://raw.githubusercontent.com/spdx/spdx-spec/v2.2.1/schemas/spdx-schema.json",
3
+ "spdxVersion": "SPDX-2.2",
4
+ "dataLicense": "CC0-1.0",
5
+ "SPDXID": "SPDXRef-DOCUMENT",
6
+ "documentNamespace": "https://spdx.org/spdxdocs/cppcheck-arm64-windows-2.16.0-ee18dcd9-facd-410c-beb9-b1093c639dc9",
7
+ "name": "cppcheck:arm64-windows@2.16.0 f0f9204e3fb4396d1d88ab095a0609802665b8a2c3557dd1ec7cd52bacc2fbc1",
8
+ "creationInfo": {
9
+ "creators": [
10
+ "Tool: vcpkg-2024-09-30-ab8988503c7cffabfd440b243a383c0a352a023d"
11
+ ],
12
+ "created": "2024-11-23T07:33:50Z"
13
+ },
14
+ "relationships": [
15
+ {
16
+ "spdxElementId": "SPDXRef-port",
17
+ "relationshipType": "GENERATES",
18
+ "relatedSpdxElement": "SPDXRef-binary"
19
+ },
20
+ {
21
+ "spdxElementId": "SPDXRef-port",
22
+ "relationshipType": "CONTAINS",
23
+ "relatedSpdxElement": "SPDXRef-file-0"
24
+ },
25
+ {
26
+ "spdxElementId": "SPDXRef-port",
27
+ "relationshipType": "CONTAINS",
28
+ "relatedSpdxElement": "SPDXRef-file-1"
29
+ },
30
+ {
31
+ "spdxElementId": "SPDXRef-binary",
32
+ "relationshipType": "GENERATED_FROM",
33
+ "relatedSpdxElement": "SPDXRef-port"
34
+ },
35
+ {
36
+ "spdxElementId": "SPDXRef-file-0",
37
+ "relationshipType": "CONTAINED_BY",
38
+ "relatedSpdxElement": "SPDXRef-port"
39
+ },
40
+ {
41
+ "spdxElementId": "SPDXRef-file-1",
42
+ "relationshipType": "CONTAINED_BY",
43
+ "relatedSpdxElement": "SPDXRef-port"
44
+ }
45
+ ],
46
+ "packages": [
47
+ {
48
+ "name": "cppcheck",
49
+ "SPDXID": "SPDXRef-port",
50
+ "versionInfo": "2.16.0",
51
+ "downloadLocation": "NOASSERTION",
52
+ "homepage": "https://github.com/danmar/cppcheck",
53
+ "licenseConcluded": "GPL-3.0",
54
+ "licenseDeclared": "NOASSERTION",
55
+ "copyrightText": "NOASSERTION",
56
+ "description": "static analysis of C/C++ code",
57
+ "comment": "This is the port (recipe) consumed by vcpkg."
58
+ },
59
+ {
60
+ "name": "cppcheck:arm64-windows",
61
+ "SPDXID": "SPDXRef-binary",
62
+ "versionInfo": "f0f9204e3fb4396d1d88ab095a0609802665b8a2c3557dd1ec7cd52bacc2fbc1",
63
+ "downloadLocation": "NONE",
64
+ "licenseConcluded": "GPL-3.0",
65
+ "licenseDeclared": "NOASSERTION",
66
+ "copyrightText": "NOASSERTION",
67
+ "comment": "This is a binary package built by vcpkg."
68
+ },
69
+ {
70
+ "SPDXID": "SPDXRef-resource-1",
71
+ "name": "danmar/cppcheck",
72
+ "downloadLocation": "git+https://github.com/danmar/cppcheck@2.16.0",
73
+ "licenseConcluded": "NOASSERTION",
74
+ "licenseDeclared": "NOASSERTION",
75
+ "copyrightText": "NOASSERTION",
76
+ "checksums": [
77
+ {
78
+ "algorithm": "SHA512",
79
+ "checksumValue": "b224d4d62be1802c322f57a0674a01caecf3d034d36396d8375c302a518a6d5f0ca9160a2a94eaa33b498ff0bbd092785f0489abef30de8af446b5d381f44922"
80
+ }
81
+ ]
82
+ }
83
+ ],
84
+ "files": [
85
+ {
86
+ "fileName": "./D:/a/cppcheck-wheel/cppcheck-wheel/cmake/vcpkg/ports/cppcheck/portfile.cmake",
87
+ "SPDXID": "SPDXRef-file-0",
88
+ "checksums": [
89
+ {
90
+ "algorithm": "SHA256",
91
+ "checksumValue": "b6e2672881b539c0f8b9391456e2bf5a7c6e65c0fd619ef33025dd4d20af3ab7"
92
+ }
93
+ ],
94
+ "licenseConcluded": "NOASSERTION",
95
+ "copyrightText": "NOASSERTION"
96
+ },
97
+ {
98
+ "fileName": "./D:/a/cppcheck-wheel/cppcheck-wheel/cmake/vcpkg/ports/cppcheck/vcpkg.json",
99
+ "SPDXID": "SPDXRef-file-1",
100
+ "checksums": [
101
+ {
102
+ "algorithm": "SHA256",
103
+ "checksumValue": "9801ec80e7a6f79ef968214914cfb172477e1a8c19e468c23f698130d18a4fee"
104
+ }
105
+ ],
106
+ "licenseConcluded": "NOASSERTION",
107
+ "copyrightText": "NOASSERTION"
108
+ }
109
+ ]
110
+ }
@@ -0,0 +1,18 @@
1
+ cmake 3.31.0
2
+ features core;have-rules
3
+ portfile.cmake b6e2672881b539c0f8b9391456e2bf5a7c6e65c0fd619ef33025dd4d20af3ab7
4
+ ports.cmake 29408d9eb54a80d52080562507df3106ee8e6ba0795b8580d3e5a1a59e163444
5
+ post_build_checks 2
6
+ powershell 7.4.6
7
+ triplet arm64-windows
8
+ triplet_abi c09ec72a5edf0ffd790946be353f1dcdcc5c21e112250fde92567537a922e574-0433e2303d8e9448dd9cf29d3052811cb89f6324bfd45703cfd4ec1e4134228d-5b1c99cec3e000a7b0ff956c50dc29c2b3282766
9
+ vcpkg-cmake 5cde36464d5adb113b639c0ac045311fb6d9c54e1a4d0c7922b8dd1e466cf03a
10
+ vcpkg-cmake-config af2a12ce19c9166e410204501b54eef1ce82542a9e116e87e71bdae920ebbda1
11
+ vcpkg.json 9801ec80e7a6f79ef968214914cfb172477e1a8c19e468c23f698130d18a4fee
12
+ vcpkg_check_features 943b217e0968d64cf2cb9c272608e6a0b497377e792034f819809a79e1502c2b
13
+ vcpkg_copy_pdbs d57e4f196c82dc562a9968c6155073094513c31e2de475694143d3aa47954b1c
14
+ vcpkg_copy_tools 3d45ff761bddbabe8923b52330168dc3abd295fa469d3f2e47cb14dce85332d5
15
+ vcpkg_from_git 96ed81968f76354c00096dd8cd4e63c6a235fa969334a11ab18d11c0c512ff58
16
+ vcpkg_from_github b743742296a114ea1b18ae99672e02f142c4eb2bef7f57d36c038bedbfb0502f
17
+ vcpkg_install_copyright ba6c169ab4e59fa05682e530cdeb883767de22c8391f023d4e6844a7ec5dd3d2
18
+ vcpkg_replace_string b450deb79207478b37119743e00808ebc42de0628e7b98c14ab24728bd5c78b8
cppcheck/__init__.py ADDED
@@ -0,0 +1,68 @@
1
+ """
2
+ Copyright (c) 2024 msclock. All rights reserved.
3
+
4
+ cppcheck-wheel: Package cppcheck as a python wheel.
5
+ """
6
+
7
+
8
+ from __future__ import annotations
9
+
10
+ import argparse
11
+ import functools
12
+ import os
13
+ import subprocess
14
+ import sys
15
+ from pathlib import Path
16
+ from typing import Iterable
17
+
18
+ from importlib_metadata import distribution
19
+
20
+ from ._version import version as __version__
21
+
22
+ __all__ = ["__version__", "cppcheck"]
23
+
24
+
25
+ @functools.lru_cache(maxsize=None)
26
+ def _get_cppcheck() -> Path:
27
+ package_files = distribution(__package__).files
28
+ assert package_files is not None, f"There must exist {__package__} files"
29
+ for file in package_files:
30
+ if str(file).startswith(f"{__package__}/Cppcheck"):
31
+ resolved_file = Path(str(file.locate())).resolve(strict=True)
32
+ cppcheck_path = resolved_file.parents[1]
33
+ if cppcheck_path.exists():
34
+ return cppcheck_path
35
+ raise FileNotFoundError("No found for Cppcheck in package " + __package__)
36
+
37
+
38
+ def _program(name: str, args: Iterable[str]) -> int:
39
+ return subprocess.call([_get_cppcheck() / name, *args], close_fds=False)
40
+
41
+
42
+ def _program_exit(name: str, *args: str) -> None:
43
+ if sys.platform.startswith("win"):
44
+ raise SystemExit(_program(name, args))
45
+ cppcheck_exe = _get_cppcheck() / name
46
+ os.execl(cppcheck_exe, cppcheck_exe, *args)
47
+
48
+
49
+ def cppcheck() -> None:
50
+ """Cppcheck entry"""
51
+ parser = argparse.ArgumentParser(add_help=False)
52
+ parser.add_argument(
53
+ "--version",
54
+ action="store_true",
55
+ help="Show the current version of cppcheck-wheel",
56
+ )
57
+ args, _ = parser.parse_known_args()
58
+ if args.version:
59
+ result = subprocess.run(
60
+ [_get_cppcheck() / "cppcheck", "--version"],
61
+ capture_output=True,
62
+ text=True,
63
+ check=False,
64
+ )
65
+ cppcheck_version_out = result.stdout.rstrip()
66
+ sys.stdout.write(f"{cppcheck_version_out} from cppcheck-wheel {__version__}\n")
67
+ else:
68
+ _program_exit("cppcheck", *sys.argv[1:])
cppcheck/__main__.py ADDED
@@ -0,0 +1,9 @@
1
+ """
2
+ Use "python -m cppcheck" to make the package executable.
3
+ """
4
+ from __future__ import annotations
5
+
6
+ from cppcheck import cppcheck
7
+
8
+ if __name__ == "__main__":
9
+ cppcheck()
cppcheck/_version.py ADDED
@@ -0,0 +1,16 @@
1
+ # file generated by setuptools_scm
2
+ # don't change, don't track in version control
3
+ TYPE_CHECKING = False
4
+ if TYPE_CHECKING:
5
+ from typing import Tuple, Union
6
+ VERSION_TUPLE = Tuple[Union[int, str], ...]
7
+ else:
8
+ VERSION_TUPLE = object
9
+
10
+ version: str
11
+ __version__: str
12
+ __version_tuple__: VERSION_TUPLE
13
+ version_tuple: VERSION_TUPLE
14
+
15
+ __version__ = version = '1.3.0'
16
+ __version_tuple__ = version_tuple = (1, 3, 0)
cppcheck/_version.pyi ADDED
@@ -0,0 +1,4 @@
1
+ from __future__ import annotations
2
+
3
+ version: str
4
+ version_tuple: tuple[int, int, int] | tuple[int, int, int, str, str]
cppcheck/py.typed ADDED
File without changes
@@ -0,0 +1,80 @@
1
+ Metadata-Version: 2.1
2
+ Name: cppcheck
3
+ Version: 1.3.0
4
+ Summary: Package cppcheck as a python wheel.
5
+ Author-Email: msclock <msclock@126.com>
6
+ License: Apache-2.0
7
+ Classifier: Intended Audience :: Science/Research
8
+ Classifier: Intended Audience :: Developers
9
+ Classifier: License :: OSI Approved :: Apache Software License
10
+ Classifier: Operating System :: OS Independent
11
+ Classifier: Programming Language :: Python
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: Programming Language :: Python :: 3 :: Only
14
+ Classifier: Programming Language :: Python :: 3.7
15
+ Classifier: Programming Language :: Python :: 3.8
16
+ Classifier: Programming Language :: Python :: 3.9
17
+ Classifier: Programming Language :: Python :: 3.10
18
+ Classifier: Programming Language :: Python :: 3.11
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Programming Language :: Python :: 3.13
21
+ Classifier: Topic :: Scientific/Engineering
22
+ Classifier: Typing :: Typed
23
+ Project-URL: Homepage, https://github.com/serious-scaffold/cppcheck-wheel
24
+ Project-URL: Bug tracker, https://github.com/serious-scaffold/cppcheck-wheel/issues
25
+ Project-URL: Discussions, https://github.com/serious-scaffold/cppcheck-wheel/discussions
26
+ Project-URL: Changelog, https://github.com/serious-scaffold/cppcheck-wheel/releases
27
+ Requires-Python: >=3.7
28
+ Requires-Dist: typing-extensions>=3.10.0; python_version < "3.9"
29
+ Requires-Dist: importlib_metadata>=1.4
30
+ Requires-Dist: pytest>=6; extra == "test"
31
+ Requires-Dist: pytest-cov>=3; extra == "test"
32
+ Requires-Dist: pytest>=6; extra == "dev"
33
+ Requires-Dist: pytest-cov>=3; extra == "dev"
34
+ Requires-Dist: sphinx>=7.0; extra == "docs"
35
+ Requires-Dist: myst_parser>=0.13; extra == "docs"
36
+ Requires-Dist: sphinx_copybutton; extra == "docs"
37
+ Requires-Dist: sphinx_autodoc_typehints; extra == "docs"
38
+ Requires-Dist: furo>=2023.08.17; extra == "docs"
39
+ Provides-Extra: test
40
+ Provides-Extra: dev
41
+ Provides-Extra: docs
42
+ Description-Content-Type: text/markdown
43
+
44
+ # Cppcheck Wheel
45
+
46
+ <!-- SPHINX-START -->
47
+
48
+ Package cppcheck as a python wheel.
49
+
50
+ [![Documentation](https://img.shields.io/badge/Documentation-sphinx-blue)](https://msclock.github.io/cppcheck-wheel)
51
+ [![License](https://img.shields.io/github/license/msclock/cppcheck-wheel)](https://github.com/msclock/cppcheck-wheel/blob/master/LICENSE)
52
+ [![SS Cpp](https://img.shields.io/badge/Serious%20Scaffold-pybind11-blue)](https://github.com/serious-scaffold/ss-pybind11)
53
+
54
+ [![CI](https://github.com/msclock/cppcheck-wheel/actions/workflows/ci.yml/badge.svg)](https://github.com/msclock/cppcheck-wheel/actions/workflows/ci.yml)
55
+ [![CD](https://github.com/msclock/cppcheck-wheel/actions/workflows/cd.yml/badge.svg)](https://github.com/msclock/cppcheck-wheel/actions/workflows/cd.yml)
56
+ [![Renovate](https://github.com/msclock/cppcheck-wheel/actions/workflows/renovate.yml/badge.svg)](https://github.com/msclock/cppcheck-wheel/actions/workflows/renovate.yml)
57
+ [![Semantic Release](https://github.com/msclock/cppcheck-wheel/actions/workflows/semantic-release.yml/badge.svg)](https://github.com/msclock/cppcheck-wheel/actions/workflows/semantic-release.yml)
58
+ [![codecov](https://codecov.io/gh/msclock/cppcheck-wheel/branch/master/graph/badge.svg?token=123456789)](https://codecov.io/gh/msclock/cppcheck-wheel)
59
+ [![Release](https://img.shields.io/github/v/release/msclock/cppcheck-wheel)](https://github.com/msclock/cppcheck-wheel/releases)
60
+
61
+ [![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit)](https://github.com/pre-commit/pre-commit)
62
+ [![clang-format](https://img.shields.io/badge/clang--format-enabled-blue)](https://github.com/pre-commit/mirrors-clang-format)
63
+ [![cmake-format](https://img.shields.io/badge/cmake--format-enabled-blue)](https://github.com/cheshirekow/cmake-format-precommit)
64
+ [![codespell](https://img.shields.io/badge/codespell-enabled-blue)](https://github.com/codespell-project/codespell)
65
+ [![markdownlint](https://img.shields.io/badge/markdownlint-enabled-blue)](https://github.com/igorshubovych/markdownlint-cli)
66
+ [![shellcheck](https://img.shields.io/badge/shellcheck-enabled-blue)](https://github.com/shellcheck-py/shellcheck-py)
67
+
68
+ <!-- writes more things here -->
69
+
70
+ ## Install
71
+
72
+ Package-built has uploaded to pypi and just install with the command:
73
+
74
+ ```bash
75
+ pip install cppcheck
76
+ ```
77
+
78
+ ## License
79
+
80
+ Apache Software License, for more details, see the [LICENSE](https://github.com/msclock/cppcheck-wheel/blob/master/LICENSE) file.