cppcheck 1.4.0__tar.gz → 1.4.2__tar.gz
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-1.4.0 → cppcheck-1.4.2}/.copier-answers.yml +4 -3
- cppcheck-1.4.2/.github/codeql-config.yml +6 -0
- {cppcheck-1.4.0 → cppcheck-1.4.2}/.github/workflows/cd.yml +13 -16
- {cppcheck-1.4.0 → cppcheck-1.4.2}/.github/workflows/ci.yml +10 -8
- {cppcheck-1.4.0 → cppcheck-1.4.2}/.github/workflows/codeql.yml +7 -3
- cppcheck-1.4.2/.github/workflows/pages.yml +60 -0
- {cppcheck-1.4.0 → cppcheck-1.4.2}/.github/workflows/semantic-release.yml +2 -2
- {cppcheck-1.4.0 → cppcheck-1.4.2}/.gitignore +1 -1
- {cppcheck-1.4.0 → cppcheck-1.4.2}/.pre-commit-config.yaml +16 -1
- {cppcheck-1.4.0 → cppcheck-1.4.2}/.renovaterc.json +11 -4
- {cppcheck-1.4.0 → cppcheck-1.4.2}/CMakeLists.txt +8 -3
- {cppcheck-1.4.0 → cppcheck-1.4.2}/PKG-INFO +6 -7
- {cppcheck-1.4.0 → cppcheck-1.4.2}/README.md +1 -2
- {cppcheck-1.4.0 → cppcheck-1.4.2}/cmake/vcpkg/bootstrap/vcpkg_bootstrap.cmake +26 -12
- {cppcheck-1.4.0 → cppcheck-1.4.2}/cmake/vcpkg/bootstrap/vcpkg_load_triplet.cmake +1 -1
- {cppcheck-1.4.0 → cppcheck-1.4.2}/cmake/vcpkg/ports/cppcheck/portfile.cmake +1 -1
- {cppcheck-1.4.0 → cppcheck-1.4.2}/cmake/vcpkg/ports/cppcheck/vcpkg.json +4 -2
- cppcheck-1.4.2/cmake/vcpkg/ports/pcre/export-cmake-targets.patch +23 -0
- cppcheck-1.4.2/cmake/vcpkg/ports/pcre/pcre-8.4.5_fix_check_function_exists_for_arm-androi_builds.patch +32 -0
- cppcheck-1.4.2/cmake/vcpkg/ports/pcre/pcre-8.45_fix_postfix_for_debug_Windows_builds.patch +161 -0
- cppcheck-1.4.2/cmake/vcpkg/ports/pcre/pcre-8.45_suppress_cmake_and_compiler_warnings-errors.patch +18 -0
- cppcheck-1.4.2/cmake/vcpkg/ports/pcre/portfile.cmake +79 -0
- cppcheck-1.4.2/cmake/vcpkg/ports/pcre/unofficial-pcre-config.cmake +1 -0
- cppcheck-1.4.2/cmake/vcpkg/ports/pcre/vcpkg.json +18 -0
- {cppcheck-1.4.0 → cppcheck-1.4.2}/docs/conf.py +1 -0
- {cppcheck-1.4.0 → cppcheck-1.4.2}/pyproject.toml +7 -6
- {cppcheck-1.4.0 → cppcheck-1.4.2}/src/cppcheck/_version.py +2 -2
- {cppcheck-1.4.0 → cppcheck-1.4.2}/vcpkg.json +3 -8
- cppcheck-1.4.0/.github/codeql-config.yml +0 -11
- {cppcheck-1.4.0 → cppcheck-1.4.2}/.devcontainer/devcontainer.json +0 -0
- {cppcheck-1.4.0 → cppcheck-1.4.2}/.editorconfig +0 -0
- {cppcheck-1.4.0 → cppcheck-1.4.2}/.gitattributes +0 -0
- {cppcheck-1.4.0 → cppcheck-1.4.2}/.github/codecov.yml +0 -0
- {cppcheck-1.4.0 → cppcheck-1.4.2}/.github/matchers/pylint.json +0 -0
- {cppcheck-1.4.0 → cppcheck-1.4.2}/.github/workflows/renovate.yml +0 -0
- {cppcheck-1.4.0 → cppcheck-1.4.2}/.markdownlint.yaml +0 -0
- {cppcheck-1.4.0 → cppcheck-1.4.2}/.releaserc.js +0 -0
- {cppcheck-1.4.0 → cppcheck-1.4.2}/.vscode/launch.json +0 -0
- {cppcheck-1.4.0 → cppcheck-1.4.2}/.vscode/settings.json +0 -0
- {cppcheck-1.4.0 → cppcheck-1.4.2}/CMakePresets.json +0 -0
- {cppcheck-1.4.0 → cppcheck-1.4.2}/LICENSE +0 -0
- {cppcheck-1.4.0 → cppcheck-1.4.2}/cmake/presets/arch/x64.json +0 -0
- {cppcheck-1.4.0 → cppcheck-1.4.2}/cmake/presets/base.json +0 -0
- {cppcheck-1.4.0 → cppcheck-1.4.2}/cmake/presets/compilers/gcc.json +0 -0
- {cppcheck-1.4.0 → cppcheck-1.4.2}/cmake/presets/compilers/llvm.json +0 -0
- {cppcheck-1.4.0 → cppcheck-1.4.2}/cmake/presets/compilers/mingw.json +0 -0
- {cppcheck-1.4.0 → cppcheck-1.4.2}/cmake/presets/compilers/msvc.json +0 -0
- {cppcheck-1.4.0 → cppcheck-1.4.2}/cmake/presets/default.json +0 -0
- {cppcheck-1.4.0 → cppcheck-1.4.2}/cmake/presets/generators/ninja.json +0 -0
- {cppcheck-1.4.0 → cppcheck-1.4.2}/cmake/presets/os/darwin.json +0 -0
- {cppcheck-1.4.0 → cppcheck-1.4.2}/cmake/presets/os/linux.json +0 -0
- {cppcheck-1.4.0 → cppcheck-1.4.2}/cmake/presets/os/windows.json +0 -0
- {cppcheck-1.4.0 → cppcheck-1.4.2}/cmake/presets/toolchains/vcpkg.json +0 -0
- {cppcheck-1.4.0 → cppcheck-1.4.2}/cmake/presets/triplets/x64-linux.json +0 -0
- {cppcheck-1.4.0 → cppcheck-1.4.2}/cmake/presets/triplets/x64-mingw-dynamic.json +0 -0
- {cppcheck-1.4.0 → cppcheck-1.4.2}/cmake/presets/triplets/x64-mingw-static.json +0 -0
- {cppcheck-1.4.0 → cppcheck-1.4.2}/cmake/presets/triplets/x64-osx.json +0 -0
- {cppcheck-1.4.0 → cppcheck-1.4.2}/cmake/presets/triplets/x64-windows.json +0 -0
- {cppcheck-1.4.0 → cppcheck-1.4.2}/cmake/presets/x64-linux-gcc.json +0 -0
- {cppcheck-1.4.0 → cppcheck-1.4.2}/cmake/presets/x64-linux-llvm.json +0 -0
- {cppcheck-1.4.0 → cppcheck-1.4.2}/cmake/presets/x64-mingw-dynamic-windows-mingw.json +0 -0
- {cppcheck-1.4.0 → cppcheck-1.4.2}/cmake/presets/x64-mingw-static-windows-mingw.json +0 -0
- {cppcheck-1.4.0 → cppcheck-1.4.2}/cmake/presets/x64-osx-gcc.json +0 -0
- {cppcheck-1.4.0 → cppcheck-1.4.2}/cmake/presets/x64-osx-llvm.json +0 -0
- {cppcheck-1.4.0 → cppcheck-1.4.2}/cmake/presets/x64-windows-llvm.json +0 -0
- {cppcheck-1.4.0 → cppcheck-1.4.2}/cmake/presets/x64-windows-msvc.json +0 -0
- {cppcheck-1.4.0 → cppcheck-1.4.2}/cmake/vcpkg/bootstrap/vcpkg-config.cmake +0 -0
- {cppcheck-1.4.0 → cppcheck-1.4.2}/cmake/vcpkg/bootstrap/vcpkg_chainload_toolchain.cmake +0 -0
- {cppcheck-1.4.0 → cppcheck-1.4.2}/cmake/vcpkg/bootstrap/vcpkg_configure.cmake +0 -0
- {cppcheck-1.4.0 → cppcheck-1.4.2}/cmake/vcpkg/bootstrap/vcpkg_export_mode.cmake +0 -0
- {cppcheck-1.4.0 → cppcheck-1.4.2}/cmake/vcpkg/bootstrap/vcpkg_skip_install_on_reconfigure.cmake +0 -0
- {cppcheck-1.4.0 → cppcheck-1.4.2}/cmake/vcpkg/ports/README.md +0 -0
- {cppcheck-1.4.0 → cppcheck-1.4.2}/cmake/vcpkg/scripts/build_type.cmake +0 -0
- {cppcheck-1.4.0 → cppcheck-1.4.2}/cmake/vcpkg/scripts/toolchains/README.md +0 -0
- {cppcheck-1.4.0 → cppcheck-1.4.2}/cmake/vcpkg/triplets/README.md +0 -0
- {cppcheck-1.4.0 → cppcheck-1.4.2}/cmake/vcpkg/vcpkg.toolchain.cmake +0 -0
- {cppcheck-1.4.0 → cppcheck-1.4.2}/docs/api/index.md +0 -0
- {cppcheck-1.4.0 → cppcheck-1.4.2}/docs/index.md +0 -0
- {cppcheck-1.4.0 → cppcheck-1.4.2}/noxfile.py +0 -0
- {cppcheck-1.4.0 → cppcheck-1.4.2}/src/cppcheck/__init__.py +0 -0
- {cppcheck-1.4.0 → cppcheck-1.4.2}/src/cppcheck/__main__.py +0 -0
- {cppcheck-1.4.0 → cppcheck-1.4.2}/src/cppcheck/_version.pyi +0 -0
- {cppcheck-1.4.0 → cppcheck-1.4.2}/src/cppcheck/py.typed +0 -0
- {cppcheck-1.4.0 → cppcheck-1.4.2}/tests/test_package.py +0 -0
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
_commit:
|
|
2
|
-
_src_path:
|
|
1
|
+
_commit: v0.8.2
|
|
2
|
+
_src_path: gh:serious-scaffold/ss-pybind11
|
|
3
3
|
author_email: msclock@126.com
|
|
4
4
|
author_name: msclock
|
|
5
5
|
codecov_notify_builds: 1
|
|
6
6
|
codecov_threshold: 5%
|
|
7
|
+
compiled: false
|
|
7
8
|
copyright_holder: msclock
|
|
8
9
|
copyright_license: Apache Software License
|
|
9
10
|
copyright_year: '2024'
|
|
@@ -11,7 +12,7 @@ create_devcontainer: true
|
|
|
11
12
|
default_py: '3.10'
|
|
12
13
|
docs_type: sphinx
|
|
13
14
|
max_py: '3.13'
|
|
14
|
-
min_py: '3.
|
|
15
|
+
min_py: '3.8'
|
|
15
16
|
module_name: cppcheck
|
|
16
17
|
organization_name: msclock
|
|
17
18
|
project_description: Package cppcheck as a python wheel.
|
|
@@ -18,14 +18,14 @@ jobs:
|
|
|
18
18
|
name: Build SDist
|
|
19
19
|
runs-on: ubuntu-22.04
|
|
20
20
|
steps:
|
|
21
|
-
- uses: actions/checkout@v4
|
|
21
|
+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
|
22
22
|
with:
|
|
23
23
|
fetch-depth: 0
|
|
24
24
|
|
|
25
25
|
- name: Build SDist
|
|
26
26
|
run: pipx run build --sdist
|
|
27
27
|
|
|
28
|
-
- uses: actions/upload-artifact@v4
|
|
28
|
+
- uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4
|
|
29
29
|
with:
|
|
30
30
|
name: cibw-sdist
|
|
31
31
|
path: dist/*.tar.gz
|
|
@@ -36,10 +36,10 @@ jobs:
|
|
|
36
36
|
|
|
37
37
|
strategy:
|
|
38
38
|
matrix:
|
|
39
|
-
arch: [aarch64, ppc64le, s390x, x86_64, i686]
|
|
39
|
+
arch: [aarch64, ppc64le, s390x, armv7l, x86_64, i686]
|
|
40
40
|
build: [manylinux, musllinux]
|
|
41
41
|
os: [ubuntu-latest]
|
|
42
|
-
use_qemu: [aarch64 ppc64le s390x]
|
|
42
|
+
use_qemu: [aarch64 ppc64le s390x armv7l]
|
|
43
43
|
include:
|
|
44
44
|
- os: windows-2019
|
|
45
45
|
arch: AMD64
|
|
@@ -56,23 +56,20 @@ jobs:
|
|
|
56
56
|
- os: macos-latest
|
|
57
57
|
arch: arm64
|
|
58
58
|
build: macos
|
|
59
|
-
|
|
60
|
-
arch: armv7l
|
|
61
|
-
build: musllinux
|
|
62
|
-
use_qemu: armv7l
|
|
59
|
+
|
|
63
60
|
steps:
|
|
64
|
-
- uses: actions/checkout@v4
|
|
61
|
+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
|
65
62
|
with:
|
|
66
63
|
fetch-depth: 0
|
|
67
64
|
|
|
68
65
|
- name: Set up msvc on Windows
|
|
69
66
|
if: runner.os == 'Windows'
|
|
70
|
-
uses: ilammy/msvc-dev-cmd@v1
|
|
67
|
+
uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1
|
|
71
68
|
with:
|
|
72
69
|
arch: ${{ matrix.arch }}
|
|
73
70
|
|
|
74
71
|
- name: Set up QEMU
|
|
75
|
-
uses: docker/setup-qemu-action@v3.2.0
|
|
72
|
+
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3.2.0
|
|
76
73
|
if: runner.os == 'Linux' && contains(matrix.use_qemu, matrix.arch)
|
|
77
74
|
|
|
78
75
|
- name: Check architecture and set environment variable
|
|
@@ -88,13 +85,13 @@ jobs:
|
|
|
88
85
|
fi
|
|
89
86
|
|
|
90
87
|
- name: Build wheels
|
|
91
|
-
uses: pypa/cibuildwheel@v2.
|
|
88
|
+
uses: pypa/cibuildwheel@ee63bf16da6cddfb925f542f2c7b59ad50e93969 # v2.22.0
|
|
92
89
|
env:
|
|
93
90
|
CIBW_ARCHS: ${{ matrix.arch }}
|
|
94
91
|
CIBW_BUILD: cp311-${{ matrix.build }}*
|
|
95
92
|
|
|
96
93
|
- name: Upload wheels
|
|
97
|
-
uses: actions/upload-artifact@v4
|
|
94
|
+
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4
|
|
98
95
|
with:
|
|
99
96
|
name: cibw-${{ runner.os }}-${{ matrix.build }}-${{ matrix.arch }}
|
|
100
97
|
path: wheelhouse/*.whl
|
|
@@ -108,7 +105,7 @@ jobs:
|
|
|
108
105
|
if: github.event_name == 'release' && github.event.action == 'published'
|
|
109
106
|
|
|
110
107
|
steps:
|
|
111
|
-
- uses: actions/download-artifact@v4
|
|
108
|
+
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4
|
|
112
109
|
with:
|
|
113
110
|
pattern: cibw-*
|
|
114
111
|
path: dist
|
|
@@ -130,7 +127,7 @@ jobs:
|
|
|
130
127
|
timeout-minutes: 15
|
|
131
128
|
|
|
132
129
|
steps:
|
|
133
|
-
- uses: actions/checkout@
|
|
130
|
+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
|
134
131
|
with:
|
|
135
132
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
136
133
|
ref: ${{ github.head_ref }}
|
|
@@ -145,7 +142,7 @@ jobs:
|
|
|
145
142
|
key: cd-pages-${{ hashFiles('vcpkg.json') }}
|
|
146
143
|
restore-keys: cd-pages-${{ hashFiles('vcpkg.json') }}
|
|
147
144
|
|
|
148
|
-
- uses: actions/setup-python@
|
|
145
|
+
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5
|
|
149
146
|
with:
|
|
150
147
|
python-version: 3.x
|
|
151
148
|
|
|
@@ -23,11 +23,11 @@ jobs:
|
|
|
23
23
|
pre-commit:
|
|
24
24
|
runs-on: ubuntu-22.04
|
|
25
25
|
steps:
|
|
26
|
-
- uses: actions/checkout@
|
|
26
|
+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
|
27
27
|
with:
|
|
28
28
|
fetch-depth: 0
|
|
29
29
|
|
|
30
|
-
- uses: actions/setup-python@
|
|
30
|
+
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5
|
|
31
31
|
with:
|
|
32
32
|
python-version: 3.x
|
|
33
33
|
|
|
@@ -58,7 +58,7 @@ jobs:
|
|
|
58
58
|
name: Check Python ${{ matrix.python-version }} on ${{ matrix.runs-on }}
|
|
59
59
|
|
|
60
60
|
steps:
|
|
61
|
-
- uses: actions/checkout@v4
|
|
61
|
+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
|
62
62
|
with:
|
|
63
63
|
fetch-depth: 0
|
|
64
64
|
|
|
@@ -72,12 +72,12 @@ jobs:
|
|
|
72
72
|
key: ${{ matrix.python-version }}-${{ matrix.runs-on }}-${{ hashFiles('vcpkg.json') }}
|
|
73
73
|
restore-keys: ${{ matrix.python-version }}-${{ matrix.runs-on }}-${{ hashFiles('vcpkg.json') }}
|
|
74
74
|
|
|
75
|
-
- uses: actions/setup-python@v5
|
|
75
|
+
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5
|
|
76
76
|
with:
|
|
77
77
|
python-version: ${{ matrix.python-version }}
|
|
78
78
|
|
|
79
79
|
- name: Install package
|
|
80
|
-
run: python -m pip install .[test]
|
|
80
|
+
run: python -m pip install .[test] -v
|
|
81
81
|
|
|
82
82
|
- name: Test package
|
|
83
83
|
run: >-
|
|
@@ -85,7 +85,8 @@ jobs:
|
|
|
85
85
|
--durations=20
|
|
86
86
|
|
|
87
87
|
- name: Upload coverage report
|
|
88
|
-
uses: codecov/codecov-action@v3.1.
|
|
88
|
+
uses: codecov/codecov-action@ab904c41d6ece82784817410c45d8b8c02684457 # v3.1.6
|
|
89
|
+
|
|
89
90
|
|
|
90
91
|
check-docs:
|
|
91
92
|
runs-on: ubuntu-22.04
|
|
@@ -93,7 +94,7 @@ jobs:
|
|
|
93
94
|
timeout-minutes: 15
|
|
94
95
|
|
|
95
96
|
steps:
|
|
96
|
-
- uses: actions/checkout@v4
|
|
97
|
+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
|
97
98
|
with:
|
|
98
99
|
fetch-depth: 0
|
|
99
100
|
|
|
@@ -107,7 +108,7 @@ jobs:
|
|
|
107
108
|
key: docs-${{ hashFiles('vcpkg.json') }}
|
|
108
109
|
restore-keys: docs-${{ hashFiles('vcpkg.json') }}
|
|
109
110
|
|
|
110
|
-
- uses: actions/setup-python@v5
|
|
111
|
+
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5
|
|
111
112
|
with:
|
|
112
113
|
python-version: 3.x
|
|
113
114
|
|
|
@@ -117,6 +118,7 @@ jobs:
|
|
|
117
118
|
- name: Checks the docs for broken links
|
|
118
119
|
run: pipx run nox -s docs -- --linkcheck
|
|
119
120
|
|
|
121
|
+
|
|
120
122
|
pass:
|
|
121
123
|
if: always()
|
|
122
124
|
needs:
|
|
@@ -45,12 +45,12 @@ jobs:
|
|
|
45
45
|
|
|
46
46
|
steps:
|
|
47
47
|
- name: Checkout repository
|
|
48
|
-
uses: actions/checkout@
|
|
48
|
+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
|
49
49
|
with:
|
|
50
50
|
fetch-depth: 0
|
|
51
51
|
|
|
52
52
|
- name: Initialize CodeQL
|
|
53
|
-
uses: github/codeql-action/init@
|
|
53
|
+
uses: github/codeql-action/init@f09c1c0a94de965c15400f5634aa42fac8fb8f88 # v3.27.5
|
|
54
54
|
with:
|
|
55
55
|
languages: ${{ matrix.language }}
|
|
56
56
|
config-file: ./.github/codeql-config.yml
|
|
@@ -64,8 +64,12 @@ jobs:
|
|
|
64
64
|
key: codeql-${{ hashFiles('vcpkg.json') }}
|
|
65
65
|
restore-keys: codeql-${{ hashFiles('vcpkg.json') }}
|
|
66
66
|
|
|
67
|
+
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5
|
|
68
|
+
with:
|
|
69
|
+
python-version: 3.x
|
|
70
|
+
|
|
67
71
|
- name: Build
|
|
68
72
|
run: python -m pip install .[test]
|
|
69
73
|
|
|
70
74
|
- name: Perform CodeQL Analysis
|
|
71
|
-
uses: github/codeql-action/analyze@
|
|
75
|
+
uses: github/codeql-action/analyze@f09c1c0a94de965c15400f5634aa42fac8fb8f88 # v3.27.5
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
name: Pages
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
|
|
6
|
+
push:
|
|
7
|
+
branches:
|
|
8
|
+
- master
|
|
9
|
+
- beta
|
|
10
|
+
- alpha
|
|
11
|
+
- '*.x'
|
|
12
|
+
|
|
13
|
+
release:
|
|
14
|
+
types:
|
|
15
|
+
- published
|
|
16
|
+
|
|
17
|
+
concurrency:
|
|
18
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
19
|
+
cancel-in-progress: true
|
|
20
|
+
|
|
21
|
+
env:
|
|
22
|
+
FORCE_COLOR: 3
|
|
23
|
+
|
|
24
|
+
jobs:
|
|
25
|
+
pages:
|
|
26
|
+
name: Deploy to GitHub Pages
|
|
27
|
+
runs-on: ubuntu-22.04
|
|
28
|
+
permissions:
|
|
29
|
+
contents: write
|
|
30
|
+
id-token: write
|
|
31
|
+
timeout-minutes: 15
|
|
32
|
+
|
|
33
|
+
steps:
|
|
34
|
+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
|
|
35
|
+
with:
|
|
36
|
+
token: ${{ secrets.GITHUB_TOKEN }}
|
|
37
|
+
ref: ${{ github.head_ref }}
|
|
38
|
+
|
|
39
|
+
- name: Cache
|
|
40
|
+
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
|
|
41
|
+
with:
|
|
42
|
+
path: |
|
|
43
|
+
~/vcpkg
|
|
44
|
+
~/.cache/pip
|
|
45
|
+
~/.cache/vcpkg
|
|
46
|
+
key: cd-pages-${{ hashFiles('vcpkg.json') }}
|
|
47
|
+
restore-keys: cd-pages-${{ hashFiles('vcpkg.json') }}
|
|
48
|
+
|
|
49
|
+
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5
|
|
50
|
+
with:
|
|
51
|
+
python-version: 3.x
|
|
52
|
+
|
|
53
|
+
- name: Build Docs
|
|
54
|
+
run: pipx run nox -s docs
|
|
55
|
+
|
|
56
|
+
- name: Deploy to GitHub Pages
|
|
57
|
+
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4
|
|
58
|
+
with:
|
|
59
|
+
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
60
|
+
publish_dir: ./docs/_build/html
|
|
@@ -40,13 +40,13 @@ jobs:
|
|
|
40
40
|
echo "# :warning: GITHUB_TOKEN is used" >> $GITHUB_STEP_SUMMARY
|
|
41
41
|
echo "The GITHUB_TOKEN is used instead of a bot token or PAT that will not emit the released publish event for triggering a released workflow." >> $GITHUB_STEP_SUMMARY
|
|
42
42
|
|
|
43
|
-
- uses: actions/checkout@
|
|
43
|
+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
|
44
44
|
with:
|
|
45
45
|
fetch-depth: 0
|
|
46
46
|
token: ${{ steps.bot_token.outputs.token || secrets.PAT || secrets.GITHUB_TOKEN }}
|
|
47
47
|
|
|
48
48
|
- name: Setup Node.js
|
|
49
|
-
uses: actions/setup-node@
|
|
49
|
+
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4
|
|
50
50
|
with:
|
|
51
51
|
node-version: lts/*
|
|
52
52
|
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
fail_fast: false
|
|
16
16
|
exclude: |
|
|
17
17
|
(?x)(
|
|
18
|
-
^(.vscode/.*)
|
|
18
|
+
^(.vscode/.*) |
|
|
19
|
+
^(cmake/vcpkg/ports/.*)
|
|
19
20
|
)
|
|
20
21
|
files: '' # set '' as default
|
|
21
22
|
|
|
@@ -37,6 +38,14 @@ repos:
|
|
|
37
38
|
- id: requirements-txt-fixer
|
|
38
39
|
- id: trailing-whitespace
|
|
39
40
|
|
|
41
|
+
# Check RST
|
|
42
|
+
- repo: https://github.com/pre-commit/pygrep-hooks
|
|
43
|
+
rev: v1.10.0
|
|
44
|
+
hooks:
|
|
45
|
+
- id: rst-backticks
|
|
46
|
+
- id: rst-directive-colons
|
|
47
|
+
- id: rst-inline-touching-normal
|
|
48
|
+
|
|
40
49
|
# Strong lint from ruff
|
|
41
50
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
42
51
|
rev: v0.1.14
|
|
@@ -115,6 +124,12 @@ repos:
|
|
|
115
124
|
- --check-filenames
|
|
116
125
|
- --write-changes
|
|
117
126
|
|
|
127
|
+
# Check for common shell mistakes
|
|
128
|
+
- repo: https://github.com/shellcheck-py/shellcheck-py
|
|
129
|
+
rev: v0.9.0.6
|
|
130
|
+
hooks:
|
|
131
|
+
- id: shellcheck
|
|
132
|
+
|
|
118
133
|
# Check for renovate config
|
|
119
134
|
- repo: https://github.com/renovatebot/pre-commit-hooks
|
|
120
135
|
rev: 38.110.2
|
|
@@ -9,10 +9,18 @@
|
|
|
9
9
|
"automergeStrategy": "merge-commit",
|
|
10
10
|
"platformAutomerge": true,
|
|
11
11
|
"packageRules": [
|
|
12
|
+
{
|
|
13
|
+
"matchUpdateTypes": [
|
|
14
|
+
"minor",
|
|
15
|
+
"patch",
|
|
16
|
+
"pin",
|
|
17
|
+
"digest"
|
|
18
|
+
],
|
|
19
|
+
"automerge": true
|
|
20
|
+
},
|
|
12
21
|
{
|
|
13
22
|
"description": "Group renovate docker tag and pre-commit-hooks tag",
|
|
14
23
|
"groupName": "renovate group",
|
|
15
|
-
"extends": ["schedule:automergeMonthly"],
|
|
16
24
|
"addLabels": [
|
|
17
25
|
"auto-approval",
|
|
18
26
|
"renovate"
|
|
@@ -21,21 +29,20 @@
|
|
|
21
29
|
"docker",
|
|
22
30
|
"github-tags"
|
|
23
31
|
],
|
|
24
|
-
"automerge": true,
|
|
25
32
|
"matchDepNames": [
|
|
26
33
|
"ghcr.io/renovatebot/renovate",
|
|
27
34
|
"renovatebot/pre-commit-hooks"
|
|
28
35
|
]
|
|
29
36
|
},
|
|
30
37
|
{
|
|
31
|
-
"commitMessageTopic": "serious-scaffold
|
|
38
|
+
"commitMessageTopic": "serious-scaffold",
|
|
32
39
|
"matchDepTypes": [
|
|
33
40
|
"copier-template"
|
|
34
41
|
],
|
|
35
42
|
"postUpgradeTasks": {
|
|
36
43
|
"commands": [
|
|
37
44
|
"git stash",
|
|
38
|
-
"pip install copier==9.
|
|
45
|
+
"pip install copier==9.4.1",
|
|
39
46
|
"copier update --defaults --vcs-ref {{{newVersion}}}"
|
|
40
47
|
]
|
|
41
48
|
},
|
|
@@ -10,7 +10,6 @@ message(
|
|
|
10
10
|
STATUS
|
|
11
11
|
"Building CMake project ${SKBUILD_PROJECT_NAME} ${SKBUILD_PROJECT_VERSION}")
|
|
12
12
|
|
|
13
|
-
# Project settings
|
|
14
13
|
project(
|
|
15
14
|
${SKBUILD_PROJECT_NAME}
|
|
16
15
|
VERSION ${SKBUILD_PROJECT_VERSION}
|
|
@@ -26,8 +25,14 @@ set(CMAKE_CXX_EXTENSIONS
|
|
|
26
25
|
OFF
|
|
27
26
|
CACHE BOOL "C++ extensions")
|
|
28
27
|
|
|
29
|
-
|
|
28
|
+
# Project default module
|
|
29
|
+
find_package(cmake-modules REQUIRED)
|
|
30
|
+
include(cmake-modules/ProjectDefault)
|
|
30
31
|
|
|
31
|
-
|
|
32
|
+
find_program(cppcheck NAMES "cppcheck" "cppcheck.exe")
|
|
33
|
+
cmake_path(GET cppcheck PARENT_PATH cppcheck_dir)
|
|
34
|
+
file(GLOB cppcheck_runtimes ${cppcheck_dir}/*)
|
|
35
|
+
install(PROGRAMS ${cppcheck_runtimes}
|
|
36
|
+
DESTINATION ${SKBUILD_PROJECT_NAME}/Cppcheck)
|
|
32
37
|
install(DIRECTORY ${VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/share/Cppcheck
|
|
33
38
|
DESTINATION ${SKBUILD_PROJECT_NAME})
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: cppcheck
|
|
3
|
-
Version: 1.4.
|
|
3
|
+
Version: 1.4.2
|
|
4
4
|
Summary: Package cppcheck as a python wheel.
|
|
5
5
|
Author-Email: msclock <msclock@126.com>
|
|
6
6
|
License: Apache-2.0
|
|
@@ -20,10 +20,10 @@ Classifier: Programming Language :: Python :: 3.12
|
|
|
20
20
|
Classifier: Programming Language :: Python :: 3.13
|
|
21
21
|
Classifier: Topic :: Scientific/Engineering
|
|
22
22
|
Classifier: Typing :: Typed
|
|
23
|
-
Project-URL: Homepage, https://github.com/
|
|
24
|
-
Project-URL: Bug tracker, https://github.com/
|
|
25
|
-
Project-URL: Discussions, https://github.com/
|
|
26
|
-
Project-URL: Changelog, https://github.com/
|
|
23
|
+
Project-URL: Homepage, https://github.com/msclock/cppcheck-wheel
|
|
24
|
+
Project-URL: Bug tracker, https://github.com/msclock/cppcheck-wheel/issues
|
|
25
|
+
Project-URL: Discussions, https://github.com/msclock/cppcheck-wheel/discussions
|
|
26
|
+
Project-URL: Changelog, https://github.com/msclock/cppcheck-wheel/releases
|
|
27
27
|
Requires-Python: >=3.7
|
|
28
28
|
Requires-Dist: typing-extensions>=3.10.0; python_version < "3.9"
|
|
29
29
|
Requires-Dist: importlib_metadata>=1.4
|
|
@@ -49,7 +49,7 @@ Package cppcheck as a python wheel.
|
|
|
49
49
|
|
|
50
50
|
[](https://msclock.github.io/cppcheck-wheel)
|
|
51
51
|
[](https://github.com/msclock/cppcheck-wheel/blob/master/LICENSE)
|
|
52
|
-
[](https://github.com/serious-scaffold/ss-pybind11)
|
|
53
53
|
|
|
54
54
|
[](https://github.com/msclock/cppcheck-wheel/actions/workflows/ci.yml)
|
|
55
55
|
[](https://github.com/msclock/cppcheck-wheel/actions/workflows/cd.yml)
|
|
@@ -59,7 +59,6 @@ Package cppcheck as a python wheel.
|
|
|
59
59
|
[](https://github.com/msclock/cppcheck-wheel/releases)
|
|
60
60
|
|
|
61
61
|
[](https://github.com/pre-commit/pre-commit)
|
|
62
|
-
[](https://github.com/pre-commit/mirrors-clang-format)
|
|
63
62
|
[](https://github.com/cheshirekow/cmake-format-precommit)
|
|
64
63
|
[](https://github.com/codespell-project/codespell)
|
|
65
64
|
[](https://github.com/igorshubovych/markdownlint-cli)
|
|
@@ -6,7 +6,7 @@ Package cppcheck as a python wheel.
|
|
|
6
6
|
|
|
7
7
|
[](https://msclock.github.io/cppcheck-wheel)
|
|
8
8
|
[](https://github.com/msclock/cppcheck-wheel/blob/master/LICENSE)
|
|
9
|
-
[](https://github.com/serious-scaffold/ss-pybind11)
|
|
10
10
|
|
|
11
11
|
[](https://github.com/msclock/cppcheck-wheel/actions/workflows/ci.yml)
|
|
12
12
|
[](https://github.com/msclock/cppcheck-wheel/actions/workflows/cd.yml)
|
|
@@ -16,7 +16,6 @@ Package cppcheck as a python wheel.
|
|
|
16
16
|
[](https://github.com/msclock/cppcheck-wheel/releases)
|
|
17
17
|
|
|
18
18
|
[](https://github.com/pre-commit/pre-commit)
|
|
19
|
-
[](https://github.com/pre-commit/mirrors-clang-format)
|
|
20
19
|
[](https://github.com/cheshirekow/cmake-format-precommit)
|
|
21
20
|
[](https://github.com/codespell-project/codespell)
|
|
22
21
|
[](https://github.com/igorshubovych/markdownlint-cli)
|
|
@@ -22,17 +22,14 @@ endfunction()
|
|
|
22
22
|
function(_vcpkg_checkout vcpkg_root vcpkg_ref)
|
|
23
23
|
message(STATUS "vcpkg checkout to ${vcpkg_ref}")
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
WORKING_DIRECTORY ${vcpkg_root}
|
|
30
|
-
RESULT_VARIABLE result)
|
|
25
|
+
execute_process(
|
|
26
|
+
COMMAND ${GIT_EXECUTABLE} fetch origin ${vcpkg_ref}
|
|
27
|
+
WORKING_DIRECTORY ${vcpkg_root}
|
|
28
|
+
RESULT_VARIABLE result)
|
|
31
29
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
endif()
|
|
30
|
+
if(NOT result EQUAL "0")
|
|
31
|
+
message(
|
|
32
|
+
FATAL_ERROR "${GIT_EXECUTABLE} fetch ${vcpkg_ref} failed with ${result}")
|
|
36
33
|
endif()
|
|
37
34
|
|
|
38
35
|
execute_process(
|
|
@@ -50,7 +47,7 @@ endfunction()
|
|
|
50
47
|
# clone
|
|
51
48
|
function(_vcpkg_clone vcpkg_root vcpkg_repo vcpkg_ref)
|
|
52
49
|
execute_process(
|
|
53
|
-
COMMAND ${GIT_EXECUTABLE} clone ${vcpkg_repo} ${vcpkg_root}
|
|
50
|
+
COMMAND ${GIT_EXECUTABLE} clone ${vcpkg_repo} ${vcpkg_root} --depth=1
|
|
54
51
|
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
|
55
52
|
RESULT_VARIABLE result)
|
|
56
53
|
|
|
@@ -78,7 +75,24 @@ function(_vcpkg_tool_bootstrap vcpkg_root)
|
|
|
78
75
|
RESULT_VARIABLE result)
|
|
79
76
|
|
|
80
77
|
if(NOT result EQUAL "0")
|
|
81
|
-
|
|
78
|
+
if(CMAKE_HOST_UNIX)
|
|
79
|
+
message(STATUS "Retry to build vcpkg from source...")
|
|
80
|
+
set(bootstrap_impl "${vcpkg_root}/scripts/bootstrap.sh")
|
|
81
|
+
file(READ "${bootstrap_impl}" file_contents)
|
|
82
|
+
string(REPLACE [[elif [ "$ARCH" = "x86_64" ]; then]]
|
|
83
|
+
[[elif [ "$ARCH" = "" ]; then]] file_contents
|
|
84
|
+
"${file_contents}")
|
|
85
|
+
file(WRITE "${bootstrap_impl}" "${file_contents}")
|
|
86
|
+
|
|
87
|
+
execute_process(
|
|
88
|
+
COMMAND ${bootstrap_cmd} -disableMetrics
|
|
89
|
+
WORKING_DIRECTORY ${vcpkg_root}
|
|
90
|
+
RESULT_VARIABLE result)
|
|
91
|
+
endif()
|
|
92
|
+
|
|
93
|
+
if(NOT result EQUAL "0")
|
|
94
|
+
message(FATAL_ERROR "${bootstrap_cmd} failed with ${result}")
|
|
95
|
+
endif()
|
|
82
96
|
endif()
|
|
83
97
|
endfunction()
|
|
84
98
|
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
--- a/CMakeLists.txt 2021-06-14 10:33:38.000000000 +0200
|
|
2
|
+
+++ b/CMakeLists.txt 2021-06-18 18:08:24.162881000 +0200
|
|
3
|
+
@@ -934,10 +934,19 @@
|
|
4
|
+
# Installation
|
|
5
|
+
SET(CMAKE_INSTALL_ALWAYS 1)
|
|
6
|
+
|
|
7
|
+
-INSTALL(TARGETS ${targets}
|
|
8
|
+
+foreach(target ${targets})
|
|
9
|
+
+ INSTALL(TARGETS ${target}
|
|
10
|
+
+ EXPORT pcre-targets
|
|
11
|
+
RUNTIME DESTINATION bin
|
|
12
|
+
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
13
|
+
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
|
14
|
+
+ target_include_directories(${target} PUBLIC $<INSTALL_INTERFACE:include>)
|
|
15
|
+
+endforeach()
|
|
16
|
+
+
|
|
17
|
+
+INSTALL(EXPORT pcre-targets
|
|
18
|
+
+ NAMESPACE unofficial::pcre::
|
|
19
|
+
+ FILE unofficial-pcre-targets.cmake
|
|
20
|
+
+ DESTINATION "share/unofficial-pcre")
|
|
21
|
+
|
|
22
|
+
INSTALL(FILES ${PCRE_HEADERS} ${PCREPOSIX_HEADERS} DESTINATION include)
|
|
23
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
2
|
+
index 2c3a309..cdd480f 100644
|
|
3
|
+
--- a/CMakeLists.txt
|
|
4
|
+
+++ b/CMakeLists.txt
|
|
5
|
+
@@ -94,7 +94,7 @@ FIND_PACKAGE( Editline )
|
|
6
|
+
|
|
7
|
+
INCLUDE(CheckIncludeFile)
|
|
8
|
+
INCLUDE(CheckIncludeFileCXX)
|
|
9
|
+
-INCLUDE(CheckFunctionExists)
|
|
10
|
+
+INCLUDE(CheckSymbolExists)
|
|
11
|
+
INCLUDE(CheckTypeSize)
|
|
12
|
+
INCLUDE(GNUInstallDirs) # for CMAKE_INSTALL_LIBDIR
|
|
13
|
+
|
|
14
|
+
@@ -109,12 +109,12 @@ CHECK_INCLUDE_FILE(windows.h HAVE_WINDOWS_H)
|
|
15
|
+
CHECK_INCLUDE_FILE_CXX(type_traits.h HAVE_TYPE_TRAITS_H)
|
|
16
|
+
CHECK_INCLUDE_FILE_CXX(bits/type_traits.h HAVE_BITS_TYPE_TRAITS_H)
|
|
17
|
+
|
|
18
|
+
-CHECK_FUNCTION_EXISTS(bcopy HAVE_BCOPY)
|
|
19
|
+
-CHECK_FUNCTION_EXISTS(memmove HAVE_MEMMOVE)
|
|
20
|
+
-CHECK_FUNCTION_EXISTS(strerror HAVE_STRERROR)
|
|
21
|
+
-CHECK_FUNCTION_EXISTS(strtoll HAVE_STRTOLL)
|
|
22
|
+
-CHECK_FUNCTION_EXISTS(strtoq HAVE_STRTOQ)
|
|
23
|
+
-CHECK_FUNCTION_EXISTS(_strtoi64 HAVE__STRTOI64)
|
|
24
|
+
+CHECK_SYMBOL_EXISTS(bcopy strings.h HAVE_BCOPY)
|
|
25
|
+
+CHECK_SYMBOL_EXISTS(memmove string.h HAVE_MEMMOVE)
|
|
26
|
+
+CHECK_SYMBOL_EXISTS(strerror string.h HAVE_STRERROR)
|
|
27
|
+
+CHECK_SYMBOL_EXISTS(strtoll stdlib.h HAVE_STRTOLL)
|
|
28
|
+
+CHECK_SYMBOL_EXISTS(strtoq stdlib.h HAVE_STRTOQ)
|
|
29
|
+
+CHECK_SYMBOL_EXISTS(_strtoi64 stdlib.h HAVE__STRTOI64)
|
|
30
|
+
|
|
31
|
+
CHECK_TYPE_SIZE("long long" LONG_LONG)
|
|
32
|
+
CHECK_TYPE_SIZE("unsigned long long" UNSIGNED_LONG_LONG)
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
Index: CMakeLists.txt
|
|
2
|
+
===================================================================
|
|
3
|
+
--- CMakeLists.txt (revision 1767)
|
|
4
|
+
+++ CMakeLists.txt (working copy)
|
|
5
|
+
@@ -436,6 +436,12 @@
|
|
6
|
+
@ONLY)
|
|
7
|
+
ENDIF(PCRE_BUILD_PCRECPP)
|
|
8
|
+
|
|
9
|
+
+# Make sure to not link debug libs
|
|
10
|
+
+# against release libs and vice versa
|
|
11
|
+
+IF(WIN32)
|
|
12
|
+
+ SET(CMAKE_DEBUG_POSTFIX "d")
|
|
13
|
+
+ENDIF(WIN32)
|
|
14
|
+
+
|
|
15
|
+
# Generate pkg-config files
|
|
16
|
+
SET(PACKAGE_VERSION "${PCRE_MAJOR}.${PCRE_MINOR}")
|
|
17
|
+
SET(prefix "${CMAKE_INSTALL_PREFIX}")
|
|
18
|
+
@@ -442,6 +448,9 @@
|
|
19
|
+
SET(exec_prefix "\${prefix}")
|
|
20
|
+
SET(libdir "\${exec_prefix}/${CMAKE_INSTALL_LIBDIR}")
|
|
21
|
+
SET(includedir "\${prefix}/include")
|
|
22
|
+
+IF(WIN32 AND (CMAKE_BUILD_TYPE MATCHES Debug))
|
|
23
|
+
+ SET(LIB_POSTFIX ${CMAKE_DEBUG_POSTFIX})
|
|
24
|
+
+ENDIF()
|
|
25
|
+
IF(NOT BUILD_SHARED_LIBS)
|
|
26
|
+
SET(PCRE_STATIC_CFLAG "-DPCRE_STATIC")
|
|
27
|
+
ENDIF(NOT BUILD_SHARED_LIBS)
|
|
28
|
+
@@ -659,11 +668,6 @@
|
|
29
|
+
ENDIF(MSVC)
|
|
30
|
+
|
|
31
|
+
SET(CMAKE_INCLUDE_CURRENT_DIR 1)
|
|
32
|
+
-# needed to make sure to not link debug libs
|
|
33
|
+
-# against release libs and vice versa
|
|
34
|
+
-IF(WIN32)
|
|
35
|
+
- SET(CMAKE_DEBUG_POSTFIX "d")
|
|
36
|
+
-ENDIF(WIN32)
|
|
37
|
+
|
|
38
|
+
SET(targets)
|
|
39
|
+
|
|
40
|
+
Index: configure.ac
|
|
41
|
+
===================================================================
|
|
42
|
+
--- configure.ac (revision 1767)
|
|
43
|
+
+++ configure.ac (working copy)
|
|
44
|
+
@@ -1044,6 +1044,9 @@
|
|
45
|
+
AM_CONDITIONAL([WITH_GCOV],[test "x$enable_coverage" = "xyes"])
|
|
46
|
+
|
|
47
|
+
# Produce these files, in addition to config.h.
|
|
48
|
+
+# LIB_POSTFIX is used by CMakeLists.txt for Windows debug builds.
|
|
49
|
+
+# Pass empty LIB_POSTFIX to *.pc files and pcre-config here.
|
|
50
|
+
+AC_SUBST(LIB_POSTFIX)
|
|
51
|
+
AC_CONFIG_FILES(
|
|
52
|
+
Makefile
|
|
53
|
+
libpcre.pc
|
|
54
|
+
Index: libpcre.pc.in
|
|
55
|
+
===================================================================
|
|
56
|
+
--- libpcre.pc.in (revision 1767)
|
|
57
|
+
+++ libpcre.pc.in (working copy)
|
|
58
|
+
@@ -8,6 +8,6 @@
|
|
59
|
+
Name: libpcre
|
|
60
|
+
Description: PCRE - Perl compatible regular expressions C library with 8 bit character support
|
|
61
|
+
Version: @PACKAGE_VERSION@
|
|
62
|
+
-Libs: -L${libdir} -lpcre
|
|
63
|
+
+Libs: -L${libdir} -lpcre@LIB_POSTFIX@
|
|
64
|
+
Libs.private: @PTHREAD_CFLAGS@ @PTHREAD_LIBS@
|
|
65
|
+
Cflags: -I${includedir} @PCRE_STATIC_CFLAG@
|
|
66
|
+
Index: libpcre16.pc.in
|
|
67
|
+
===================================================================
|
|
68
|
+
--- libpcre16.pc.in (revision 1767)
|
|
69
|
+
+++ libpcre16.pc.in (working copy)
|
|
70
|
+
@@ -8,6 +8,6 @@
|
|
71
|
+
Name: libpcre16
|
|
72
|
+
Description: PCRE - Perl compatible regular expressions C library with 16 bit character support
|
|
73
|
+
Version: @PACKAGE_VERSION@
|
|
74
|
+
-Libs: -L${libdir} -lpcre16
|
|
75
|
+
+Libs: -L${libdir} -lpcre16@LIB_POSTFIX@
|
|
76
|
+
Libs.private: @PTHREAD_CFLAGS@ @PTHREAD_LIBS@
|
|
77
|
+
Cflags: -I${includedir} @PCRE_STATIC_CFLAG@
|
|
78
|
+
Index: libpcre32.pc.in
|
|
79
|
+
===================================================================
|
|
80
|
+
--- libpcre32.pc.in (revision 1767)
|
|
81
|
+
+++ libpcre32.pc.in (working copy)
|
|
82
|
+
@@ -8,6 +8,6 @@
|
|
83
|
+
Name: libpcre32
|
|
84
|
+
Description: PCRE - Perl compatible regular expressions C library with 32 bit character support
|
|
85
|
+
Version: @PACKAGE_VERSION@
|
|
86
|
+
-Libs: -L${libdir} -lpcre32
|
|
87
|
+
+Libs: -L${libdir} -lpcre32@LIB_POSTFIX@
|
|
88
|
+
Libs.private: @PTHREAD_CFLAGS@ @PTHREAD_LIBS@
|
|
89
|
+
Cflags: -I${includedir} @PCRE_STATIC_CFLAG@
|
|
90
|
+
Index: libpcrecpp.pc.in
|
|
91
|
+
===================================================================
|
|
92
|
+
--- libpcrecpp.pc.in (revision 1767)
|
|
93
|
+
+++ libpcrecpp.pc.in (working copy)
|
|
94
|
+
@@ -8,5 +8,5 @@
|
|
95
|
+
Name: libpcrecpp
|
|
96
|
+
Description: PCRECPP - C++ wrapper for PCRE
|
|
97
|
+
Version: @PACKAGE_VERSION@
|
|
98
|
+
-Libs: -L${libdir} -lpcre -lpcrecpp
|
|
99
|
+
+Libs: -L${libdir} -lpcre@LIB_POSTFIX@ -lpcrecpp@LIB_POSTFIX@
|
|
100
|
+
Cflags: -I${includedir} @PCRE_STATIC_CFLAG@
|
|
101
|
+
Index: libpcreposix.pc.in
|
|
102
|
+
===================================================================
|
|
103
|
+
--- libpcreposix.pc.in (revision 1767)
|
|
104
|
+
+++ libpcreposix.pc.in (working copy)
|
|
105
|
+
@@ -8,6 +8,6 @@
|
|
106
|
+
Name: libpcreposix
|
|
107
|
+
Description: PCREPosix - Posix compatible interface to libpcre
|
|
108
|
+
Version: @PACKAGE_VERSION@
|
|
109
|
+
-Libs: -L${libdir} -lpcreposix
|
|
110
|
+
+Libs: -L${libdir} -lpcreposix@LIB_POSTFIX@
|
|
111
|
+
Cflags: -I${includedir} @PCRE_STATIC_CFLAG@
|
|
112
|
+
Requires.private: libpcre
|
|
113
|
+
Index: pcre-config.in
|
|
114
|
+
===================================================================
|
|
115
|
+
--- pcre-config.in (revision 1767)
|
|
116
|
+
+++ pcre-config.in (working copy)
|
|
117
|
+
@@ -91,7 +91,7 @@
|
|
118
|
+
;;
|
|
119
|
+
--libs-posix)
|
|
120
|
+
if test @enable_pcre8@ = yes ; then
|
|
121
|
+
- echo $libS$libR -lpcreposix -lpcre
|
|
122
|
+
+ echo $libS$libR -lpcreposix@LIB_POSTFIX@ -lpcre@LIB_POSTFIX@
|
|
123
|
+
else
|
|
124
|
+
echo "${usage}" 1>&2
|
|
125
|
+
fi
|
|
126
|
+
@@ -98,7 +98,7 @@
|
|
127
|
+
;;
|
|
128
|
+
--libs)
|
|
129
|
+
if test @enable_pcre8@ = yes ; then
|
|
130
|
+
- echo $libS$libR -lpcre
|
|
131
|
+
+ echo $libS$libR -lpcre@LIB_POSTFIX@
|
|
132
|
+
else
|
|
133
|
+
echo "${usage}" 1>&2
|
|
134
|
+
fi
|
|
135
|
+
@@ -105,7 +105,7 @@
|
|
136
|
+
;;
|
|
137
|
+
--libs16)
|
|
138
|
+
if test @enable_pcre16@ = yes ; then
|
|
139
|
+
- echo $libS$libR -lpcre16
|
|
140
|
+
+ echo $libS$libR -lpcre16@LIB_POSTFIX@
|
|
141
|
+
else
|
|
142
|
+
echo "${usage}" 1>&2
|
|
143
|
+
fi
|
|
144
|
+
@@ -112,7 +112,7 @@
|
|
145
|
+
;;
|
|
146
|
+
--libs32)
|
|
147
|
+
if test @enable_pcre32@ = yes ; then
|
|
148
|
+
- echo $libS$libR -lpcre32
|
|
149
|
+
+ echo $libS$libR -lpcre32@LIB_POSTFIX@
|
|
150
|
+
else
|
|
151
|
+
echo "${usage}" 1>&2
|
|
152
|
+
fi
|
|
153
|
+
@@ -119,7 +119,7 @@
|
|
154
|
+
;;
|
|
155
|
+
--libs-cpp)
|
|
156
|
+
if test @enable_cpp@ = yes ; then
|
|
157
|
+
- echo $libS$libR -lpcrecpp -lpcre
|
|
158
|
+
+ echo $libS$libR -lpcrecpp@LIB_POSTFIX@ -lpcre@LIB_POSTFIX@
|
|
159
|
+
else
|
|
160
|
+
echo "${usage}" 1>&2
|
|
161
|
+
fi
|
cppcheck-1.4.2/cmake/vcpkg/ports/pcre/pcre-8.45_suppress_cmake_and_compiler_warnings-errors.patch
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
--- a/CMakeLists.txt 2021-06-14 10:33:38.000000000 +0200
|
|
2
|
+
+++ b/CMakeLists.txt 2021-06-18 17:59:59.155148900 +0200
|
|
3
|
+
@@ -77,7 +77,6 @@
|
|
4
|
+
# CMP0026 to avoid warnings for the use of LOCATION in GET_TARGET_PROPERTY.
|
|
5
|
+
|
|
6
|
+
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.5)
|
|
7
|
+
-CMAKE_POLICY(SET CMP0026 OLD)
|
|
8
|
+
|
|
9
|
+
# For FindReadline.cmake. This was changed to allow setting CMAKE_MODULE_PATH
|
|
10
|
+
# on the command line.
|
|
11
|
+
@@ -199,6 +198,7 @@
|
|
12
|
+
ENDIF(MINGW)
|
|
13
|
+
|
|
14
|
+
IF(MSVC)
|
|
15
|
+
+ add_definitions(/wd4703 /wd4146 /wd4308)
|
|
16
|
+
OPTION(PCRE_STATIC_RUNTIME
|
|
17
|
+
"ON=Compile against the static runtime (/MT)."
|
|
18
|
+
OFF)
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
set(PCRE_VERSION 8.45)
|
|
2
|
+
set(EXPECTED_SHA 71f246c0abbf356222933ad1604cab87a1a2a3cd8054a0b9d6deb25e0735ce9f40f923d14cbd21f32fdac7283794270afcb0f221ad24662ac35934fcb73675cd)
|
|
3
|
+
set(PATCHES
|
|
4
|
+
# Fix CMake Deprecation Warning concerning OLD behavior for policy CMP0026
|
|
5
|
+
# Suppress MSVC compiler warnings C4703, C4146, C4308, which fixes errors
|
|
6
|
+
# under x64-uwp and arm-uwp
|
|
7
|
+
pcre-8.45_suppress_cmake_and_compiler_warnings-errors.patch
|
|
8
|
+
# Modified for 8.45 from https://bugs.exim.org/show_bug.cgi?id=2600
|
|
9
|
+
pcre-8.45_fix_postfix_for_debug_Windows_builds.patch
|
|
10
|
+
export-cmake-targets.patch
|
|
11
|
+
pcre-8.4.5_fix_check_function_exists_for_arm-androi_builds.patch)
|
|
12
|
+
|
|
13
|
+
vcpkg_from_sourceforge(
|
|
14
|
+
OUT_SOURCE_PATH SOURCE_PATH
|
|
15
|
+
REPO pcre/pcre
|
|
16
|
+
REF ${PCRE_VERSION}
|
|
17
|
+
FILENAME "pcre-${PCRE_VERSION}.zip"
|
|
18
|
+
SHA512 ${EXPECTED_SHA}
|
|
19
|
+
PATCHES ${PATCHES}
|
|
20
|
+
)
|
|
21
|
+
|
|
22
|
+
set(IS_PCRE_SUPPORT_JIT YES)
|
|
23
|
+
if(VCPKG_TARGET_ARCHITECTURE MATCHES "(loongarch|^s390|^arm)")
|
|
24
|
+
set(IS_PCRE_SUPPORT_JIT NO)
|
|
25
|
+
endif()
|
|
26
|
+
|
|
27
|
+
vcpkg_cmake_configure(
|
|
28
|
+
SOURCE_PATH ${SOURCE_PATH}
|
|
29
|
+
OPTIONS
|
|
30
|
+
-DPCRE_BUILD_TESTS=NO
|
|
31
|
+
-DPCRE_BUILD_PCREGREP=NO
|
|
32
|
+
-DPCRE_BUILD_PCRE32=YES
|
|
33
|
+
-DPCRE_BUILD_PCRE16=YES
|
|
34
|
+
-DPCRE_BUILD_PCRE8=YES
|
|
35
|
+
-DPCRE_SUPPORT_JIT=${IS_PCRE_SUPPORT_JIT}
|
|
36
|
+
-DPCRE_SUPPORT_UTF=YES
|
|
37
|
+
-DPCRE_SUPPORT_UNICODE_PROPERTIES=YES
|
|
38
|
+
# optional dependencies for PCREGREP
|
|
39
|
+
-DPCRE_SUPPORT_LIBBZ2=OFF
|
|
40
|
+
-DPCRE_SUPPORT_LIBZ=OFF
|
|
41
|
+
-DPCRE_SUPPORT_LIBEDIT=OFF
|
|
42
|
+
-DPCRE_SUPPORT_LIBREADLINE=OFF
|
|
43
|
+
# OPTIONS -DUSE_THIS_IN_ALL_BUILDS=1 -DUSE_THIS_TOO=2
|
|
44
|
+
# OPTIONS_RELEASE -DOPTIMIZE=1
|
|
45
|
+
# OPTIONS_DEBUG -DDEBUGGABLE=1
|
|
46
|
+
)
|
|
47
|
+
|
|
48
|
+
vcpkg_cmake_install()
|
|
49
|
+
|
|
50
|
+
vcpkg_cmake_config_fixup(PACKAGE_NAME "unofficial-${PORT}" CONFIG_PATH "share/unofficial-${PORT}")
|
|
51
|
+
|
|
52
|
+
foreach(FILE "${CURRENT_PACKAGES_DIR}/include/pcre.h" "${CURRENT_PACKAGES_DIR}/include/pcreposix.h")
|
|
53
|
+
file(READ ${FILE} PCRE_H)
|
|
54
|
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
|
55
|
+
string(REPLACE "defined(PCRE_STATIC)" "1" PCRE_H "${PCRE_H}")
|
|
56
|
+
else()
|
|
57
|
+
string(REPLACE "defined(PCRE_STATIC)" "0" PCRE_H "${PCRE_H}")
|
|
58
|
+
endif()
|
|
59
|
+
file(WRITE ${FILE} "${PCRE_H}")
|
|
60
|
+
endforeach()
|
|
61
|
+
|
|
62
|
+
vcpkg_fixup_pkgconfig()
|
|
63
|
+
|
|
64
|
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
65
|
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
66
|
+
|
|
67
|
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/man")
|
|
68
|
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/man")
|
|
69
|
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/doc")
|
|
70
|
+
|
|
71
|
+
file(REMOVE "${CURRENT_PACKAGES_DIR}/bin/pcre-config" "${CURRENT_PACKAGES_DIR}/debug/bin/pcre-config")
|
|
72
|
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static" OR NOT VCPKG_TARGET_IS_WINDOWS)
|
|
73
|
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
|
74
|
+
endif()
|
|
75
|
+
|
|
76
|
+
vcpkg_copy_pdbs()
|
|
77
|
+
configure_file("${CMAKE_CURRENT_LIST_DIR}/unofficial-pcre-config.cmake" "${CURRENT_PACKAGES_DIR}/share/unofficial-pcre/unofficial-pcre-config.cmake" @ONLY)
|
|
78
|
+
|
|
79
|
+
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
include("${CMAKE_CURRENT_LIST_DIR}/unofficial-pcre-targets.cmake")
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "pcre",
|
|
3
|
+
"version": "8.45",
|
|
4
|
+
"port-version": 6,
|
|
5
|
+
"description": "Perl Compatible Regular Expressions",
|
|
6
|
+
"homepage": "https://www.pcre.org/",
|
|
7
|
+
"license": null,
|
|
8
|
+
"dependencies": [
|
|
9
|
+
{
|
|
10
|
+
"name": "vcpkg-cmake",
|
|
11
|
+
"host": true
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"name": "vcpkg-cmake-config",
|
|
15
|
+
"host": true
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
}
|
|
@@ -61,6 +61,7 @@ exclude_patterns = [
|
|
|
61
61
|
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-the-linkcheck-builder
|
|
62
62
|
linkcheck_ignore = [
|
|
63
63
|
"https://github.com/msclock/cppcheck-wheel",
|
|
64
|
+
"https://msclock.github.io/cppcheck-wheel",
|
|
64
65
|
"https://codecov.io/gh/msclock/cppcheck-wheel",
|
|
65
66
|
"https://github.com/serious-scaffold/ss-pybind11",
|
|
66
67
|
]
|
|
@@ -50,15 +50,15 @@ docs = [
|
|
|
50
50
|
cppcheck = "cppcheck:cppcheck"
|
|
51
51
|
|
|
52
52
|
[project.urls]
|
|
53
|
-
Homepage = "https://github.com/
|
|
54
|
-
"Bug Tracker" = "https://github.com/
|
|
55
|
-
Discussions = "https://github.com/
|
|
56
|
-
Changelog = "https://github.com/
|
|
53
|
+
Homepage = "https://github.com/msclock/cppcheck-wheel"
|
|
54
|
+
"Bug Tracker" = "https://github.com/msclock/cppcheck-wheel/issues"
|
|
55
|
+
Discussions = "https://github.com/msclock/cppcheck-wheel/discussions"
|
|
56
|
+
Changelog = "https://github.com/msclock/cppcheck-wheel/releases"
|
|
57
57
|
|
|
58
58
|
[tool.scikit-build]
|
|
59
59
|
minimum-version = "0.9"
|
|
60
60
|
build-dir = "build/{wheel_tag}"
|
|
61
|
-
cmake.verbose =
|
|
61
|
+
cmake.verbose = false
|
|
62
62
|
logging.level = "DEBUG"
|
|
63
63
|
wheel.py-api = "py3"
|
|
64
64
|
wheel.expand-macos-universal-tags = true
|
|
@@ -66,6 +66,7 @@ metadata.version.provider = "scikit_build_core.metadata.setuptools_scm"
|
|
|
66
66
|
sdist.include = ["src/cppcheck/_version.py"]
|
|
67
67
|
cmake.args = [
|
|
68
68
|
"-DBUILD_TESTING=OFF",
|
|
69
|
+
"-DCMAKE_BUILD_TYPE=ReWithDebInfo", # Required RelWithDebInfo or Release
|
|
69
70
|
"-DCMAKE_TOOLCHAIN_FILE=cmake/vcpkg/vcpkg.toolchain.cmake",
|
|
70
71
|
"-DVCPKG_OVERLAY_TRIPLETS=cmake/vcpkg/triplets",
|
|
71
72
|
"-DVCPKG_OVERLAY_PORTS=cmake/vcpkg/ports"
|
|
@@ -83,6 +84,7 @@ test-skip = ["*-win_arm64", "*-macosx_universal2:arm64"]
|
|
|
83
84
|
[tool.cibuildwheel.linux]
|
|
84
85
|
before-build =[
|
|
85
86
|
'yum install zip -y || apk add zip || true',
|
|
87
|
+
'apt update && apt install zip pkg-config -y || true',
|
|
86
88
|
'pip install cmake ninja',
|
|
87
89
|
'cmake --version', 'git --version', 'ninja --version',
|
|
88
90
|
]
|
|
@@ -157,7 +159,6 @@ isort.required-imports = ["from __future__ import annotations"]
|
|
|
157
159
|
[tool.pylint]
|
|
158
160
|
py-version = "3.8"
|
|
159
161
|
ignore-paths = [".*/_version.py"]
|
|
160
|
-
extension-pkg-allow-list = ["cppcheck._core"]
|
|
161
162
|
reports.output-format = "colorized"
|
|
162
163
|
similarities.ignore-imports = "yes"
|
|
163
164
|
messages_control.disable = [
|
|
@@ -11,8 +11,7 @@
|
|
|
11
11
|
"have-rules"
|
|
12
12
|
]
|
|
13
13
|
},
|
|
14
|
-
"cmake-modules"
|
|
15
|
-
"robotology-cmake-ycm"
|
|
14
|
+
"cmake-modules"
|
|
16
15
|
],
|
|
17
16
|
"overrides": [
|
|
18
17
|
{
|
|
@@ -21,18 +20,14 @@
|
|
|
21
20
|
},
|
|
22
21
|
{
|
|
23
22
|
"name": "cmake-modules",
|
|
24
|
-
"version": "1.6.
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
"name": "robotology-cmake-ycm",
|
|
28
|
-
"version": "0.16.3"
|
|
23
|
+
"version": "1.6.8"
|
|
29
24
|
}
|
|
30
25
|
],
|
|
31
26
|
"vcpkg-configuration": {
|
|
32
27
|
"registries": [
|
|
33
28
|
{
|
|
34
29
|
"kind": "git",
|
|
35
|
-
"baseline": "
|
|
30
|
+
"baseline": "60a98c312d8be8aa0013a69bb5158788702d8700",
|
|
36
31
|
"repository": "https://github.com/msclock/cmake-registry",
|
|
37
32
|
"packages": [
|
|
38
33
|
"cmake-modules",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cppcheck-1.4.0 → cppcheck-1.4.2}/cmake/vcpkg/bootstrap/vcpkg_skip_install_on_reconfigure.cmake
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|