cppcheck 1.4.7__tar.gz → 1.5.0__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.
Files changed (83) hide show
  1. {cppcheck-1.4.7 → cppcheck-1.5.0}/.copier-answers.yml +2 -1
  2. {cppcheck-1.4.7 → cppcheck-1.5.0}/.github/workflows/cd.yml +3 -3
  3. {cppcheck-1.4.7 → cppcheck-1.5.0}/.github/workflows/ci.yml +8 -6
  4. {cppcheck-1.4.7 → cppcheck-1.5.0}/.github/workflows/codeql.yml +4 -4
  5. {cppcheck-1.4.7 → cppcheck-1.5.0}/.github/workflows/pages.yml +2 -2
  6. {cppcheck-1.4.7 → cppcheck-1.5.0}/.github/workflows/ports.yml +6 -5
  7. {cppcheck-1.4.7 → cppcheck-1.5.0}/.github/workflows/renovate.yml +2 -2
  8. {cppcheck-1.4.7 → cppcheck-1.5.0}/.github/workflows/reuseable_cibuildwheel.yml +2 -2
  9. {cppcheck-1.4.7 → cppcheck-1.5.0}/.github/workflows/semantic-release.yml +2 -2
  10. {cppcheck-1.4.7 → cppcheck-1.5.0}/.pre-commit-config.yaml +6 -6
  11. cppcheck-1.5.0/.pre-commit-hooks.yaml +14 -0
  12. {cppcheck-1.4.7 → cppcheck-1.5.0}/.renovaterc.json +4 -2
  13. {cppcheck-1.4.7 → cppcheck-1.5.0}/.vscode/launch.json +1 -1
  14. {cppcheck-1.4.7 → cppcheck-1.5.0}/.vscode/settings.json +9 -2
  15. cppcheck-1.5.0/CMakeLists.txt +20 -0
  16. {cppcheck-1.4.7 → cppcheck-1.5.0}/PKG-INFO +5 -5
  17. cppcheck-1.5.0/cmake/ProjectOptions.cmake +106 -0
  18. cppcheck-1.5.0/cmake/presets/base.json +107 -0
  19. {cppcheck-1.4.7 → cppcheck-1.5.0}/cmake/presets/default.json +10 -0
  20. cppcheck-1.5.0/cmake/presets/generators/ninja.json +15 -0
  21. {cppcheck-1.4.7 → cppcheck-1.5.0}/cmake/vcpkg/bootstrap/vcpkg_bootstrap.cmake +4 -0
  22. {cppcheck-1.4.7 → cppcheck-1.5.0}/cmake/vcpkg/bootstrap/vcpkg_load_triplet.cmake +8 -5
  23. {cppcheck-1.4.7 → cppcheck-1.5.0}/cmake/vcpkg/vcpkg.toolchain.cmake +1 -2
  24. {cppcheck-1.4.7 → cppcheck-1.5.0}/noxfile.py +11 -1
  25. {cppcheck-1.4.7 → cppcheck-1.5.0}/pyproject.toml +1 -1
  26. {cppcheck-1.4.7 → cppcheck-1.5.0}/src/cppcheck/_version.py +9 -4
  27. {cppcheck-1.4.7 → cppcheck-1.5.0}/vcpkg.json +3 -3
  28. cppcheck-1.4.7/CMakeLists.txt +0 -38
  29. cppcheck-1.4.7/cmake/presets/base.json +0 -101
  30. cppcheck-1.4.7/cmake/presets/generators/ninja.json +0 -53
  31. {cppcheck-1.4.7 → cppcheck-1.5.0}/.devcontainer/devcontainer.json +0 -0
  32. {cppcheck-1.4.7 → cppcheck-1.5.0}/.editorconfig +0 -0
  33. {cppcheck-1.4.7 → cppcheck-1.5.0}/.gitattributes +0 -0
  34. {cppcheck-1.4.7 → cppcheck-1.5.0}/.github/codecov.yml +0 -0
  35. {cppcheck-1.4.7 → cppcheck-1.5.0}/.github/codeql-config.yml +0 -0
  36. {cppcheck-1.4.7 → cppcheck-1.5.0}/.github/matchers/pylint.json +0 -0
  37. {cppcheck-1.4.7 → cppcheck-1.5.0}/.gitignore +0 -0
  38. {cppcheck-1.4.7 → cppcheck-1.5.0}/.markdownlint.yaml +0 -0
  39. {cppcheck-1.4.7 → cppcheck-1.5.0}/.releaserc.js +0 -0
  40. {cppcheck-1.4.7 → cppcheck-1.5.0}/CMakePresets.json +0 -0
  41. {cppcheck-1.4.7 → cppcheck-1.5.0}/LICENSE +0 -0
  42. {cppcheck-1.4.7 → cppcheck-1.5.0}/README.md +0 -0
  43. {cppcheck-1.4.7 → cppcheck-1.5.0}/cmake/presets/arch/x64.json +0 -0
  44. {cppcheck-1.4.7 → cppcheck-1.5.0}/cmake/presets/compilers/gcc.json +0 -0
  45. {cppcheck-1.4.7 → cppcheck-1.5.0}/cmake/presets/compilers/llvm.json +0 -0
  46. {cppcheck-1.4.7 → cppcheck-1.5.0}/cmake/presets/compilers/mingw.json +0 -0
  47. {cppcheck-1.4.7 → cppcheck-1.5.0}/cmake/presets/compilers/msvc.json +0 -0
  48. {cppcheck-1.4.7 → cppcheck-1.5.0}/cmake/presets/os/darwin.json +0 -0
  49. {cppcheck-1.4.7 → cppcheck-1.5.0}/cmake/presets/os/linux.json +0 -0
  50. {cppcheck-1.4.7 → cppcheck-1.5.0}/cmake/presets/os/windows.json +0 -0
  51. {cppcheck-1.4.7 → cppcheck-1.5.0}/cmake/presets/toolchains/vcpkg.json +0 -0
  52. {cppcheck-1.4.7 → cppcheck-1.5.0}/cmake/presets/triplets/x64-linux.json +0 -0
  53. {cppcheck-1.4.7 → cppcheck-1.5.0}/cmake/presets/triplets/x64-mingw-dynamic.json +0 -0
  54. {cppcheck-1.4.7 → cppcheck-1.5.0}/cmake/presets/triplets/x64-mingw-static.json +0 -0
  55. {cppcheck-1.4.7 → cppcheck-1.5.0}/cmake/presets/triplets/x64-osx.json +0 -0
  56. {cppcheck-1.4.7 → cppcheck-1.5.0}/cmake/presets/triplets/x64-windows.json +0 -0
  57. {cppcheck-1.4.7 → cppcheck-1.5.0}/cmake/presets/x64-linux-gcc.json +0 -0
  58. {cppcheck-1.4.7 → cppcheck-1.5.0}/cmake/presets/x64-linux-llvm.json +0 -0
  59. {cppcheck-1.4.7 → cppcheck-1.5.0}/cmake/presets/x64-mingw-dynamic-windows-mingw.json +0 -0
  60. {cppcheck-1.4.7 → cppcheck-1.5.0}/cmake/presets/x64-mingw-static-windows-mingw.json +0 -0
  61. {cppcheck-1.4.7 → cppcheck-1.5.0}/cmake/presets/x64-osx-gcc.json +0 -0
  62. {cppcheck-1.4.7 → cppcheck-1.5.0}/cmake/presets/x64-osx-llvm.json +0 -0
  63. {cppcheck-1.4.7 → cppcheck-1.5.0}/cmake/presets/x64-windows-llvm.json +0 -0
  64. {cppcheck-1.4.7 → cppcheck-1.5.0}/cmake/presets/x64-windows-msvc.json +0 -0
  65. {cppcheck-1.4.7 → cppcheck-1.5.0}/cmake/vcpkg/bootstrap/vcpkg-config.cmake +0 -0
  66. {cppcheck-1.4.7 → cppcheck-1.5.0}/cmake/vcpkg/bootstrap/vcpkg_chainload_toolchain.cmake +0 -0
  67. {cppcheck-1.4.7 → cppcheck-1.5.0}/cmake/vcpkg/bootstrap/vcpkg_configure.cmake +0 -0
  68. {cppcheck-1.4.7 → cppcheck-1.5.0}/cmake/vcpkg/bootstrap/vcpkg_export_mode.cmake +0 -0
  69. {cppcheck-1.4.7 → cppcheck-1.5.0}/cmake/vcpkg/bootstrap/vcpkg_skip_install_on_reconfigure.cmake +0 -0
  70. {cppcheck-1.4.7 → cppcheck-1.5.0}/cmake/vcpkg/ports/README.md +0 -0
  71. {cppcheck-1.4.7 → cppcheck-1.5.0}/cmake/vcpkg/ports/cppcheck/portfile.cmake +0 -0
  72. {cppcheck-1.4.7 → cppcheck-1.5.0}/cmake/vcpkg/ports/cppcheck/vcpkg.json +0 -0
  73. {cppcheck-1.4.7 → cppcheck-1.5.0}/cmake/vcpkg/scripts/build_type.cmake +0 -0
  74. {cppcheck-1.4.7 → cppcheck-1.5.0}/cmake/vcpkg/scripts/toolchains/README.md +0 -0
  75. {cppcheck-1.4.7 → cppcheck-1.5.0}/cmake/vcpkg/triplets/README.md +0 -0
  76. {cppcheck-1.4.7 → cppcheck-1.5.0}/docs/api/index.md +0 -0
  77. {cppcheck-1.4.7 → cppcheck-1.5.0}/docs/conf.py +0 -0
  78. {cppcheck-1.4.7 → cppcheck-1.5.0}/docs/index.md +0 -0
  79. {cppcheck-1.4.7 → cppcheck-1.5.0}/src/cppcheck/__init__.py +0 -0
  80. {cppcheck-1.4.7 → cppcheck-1.5.0}/src/cppcheck/__main__.py +0 -0
  81. {cppcheck-1.4.7 → cppcheck-1.5.0}/src/cppcheck/_version.pyi +0 -0
  82. {cppcheck-1.4.7 → cppcheck-1.5.0}/src/cppcheck/py.typed +0 -0
  83. {cppcheck-1.4.7 → cppcheck-1.5.0}/tests/test_package.py +0 -0
@@ -1,5 +1,5 @@
1
1
  # Changes here will be overwritten by Copier; NEVER EDIT MANUALLY
2
- _commit: v0.8.24
2
+ _commit: v0.8.31
3
3
  _src_path: https://github.com/serious-scaffold/ss-pybind11
4
4
  author_email: msclock@126.com
5
5
  author_name: l.feng
@@ -18,6 +18,7 @@ module_name: cppcheck
18
18
  organization_name: msclock
19
19
  project_description: Package cppcheck as a python wheel.
20
20
  project_name: Cppcheck Wheel
21
+ repo_host: github.com
21
22
  repo_name: cppcheck-wheel
22
23
  repo_namespace: msclock
23
24
  repo_platform: github
@@ -27,7 +27,7 @@ jobs:
27
27
  - name: Build SDist
28
28
  run: pipx run build --sdist
29
29
 
30
- - uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4
30
+ - uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4
31
31
  with:
32
32
  name: cibw-sdist
33
33
  path: dist/*.tar.gz
@@ -46,7 +46,7 @@ jobs:
46
46
  needs: [build_wheels, build_sdist]
47
47
  runs-on: ubuntu-24.04
48
48
  steps:
49
- - uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4
49
+ - uses: actions/download-artifact@cc203385981b70ca67e1cc392babf9cc229d5806 # v4
50
50
  with:
51
51
  pattern: cibw-*
52
52
  path: dist
@@ -66,7 +66,7 @@ jobs:
66
66
  if: github.event_name == 'release' && github.event.action == 'published'
67
67
 
68
68
  steps:
69
- - uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4
69
+ - uses: actions/download-artifact@cc203385981b70ca67e1cc392babf9cc229d5806 # v4
70
70
  with:
71
71
  pattern: cibw-*
72
72
  path: dist
@@ -27,7 +27,7 @@ jobs:
27
27
  with:
28
28
  fetch-depth: 0
29
29
 
30
- - uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5
30
+ - uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5
31
31
  with:
32
32
  python-version: 3.x
33
33
 
@@ -60,7 +60,7 @@ jobs:
60
60
  fetch-depth: 0
61
61
 
62
62
  - name: Cache
63
- uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4
63
+ uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4
64
64
  with:
65
65
  path: |
66
66
  ~/vcpkg
@@ -69,7 +69,7 @@ jobs:
69
69
  key: codecov-${{ hashFiles('vcpkg.json') }}
70
70
  restore-keys: codecov-${{ hashFiles('vcpkg.json') }}
71
71
 
72
- - uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5
72
+ - uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5
73
73
  with:
74
74
  python-version: 3.x
75
75
 
@@ -82,7 +82,9 @@ jobs:
82
82
  --durations=20
83
83
 
84
84
  - name: Upload coverage report
85
- uses: codecov/codecov-action@7f8b4b4bde536c465e797be725718b88c5d95e0e # v5.1.1
85
+ uses: codecov/codecov-action@13ce06bfc6bbe3ecf90edbbf1bc32fe5978ca1d3 # v5.3.1
86
+ with:
87
+ token: ${{ secrets.CODECOV_TOKEN }}
86
88
 
87
89
 
88
90
  check-docs:
@@ -95,7 +97,7 @@ jobs:
95
97
  fetch-depth: 0
96
98
 
97
99
  - name: Cache
98
- uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4
100
+ uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4
99
101
  with:
100
102
  path: |
101
103
  ~/vcpkg
@@ -104,7 +106,7 @@ jobs:
104
106
  key: docs-${{ hashFiles('vcpkg.json') }}
105
107
  restore-keys: docs-${{ hashFiles('vcpkg.json') }}
106
108
 
107
- - uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5
109
+ - uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5
108
110
  with:
109
111
  python-version: 3.x
110
112
 
@@ -49,13 +49,13 @@ jobs:
49
49
  fetch-depth: 0
50
50
 
51
51
  - name: Initialize CodeQL
52
- uses: github/codeql-action/init@df409f7d9260372bd5f19e5b04e83cb3c43714ae # v3.27.9
52
+ uses: github/codeql-action/init@b56ba49b26e50535fa1e7f7db0f4f7b4bf65d80d # v3.28.10
53
53
  with:
54
54
  languages: ${{ matrix.language }}
55
55
  config-file: ./.github/codeql-config.yml
56
56
 
57
57
  - name: Cache
58
- uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4
58
+ uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4
59
59
  with:
60
60
  path: |
61
61
  ~/vcpkg
@@ -63,7 +63,7 @@ jobs:
63
63
  key: codeql-${{ hashFiles('vcpkg.json') }}
64
64
  restore-keys: codeql-${{ hashFiles('vcpkg.json') }}
65
65
 
66
- - uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5
66
+ - uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5
67
67
  with:
68
68
  python-version: 3.x
69
69
 
@@ -71,4 +71,4 @@ jobs:
71
71
  run: python -m pip install .[test]
72
72
 
73
73
  - name: Perform CodeQL Analysis
74
- uses: github/codeql-action/analyze@df409f7d9260372bd5f19e5b04e83cb3c43714ae # v3.27.9
74
+ uses: github/codeql-action/analyze@b56ba49b26e50535fa1e7f7db0f4f7b4bf65d80d # v3.28.10
@@ -36,7 +36,7 @@ jobs:
36
36
  ref: ${{ github.head_ref }}
37
37
 
38
38
  - name: Cache
39
- uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4
39
+ uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4
40
40
  with:
41
41
  path: |
42
42
  ~/vcpkg
@@ -45,7 +45,7 @@ jobs:
45
45
  key: cd-pages-${{ hashFiles('vcpkg.json') }}
46
46
  restore-keys: cd-pages-${{ hashFiles('vcpkg.json') }}
47
47
 
48
- - uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5
48
+ - uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5
49
49
  with:
50
50
  python-version: 3.x
51
51
 
@@ -18,7 +18,7 @@ jobs:
18
18
  - name: Generate a bot token with BOT_APP_ID
19
19
  id: bot_token
20
20
  if: vars.BOT_APP_ID && env.BOT_PRIVATE_KEY != null
21
- uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1
21
+ uses: actions/create-github-app-token@21cfef2b496dd8ef5b904c159339626a10ad380e # v1
22
22
  env:
23
23
  BOT_PRIVATE_KEY: ${{ secrets.BOT_PRIVATE_KEY }}
24
24
  with:
@@ -37,7 +37,7 @@ jobs:
37
37
  vcpkg format-manifest --all $(find cmake/vcpkg/ports/ -name "vcpkg.json")
38
38
 
39
39
  - name: Commit format vcpkg.json
40
- uses: stefanzweifel/git-auto-commit-action@8621497c8c39c72f3e2a999a26b4ca1b5058a842 # v5
40
+ uses: stefanzweifel/git-auto-commit-action@e348103e9026cc0eee72ae06630dbe30c8bf7a79 # v5
41
41
  if: success()
42
42
  with:
43
43
  commit_message: 'ci: format vcpkg configuration'
@@ -59,8 +59,9 @@ jobs:
59
59
  install_output=$(vcpkg install ${dir##cmake/vcpkg/ports/} --overlay-ports=cmake/vcpkg/ports --classic) || status=$?
60
60
  if [[ ! $status -eq 0 ]]; then
61
61
  echo " Update hash on $dir/portfile.cmake"
62
- expected=$(echo "$install_output" | grep -oP "(?<=Expected hash: ).{128}")
63
- actual=$(echo "$install_output" | grep -oP "(?<=Actual hash: ).{128}")
62
+ hashes=$(echo "$install_output" | grep -oP "(?<=: )[\d\w]{128}")
63
+ expected=$(echo $hashes | cut -d' ' -f1)
64
+ actual=$(echo $hashes | cut -d' ' -f2)
64
65
  sed -i "s@${expected}@${actual}@g" "$dir/portfile.cmake"
65
66
  echo " Expected hash: ${expected}"
66
67
  echo " Actual hash: ${actual}"
@@ -79,7 +80,7 @@ jobs:
79
80
 
80
81
  - name: Commit port hash
81
82
  if: steps.filter-hash.outputs.ports == 'true'
82
- uses: stefanzweifel/git-auto-commit-action@8621497c8c39c72f3e2a999a26b4ca1b5058a842 # v5
83
+ uses: stefanzweifel/git-auto-commit-action@e348103e9026cc0eee72ae06630dbe30c8bf7a79 # v5
83
84
  with:
84
85
  file_pattern: cmake/vcpkg/ports/*
85
86
  commit_message: 'ci: update port hash'
@@ -19,7 +19,7 @@ jobs:
19
19
  RENOVATE_PLATFORM: github
20
20
  RENOVATE_REPOSITORIES: '["${{ github.repository }}"]'
21
21
  RENOVATE_REPOSITORY_CACHE: enabled
22
- image: ghcr.io/renovatebot/renovate:39.49.3@sha256:4d9cc0778b1a353b5a36be5411d11ba8edc00126161ceb9fbae460793f1f3530
22
+ image: ghcr.io/renovatebot/renovate:39.185.7@sha256:b8539ceb56a431eb34d76b2cf097555e11515ed7f1880fa201a8b2102d44df48
23
23
  options: --user root
24
24
  runs-on: ubuntu-24.04
25
25
  steps:
@@ -28,7 +28,7 @@ jobs:
28
28
  - name: Generate a token with GitHub App if App ID exists
29
29
  id: generate-token
30
30
  if: vars.BOT_APP_ID
31
- uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1
31
+ uses: actions/create-github-app-token@21cfef2b496dd8ef5b904c159339626a10ad380e # v1
32
32
  with:
33
33
  app-id: ${{ vars.BOT_APP_ID }}
34
34
  private-key: ${{ secrets.BOT_PRIVATE_KEY }}
@@ -45,7 +45,7 @@ jobs:
45
45
  arch: ${{ matrix.arch }}
46
46
 
47
47
  - name: Set up QEMU
48
- uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3.2.0
48
+ uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0
49
49
  if: runner.os == 'Linux' && inputs.extra && contains(matrix.qemu_arch, matrix.arch)
50
50
 
51
51
  - name: Build wheels
@@ -61,7 +61,7 @@ jobs:
61
61
  if: >
62
62
  inputs.auto && !contains(matrix.qemu_arch, matrix.arch) ||
63
63
  inputs.extra && contains(matrix.qemu_arch, matrix.arch)
64
- uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4
64
+ uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4
65
65
  with:
66
66
  name: cibw-${{ matrix.os }}-${{ matrix.build }}-${{ matrix.arch }}
67
67
  path: wheelhouse/*.whl
@@ -24,7 +24,7 @@ jobs:
24
24
  - name: Generate a bot token with BOT_APP_ID
25
25
  id: bot_token
26
26
  if: vars.BOT_APP_ID && env.BOT_PRIVATE_KEY != null
27
- uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1
27
+ uses: actions/create-github-app-token@21cfef2b496dd8ef5b904c159339626a10ad380e # v1
28
28
  env:
29
29
  BOT_PRIVATE_KEY: ${{ secrets.BOT_PRIVATE_KEY }}
30
30
  with:
@@ -46,7 +46,7 @@ jobs:
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@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4
49
+ uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4
50
50
  with:
51
51
  node-version: lts/*
52
52
 
@@ -48,7 +48,7 @@ repos:
48
48
 
49
49
  # Strong lint from ruff
50
50
  - repo: https://github.com/astral-sh/ruff-pre-commit
51
- rev: v0.8.2
51
+ rev: v0.9.9
52
52
  hooks:
53
53
  - id: ruff
54
54
  args: [--fix, --show-fixes]
@@ -56,7 +56,7 @@ repos:
56
56
 
57
57
  # Mypy Check
58
58
  - repo: https://github.com/pre-commit/mirrors-mypy
59
- rev: v1.13.0
59
+ rev: v1.15.0
60
60
  hooks:
61
61
  - id: mypy
62
62
  files: src|tests
@@ -108,7 +108,7 @@ repos:
108
108
 
109
109
  # Check jsonschema
110
110
  - repo: https://github.com/python-jsonschema/check-jsonschema
111
- rev: 0.30.0
111
+ rev: 0.31.1
112
112
  hooks:
113
113
  - id: check-dependabot
114
114
  - id: check-github-workflows
@@ -116,7 +116,7 @@ repos:
116
116
 
117
117
  # Check for spelling
118
118
  - repo: https://github.com/codespell-project/codespell
119
- rev: v2.3.0
119
+ rev: v2.4.1
120
120
  hooks:
121
121
  - id: codespell
122
122
  args:
@@ -132,13 +132,13 @@ repos:
132
132
 
133
133
  # Check for markdown
134
134
  - repo: https://github.com/igorshubovych/markdownlint-cli
135
- rev: v0.43.0
135
+ rev: v0.44.0
136
136
  hooks:
137
137
  - id: markdownlint-fix
138
138
 
139
139
  # Check for renovate config
140
140
  - repo: https://github.com/renovatebot/pre-commit-hooks
141
- rev: 39.49.3
141
+ rev: 39.185.6
142
142
  hooks:
143
143
  - id: renovate-config-validator
144
144
  stages: [manual]
@@ -0,0 +1,14 @@
1
+ - id: cppcheck
2
+ name: Cppcheck
3
+ description: Run cppcheck for static analysis of C/C++ code
4
+ entry: cppcheck
5
+ args:
6
+ - --inconclusive
7
+ - --suppress=missingIncludeSystem
8
+ - src
9
+ language: python
10
+ files: \.(cpp|cc|c\+\+|cxx|c)$
11
+ types_or:
12
+ - c++
13
+ - c
14
+ require_serial: true
@@ -16,8 +16,10 @@
16
16
  "auto-approval"
17
17
  ],
18
18
  "extends": [
19
- "schedule:earlyMondays",
20
- "schedule:automergeMonthly"
19
+ "schedule:earlyMondays"
20
+ ],
21
+ "automergeSchedule": [
22
+ "* 0-3 1-7 * *"
21
23
  ],
22
24
  "matchUpdateTypes": [
23
25
  "minor",
@@ -11,7 +11,7 @@
11
11
  "program": "${command:cmake.launchTargetPath}",
12
12
  "args": [],
13
13
  "stopAtEntry": false,
14
- "cwd": "${fileDirname}",
14
+ "cwd": "${command:cmake.launchTargetDirectory}",
15
15
  "environment": [],
16
16
  "externalConsole": false,
17
17
  "MIMode": "gdb",
@@ -1,9 +1,16 @@
1
1
  {
2
- "python.testing.pytestArgs": ["tests"],
2
+ "python.testing.pytestArgs": [
3
+ "tests",
4
+ "-ra",
5
+ "--showlocals",
6
+ "--strict-markers",
7
+ "--strict-config"
8
+ ],
3
9
  "python.testing.unittestEnabled": false,
4
10
  "python.testing.pytestEnabled": true,
11
+ "cmake.configureOnEdit": false,
12
+ "cmake.options.statusBarVisibility": "icon",
5
13
  "cmake.useCMakePresets": "always",
6
- "cmake.options.statusBarVisibility": "compact",
7
14
  "files.associations": {
8
15
  "iosfwd": "cpp",
9
16
  "type_traits": "cpp",
@@ -0,0 +1,20 @@
1
+ cmake_minimum_required(VERSION 3.25)
2
+ message(STATUS "CMAKE VERSION:${CMAKE_VERSION}")
3
+
4
+ project(
5
+ cppcheck
6
+ LANGUAGES CXX C
7
+ HOMEPAGE_URL "https://github.com/msclock/cppcheck-wheel"
8
+ DESCRIPTION "Package cppcheck as a python wheel.")
9
+
10
+ # Project default module
11
+ find_package(cmake-modules REQUIRED)
12
+ include(cmake-modules/ProjectDefault)
13
+
14
+ find_program(cppcheck NAMES "cppcheck" "cppcheck.exe")
15
+ cmake_path(GET cppcheck PARENT_PATH cppcheck_dir)
16
+ file(GLOB cppcheck_runtimes ${cppcheck_dir}/*)
17
+ install(PROGRAMS ${cppcheck_runtimes}
18
+ DESTINATION ${CMAKE_PROJECT_NAME}/Cppcheck)
19
+ install(DIRECTORY ${VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/share/Cppcheck
20
+ DESTINATION ${CMAKE_PROJECT_NAME})
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cppcheck
3
- Version: 1.4.7
3
+ Version: 1.5.0
4
4
  Summary: Package cppcheck as a python wheel.
5
5
  Author-Email: "l.feng" <msclock@126.com>
6
6
  License: Apache-2.0
@@ -21,24 +21,24 @@ Classifier: Programming Language :: Python :: 3.13
21
21
  Classifier: Topic :: Scientific/Engineering
22
22
  Classifier: Typing :: Typed
23
23
  Project-URL: Homepage, https://github.com/msclock/cppcheck-wheel
24
- Project-URL: Bug tracker, https://github.com/msclock/cppcheck-wheel/issues
24
+ Project-URL: Bug Tracker, https://github.com/msclock/cppcheck-wheel/issues
25
25
  Project-URL: Discussions, https://github.com/msclock/cppcheck-wheel/discussions
26
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
30
+ Provides-Extra: test
30
31
  Requires-Dist: pytest>=6; extra == "test"
31
32
  Requires-Dist: pytest-cov>=3; extra == "test"
33
+ Provides-Extra: dev
32
34
  Requires-Dist: pytest>=6; extra == "dev"
33
35
  Requires-Dist: pytest-cov>=3; extra == "dev"
36
+ Provides-Extra: docs
34
37
  Requires-Dist: sphinx>=7.0; extra == "docs"
35
38
  Requires-Dist: myst_parser>=0.13; extra == "docs"
36
39
  Requires-Dist: sphinx_copybutton; extra == "docs"
37
40
  Requires-Dist: sphinx_autodoc_typehints; extra == "docs"
38
41
  Requires-Dist: furo>=2023.08.17; extra == "docs"
39
- Provides-Extra: test
40
- Provides-Extra: dev
41
- Provides-Extra: docs
42
42
  Description-Content-Type: text/markdown
43
43
 
44
44
  # Cppcheck Wheel
@@ -0,0 +1,106 @@
1
+ #[[
2
+ ProjectOptions.cmake - Defines project-specific options for CMake.
3
+ ]]
4
+
5
+ set(CMAKE_CXX_STANDARD
6
+ 20
7
+ CACHE STRING "C++ standard")
8
+ set(CMAKE_CXX_STANDARD_REQUIRED
9
+ ON
10
+ CACHE BOOL "C++ standard required")
11
+ set(CMAKE_CXX_EXTENSIONS
12
+ OFF
13
+ CACHE BOOL "C++ extensions")
14
+
15
+ # ##############################################################################
16
+ # Sanitizer - cmake-modules/build/Sanitizer.cmake
17
+ # ##############################################################################
18
+
19
+ set(USE_SANITIZER
20
+ OFF
21
+ CACHE BOOL "Enable sanitizer")
22
+
23
+ # ##############################################################################
24
+ # Valgrind - cmake-modules/test/Valgrind.cmake
25
+ # ##############################################################################
26
+
27
+ set(USE_VALGRIND
28
+ OFF
29
+ CACHE BOOL "Enable Valgrind")
30
+ set(USE_VALGRIND_OPTIONS
31
+ --leak-check=full # Each individual leak will be shown in detail.
32
+ --show-leak-kinds=all # Show all of "definite, indirect, possible,
33
+ # reachable" leak kinds in the "full" report.
34
+ --gen-suppressions=all # gen suppress info automatically.
35
+ --track-origins=yes # Favor useful output over speed. This tracks the
36
+ # origins of uninitialized values, which could be very
37
+ # useful for memory errors. Consider turning off if
38
+ # Valgrind is unacceptably slow.
39
+ CACHE STRING "valgrind options.")
40
+
41
+ # ##############################################################################
42
+ # Clang-Tidy - cmake-modules/build/ClangTidy.cmake
43
+ # ##############################################################################
44
+
45
+ set(USE_CLANGTIDY
46
+ OFF
47
+ CACHE BOOL "Enable Clang-Tidy")
48
+
49
+ # ##############################################################################
50
+ # Cppcheck - cmake-modules/build/Cppcheck.cmake
51
+ # ##############################################################################
52
+
53
+ set(USE_CPPCHECK
54
+ OFF
55
+ CACHE BOOL "Enable Cppcheck")
56
+ set(USE_CPPCHECK_SUPPRESSION_FILE
57
+ ${CMAKE_SOURCE_DIR}/.cppcheck-suppressions.txt
58
+ CACHE STRING
59
+ "Customize the path to the Cppcheck suppressions file of the project")
60
+
61
+ # ##############################################################################
62
+ # Hardening - cmake-modules/build/Hardening.cmake
63
+ # ##############################################################################
64
+
65
+ # Comment `-Wl,-z,nodlopen` for dlopen call
66
+ if(NOT MSVC)
67
+ set(USE_HARDENING_FLAGS
68
+ -D_GLIBCXX_ASSERTIONS # Enable assertions
69
+ -U_FORTIFY_SOURCE # Disable stack protector
70
+ -D_FORTIFY_SOURCE=3 # Enable stack protector
71
+ -fstack-protector-strong # Enable stack protector
72
+ -fcf-protection # Control Flow Guard
73
+ -fstack-clash-protection # Control Flow Guard
74
+ -Wimplicit-fallthrough # Enabled in compiler flags by default
75
+ -fstrict-flex-arrays=3 # Enable strict array bounds
76
+ -Wformat # Enabled in compiler flags by default
77
+ -Wformat=2 # Enabled in compiler flags by default
78
+ # -Wl,-z,nodlopen # Restrict dlopen(3) calls to shared objects
79
+ -Wl,-z,noexecstack # Enable data execution prevention by marking stack
80
+ # memory as non-executable
81
+ -Wl,-z,relro # Mark relocation table entries resolved at load-time as
82
+ # read-only
83
+ -Wl,-z,now # Mark relocation table entries resolved at load-time as
84
+ # read-only. It impacts startup performance
85
+ "-fsanitize=undefined -fsanitize-minimal-runtime" # Enable minimal runtime
86
+ # undefined behavior sanitizer
87
+ -fno-delete-null-pointer-checks
88
+ -fno-strict-overflow
89
+ -fno-strict-aliasing
90
+ -ftrivial-auto-var-init=zero
91
+ -Wtrampolines # Enable trampolines(gcc only)
92
+ -mbranch-protection=standard # Enable indirect branches(aarch64 only)
93
+ CACHE STRING "Additional hardening compilation flags for GCC/Clang")
94
+
95
+ set(USE_HARDENING_LINKS
96
+ -fstack-protector-strong # Enable stack protector
97
+ "-fsanitize=undefined -fsanitize-minimal-runtime"
98
+ # -Wl,-z,nodlopen # Restrict dlopen(3) calls to shared objects
99
+ -Wl,-z,noexecstack # Enable data execution prevention by marking stack
100
+ # memory as non-executable
101
+ -Wl,-z,relro # Mark relocation table entries resolved at load-time as
102
+ # read-only
103
+ -Wl,-z,now # Mark relocation table entries resolved at load-time as
104
+ # read-only. It impacts startup performance
105
+ CACHE STRING "Additional hardening linking flags for GCC/Clang")
106
+ endif()
@@ -0,0 +1,107 @@
1
+ {
2
+ "version": 6,
3
+ "include": [
4
+ "generators/ninja.json",
5
+ "toolchains/vcpkg.json"
6
+ ],
7
+ "configurePresets": [
8
+ {
9
+ "name": "base-common",
10
+ "hidden":true,
11
+ "binaryDir":"${sourceDir}/out/build/${presetName}",
12
+ "installDir":"${sourceDir}/out/install/${presetName}",
13
+ "cacheVariables":{
14
+ "CMAKE_COMPILE_WARNING_AS_ERROR":false,
15
+ "CMAKE_EXPORT_COMPILE_COMMANDS":true,
16
+ "CMAKE_VERBOSE_MAKEFILE":"FALSE"
17
+ }
18
+ },
19
+ {
20
+ "name": "base",
21
+ "hidden": true,
22
+ "inherits": [
23
+ "base-common",
24
+ "ninja",
25
+ "vcpkg"
26
+ ],
27
+ "cacheVariables": {
28
+ "CMAKE_BUILD_TYPE": "Debug"
29
+ }
30
+ },
31
+ {
32
+ "name": "base-config",
33
+ "hidden": true,
34
+ "inherits": [
35
+ "base-common",
36
+ "ninja-config",
37
+ "vcpkg"
38
+ ]
39
+ }
40
+ ],
41
+ "buildPresets": [
42
+ {
43
+ "name": "base",
44
+ "hidden": true,
45
+ "configurePreset": "base"
46
+ },
47
+ {
48
+ "name": "base-config-debug",
49
+ "hidden": true,
50
+ "configurePreset": "base-config",
51
+ "configuration": "Debug"
52
+ },
53
+ {
54
+ "name": "base-config-relwithdebinfo",
55
+ "hidden": true,
56
+ "configurePreset": "base-config",
57
+ "configuration": "RelWithDebInfo"
58
+ },
59
+ {
60
+ "name": "base-config-release",
61
+ "hidden": true,
62
+ "configurePreset": "base-config",
63
+ "configuration": "Release"
64
+ }
65
+ ],
66
+ "testPresets": [
67
+ {
68
+ "name": "base",
69
+ "hidden": true,
70
+ "configurePreset": "base",
71
+ "output": {
72
+ "outputOnFailure": true
73
+ },
74
+ "execution": {
75
+ "noTestsAction": "error",
76
+ "stopOnFailure": true
77
+ }
78
+ },
79
+ {
80
+ "name": "base-config-relwithdebinfo",
81
+ "hidden": true,
82
+ "inherits": [
83
+ "base"
84
+ ],
85
+ "configurePreset": "base-config",
86
+ "configuration": "RelWithDebInfo"
87
+ },
88
+ {
89
+ "name": "base-config-debug",
90
+ "hidden": true,
91
+ "inherits": [
92
+ "base"
93
+ ],
94
+ "configurePreset": "base-config",
95
+ "configuration": "Debug"
96
+ },
97
+ {
98
+ "name": "base-config-release",
99
+ "hidden": true,
100
+ "inherits": [
101
+ "base"
102
+ ],
103
+ "configurePreset": "base-config",
104
+ "configuration": "Release"
105
+ }
106
+ ]
107
+ }
@@ -32,6 +32,11 @@
32
32
  "name": "default-config-debug",
33
33
  "inherits": "base-config-debug",
34
34
  "configurePreset": "default-config"
35
+ },
36
+ {
37
+ "name": "default-config-release",
38
+ "inherits": "base-config-release",
39
+ "configurePreset": "default-config"
35
40
  }
36
41
  ],
37
42
  "testPresets": [
@@ -49,6 +54,11 @@
49
54
  "name": "default-config-debug",
50
55
  "inherits": "base-config-debug",
51
56
  "configurePreset": "default-config"
57
+ },
58
+ {
59
+ "name": "default-config-release",
60
+ "inherits": "base-config-release",
61
+ "configurePreset": "default-config"
52
62
  }
53
63
  ]
54
64
  }
@@ -0,0 +1,15 @@
1
+ {
2
+ "version": 6,
3
+ "configurePresets": [
4
+ {
5
+ "name": "ninja",
6
+ "hidden": true,
7
+ "generator": "Ninja"
8
+ },
9
+ {
10
+ "name": "ninja-config",
11
+ "hidden": true,
12
+ "generator": "Ninja Multi-Config"
13
+ }
14
+ ]
15
+ }
@@ -188,6 +188,10 @@ function(_vcpkg_bootstrap)
188
188
  "${arg_UNPARSED_ARGUMENTS}")
189
189
  endif()
190
190
 
191
+ if(NOT DEFINED arg_REPO)
192
+ set(arg_REPO https://github.com/microsoft/vcpkg.git)
193
+ endif()
194
+
191
195
  find_package(Git QUIET REQUIRED)
192
196
 
193
197
  if(DEFINED CACHE{_VCPKG_ROOT})
@@ -207,19 +207,22 @@ macro(_vcpkg_load_triplet)
207
207
  set(_community_triplet "triplets/community/${VCPKG_TARGET_TRIPLET}.cmake")
208
208
 
209
209
  if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/${_triplet}")
210
- include("${CMAKE_CURRENT_LIST_DIR}/${_triplet}")
210
+ set(_load_triplet "${CMAKE_CURRENT_LIST_DIR}/${_triplet}")
211
211
  elseif(EXISTS "${_VCPKG_ROOT}/${_triplet}")
212
- include("${_VCPKG_ROOT}/${_triplet}")
213
- elseif(EXISTS "${CMAKE_CURRENT_LIST_DIR}/${_community_triplet}")
214
- include("${CMAKE_CURRENT_LIST_DIR}/${_community_triplet}")
212
+ set(_load_triplet "${_VCPKG_ROOT}/${_triplet}")
215
213
  elseif(EXISTS "${_VCPKG_ROOT}/${_community_triplet}")
216
- include("${_VCPKG_ROOT}/${_community_triplet}")
214
+ set(_load_triplet "${_VCPKG_ROOT}/${_community_triplet}")
217
215
  else()
218
216
  message(
219
217
  FATAL_ERROR
220
218
  "Triplet ${VCPKG_TARGET_TRIPLET} not found at ${CMAKE_CURRENT_LIST_DIR}/${_triplet} or ${_VCPKG_ROOT}/${_triplet}"
221
219
  )
222
220
  endif()
221
+
222
+ message(STATUS "Loading triplet: ${_load_triplet}")
223
+ include(${_load_triplet})
224
+
223
225
  unset(_triplet)
224
226
  unset(_community_triplet)
227
+ unset(_load_triplet)
225
228
  endmacro(_vcpkg_load_triplet)
@@ -27,5 +27,4 @@ set(VCPKG_VERBOSE
27
27
 
28
28
  file(READ ${CMAKE_SOURCE_DIR}/vcpkg.json _vcpkg_json)
29
29
  string(JSON _builtin_baseline GET ${_vcpkg_json} builtin-baseline)
30
- vcpkg_configure(CACHE_DIR_NAME cppcheck-wheel REPO
31
- https://github.com/microsoft/vcpkg.git REF ${_builtin_baseline})
30
+ vcpkg_configure(CACHE_DIR_NAME cppcheck-wheel REF ${_builtin_baseline})
@@ -11,7 +11,7 @@ DIR = Path(__file__).parent.resolve()
11
11
  nox.options.sessions = ["lint", "pylint", "tests"]
12
12
 
13
13
 
14
- @nox.session
14
+ @nox.session(reuse_venv=True)
15
15
  def lint(session: nox.Session) -> None:
16
16
  """
17
17
  Run the linter.
@@ -90,3 +90,13 @@ def build(session: nox.Session) -> None:
90
90
 
91
91
  session.install("build")
92
92
  session.run("python", "-m", "build")
93
+
94
+
95
+ @nox.session(reuse_venv=True)
96
+ def pyi(session: nox.Session) -> None:
97
+ """
98
+ Generate the Pyi type stubs.
99
+ """
100
+ session.install("pybind11-stubgen")
101
+ session.install(".[test]")
102
+ session.run("pybind11-stubgen", "cppcheck._core", "-o", "src")
@@ -164,7 +164,7 @@ isort.required-imports = ["from __future__ import annotations"]
164
164
 
165
165
  [tool.pylint]
166
166
  py-version = "3.8"
167
- ignore-paths = [".*/_version.py"]
167
+ ignore-paths = [".*/_version.py", ".*/*.pyi"]
168
168
  reports.output-format = "colorized"
169
169
  similarities.ignore-imports = "yes"
170
170
  messages_control.disable = [
@@ -1,8 +1,13 @@
1
- # file generated by setuptools_scm
1
+ # file generated by setuptools-scm
2
2
  # don't change, don't track in version control
3
+
4
+ __all__ = ["__version__", "__version_tuple__", "version", "version_tuple"]
5
+
3
6
  TYPE_CHECKING = False
4
7
  if TYPE_CHECKING:
5
- from typing import Tuple, Union
8
+ from typing import Tuple
9
+ from typing import Union
10
+
6
11
  VERSION_TUPLE = Tuple[Union[int, str], ...]
7
12
  else:
8
13
  VERSION_TUPLE = object
@@ -12,5 +17,5 @@ __version__: str
12
17
  __version_tuple__: VERSION_TUPLE
13
18
  version_tuple: VERSION_TUPLE
14
19
 
15
- __version__ = version = '1.4.7'
16
- __version_tuple__ = version_tuple = (1, 4, 7)
20
+ __version__ = version = '1.5.0'
21
+ __version_tuple__ = version_tuple = (1, 5, 0)
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json",
3
3
  "name": "cppcheck-wheel",
4
4
  "description": "Package cppcheck as a python wheel.",
5
- "builtin-baseline": "20a72ce99b12dd0ebfea5d39f32681bd68b19d03",
5
+ "builtin-baseline": "65be7019941e1401e02daaba0738cab2c8a4a355",
6
6
  "homepage": "https://github.com/msclock/cppcheck-wheel",
7
7
  "dependencies": [
8
8
  {
@@ -25,14 +25,14 @@
25
25
  },
26
26
  {
27
27
  "name": "cmake-modules",
28
- "version": "1.6.11"
28
+ "version": "1.6.14"
29
29
  }
30
30
  ],
31
31
  "vcpkg-configuration": {
32
32
  "registries": [
33
33
  {
34
34
  "kind": "git",
35
- "baseline": "09ae1472980f5e2132654900bb48061444b1cea5",
35
+ "baseline": "cc674648cf1b89396d9ebe14d7241aa365d12f49",
36
36
  "repository": "https://github.com/msclock/cmake-registry",
37
37
  "packages": [
38
38
  "cmake-modules",
@@ -1,38 +0,0 @@
1
- cmake_minimum_required(VERSION 3.25)
2
- message(STATUS "CMAKE VERSION:${CMAKE_VERSION}")
3
-
4
- if(NOT DEFINED SKBUILD_PROJECT_NAME)
5
- set(SKBUILD_PROJECT_NAME _core)
6
- set(SKBUILD_PROJECT_VERSION 0.0.0)
7
- endif()
8
-
9
- message(
10
- STATUS
11
- "Building CMake project ${SKBUILD_PROJECT_NAME} ${SKBUILD_PROJECT_VERSION}")
12
-
13
- project(
14
- ${SKBUILD_PROJECT_NAME}
15
- VERSION ${SKBUILD_PROJECT_VERSION}
16
- LANGUAGES C CXX)
17
-
18
- set(CMAKE_CXX_STANDARD
19
- 20
20
- CACHE STRING "C++ standard")
21
- set(CMAKE_CXX_STANDARD_REQUIRED
22
- ON
23
- CACHE BOOL "C++ standard required")
24
- set(CMAKE_CXX_EXTENSIONS
25
- OFF
26
- CACHE BOOL "C++ extensions")
27
-
28
- # Project default module
29
- find_package(cmake-modules REQUIRED)
30
- include(cmake-modules/ProjectDefault)
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)
37
- install(DIRECTORY ${VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/share/Cppcheck
38
- DESTINATION ${SKBUILD_PROJECT_NAME})
@@ -1,101 +0,0 @@
1
- {
2
- "version": 6,
3
- "include": [
4
- "generators/ninja.json",
5
- "toolchains/vcpkg.json"
6
- ],
7
- "configurePresets": [
8
- {
9
- "name": "base",
10
- "hidden": true,
11
- "inherits": [
12
- "ninja",
13
- "vcpkg"
14
- ],
15
- "binaryDir": "${sourceDir}/out/build/${presetName}",
16
- "installDir": "${sourceDir}/out/install/${presetName}",
17
- "cacheVariables": {
18
- "CMAKE_EXPORT_COMPILE_COMMANDS": true,
19
- "CMAKE_COMPILE_WARNING_AS_ERROR": false,
20
- "CMAKE_BUILD_TYPE": "Debug",
21
- "CMAKE_VERBOSE_MAKEFILE": "FALSE"
22
- }
23
- },
24
- {
25
- "name": "base-config",
26
- "hidden": true,
27
- "inherits": [
28
- "ninja-config",
29
- "vcpkg"
30
- ],
31
- "binaryDir": "${sourceDir}/out/build/${presetName}",
32
- "installDir": "${sourceDir}/out/install/${presetName}",
33
- "cacheVariables": {
34
- "CMAKE_EXPORT_COMPILE_COMMANDS": true,
35
- "CMAKE_COMPILE_WARNING_AS_ERROR": false,
36
- "CMAKE_VERBOSE_MAKEFILE": "FALSE"
37
- }
38
- }
39
- ],
40
- "buildPresets": [
41
- {
42
- "name": "base",
43
- "hidden": true,
44
- "inherits": "ninja",
45
- "configurePreset": "base"
46
- },
47
- {
48
- "name": "base-config-relwithdebinfo",
49
- "hidden": true,
50
- "inherits": "ninja-config-relwithdebinfo",
51
- "configurePreset": "base-config"
52
- },
53
- {
54
- "name": "base-config-debug",
55
- "hidden": true,
56
- "inherits": "ninja-config-debug",
57
- "configurePreset": "base-config"
58
- }
59
- ],
60
- "testPresets": [
61
- {
62
- "name": "base",
63
- "hidden": true,
64
- "inherits": "ninja",
65
- "configurePreset": "base",
66
- "output": {
67
- "outputOnFailure": true
68
- },
69
- "execution": {
70
- "noTestsAction": "error",
71
- "stopOnFailure": true
72
- }
73
- },
74
- {
75
- "name": "base-config-relwithdebinfo",
76
- "hidden": true,
77
- "inherits": "ninja-config-relwithdebinfo",
78
- "configurePreset": "base-config",
79
- "output": {
80
- "outputOnFailure": true
81
- },
82
- "execution": {
83
- "noTestsAction": "error",
84
- "stopOnFailure": true
85
- }
86
- },
87
- {
88
- "name": "base-config-debug",
89
- "hidden": true,
90
- "inherits": "ninja-config-debug",
91
- "configurePreset": "base-config",
92
- "output": {
93
- "outputOnFailure": true
94
- },
95
- "execution": {
96
- "noTestsAction": "error",
97
- "stopOnFailure": true
98
- }
99
- }
100
- ]
101
- }
@@ -1,53 +0,0 @@
1
- {
2
- "version": 6,
3
- "configurePresets": [
4
- {
5
- "name": "ninja",
6
- "hidden": true,
7
- "generator": "Ninja"
8
- },
9
- {
10
- "name": "ninja-config",
11
- "hidden": true,
12
- "generator": "Ninja Multi-Config"
13
- }
14
- ],
15
- "buildPresets": [
16
- {
17
- "name": "ninja",
18
- "hidden": true,
19
- "configurePreset": "ninja"
20
- },
21
- {
22
- "name": "ninja-config-relwithdebinfo",
23
- "hidden": true,
24
- "configurePreset": "ninja-config",
25
- "configuration": "RelWithDebInfo"
26
- },
27
- {
28
- "name": "ninja-config-debug",
29
- "hidden": true,
30
- "configurePreset": "ninja-config",
31
- "configuration": "Debug"
32
- }
33
- ],
34
- "testPresets": [
35
- {
36
- "name": "ninja",
37
- "hidden": true,
38
- "configurePreset": "ninja"
39
- },
40
- {
41
- "name": "ninja-config-relwithdebinfo",
42
- "hidden": true,
43
- "configurePreset": "ninja-config",
44
- "configuration": "RelWithDebInfo"
45
- },
46
- {
47
- "name": "ninja-config-debug",
48
- "hidden": true,
49
- "configurePreset": "ninja-config",
50
- "configuration": "Debug"
51
- }
52
- ]
53
- }
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