cppcheck 1.3.0__tar.gz → 1.4.1__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.1/.github/codeql-config.yml +6 -0
  2. {cppcheck-1.3.0 → cppcheck-1.4.1}/.github/workflows/cd.yml +13 -16
  3. {cppcheck-1.3.0 → cppcheck-1.4.1}/.github/workflows/ci.yml +7 -7
  4. {cppcheck-1.3.0 → cppcheck-1.4.1}/.github/workflows/codeql.yml +7 -3
  5. {cppcheck-1.3.0 → cppcheck-1.4.1}/.github/workflows/semantic-release.yml +2 -2
  6. {cppcheck-1.3.0 → cppcheck-1.4.1}/.pre-commit-config.yaml +0 -13
  7. {cppcheck-1.3.0 → cppcheck-1.4.1}/.renovaterc.json +11 -4
  8. {cppcheck-1.3.0 → cppcheck-1.4.1}/CMakeLists.txt +0 -10
  9. {cppcheck-1.3.0 → cppcheck-1.4.1}/PKG-INFO +2 -4
  10. {cppcheck-1.3.0 → cppcheck-1.4.1}/README.md +1 -3
  11. {cppcheck-1.3.0 → cppcheck-1.4.1}/cmake/vcpkg/bootstrap/vcpkg_bootstrap.cmake +26 -12
  12. {cppcheck-1.3.0 → cppcheck-1.4.1}/cmake/vcpkg/bootstrap/vcpkg_load_triplet.cmake +1 -1
  13. {cppcheck-1.3.0 → cppcheck-1.4.1}/docs/index.md +0 -1
  14. {cppcheck-1.3.0 → cppcheck-1.4.1}/pyproject.toml +1 -0
  15. {cppcheck-1.3.0 → cppcheck-1.4.1}/src/cppcheck/__init__.py +6 -5
  16. {cppcheck-1.3.0 → cppcheck-1.4.1}/src/cppcheck/_version.py +2 -2
  17. {cppcheck-1.3.0 → cppcheck-1.4.1}/tests/test_package.py +11 -0
  18. {cppcheck-1.3.0 → cppcheck-1.4.1}/vcpkg.json +2 -2
  19. cppcheck-1.3.0/.clang-format +0 -228
  20. cppcheck-1.3.0/.clang-tidy +0 -78
  21. cppcheck-1.3.0/.cppcheck-suppressions.txt +0 -2
  22. cppcheck-1.3.0/.github/codeql-config.yml +0 -11
  23. cppcheck-1.3.0/cmake/ConfigureWarningsAndHardening.cmake +0 -117
  24. cppcheck-1.3.0/cmake/vcpkg/ports/python3/portfile.cmake +0 -3
  25. cppcheck-1.3.0/cmake/vcpkg/ports/python3/vcpkg.json +0 -12
  26. cppcheck-1.3.0/src/CMakeLists.txt +0 -12
  27. {cppcheck-1.3.0 → cppcheck-1.4.1}/.copier-answers.yml +0 -0
  28. {cppcheck-1.3.0 → cppcheck-1.4.1}/.devcontainer/devcontainer.json +0 -0
  29. {cppcheck-1.3.0 → cppcheck-1.4.1}/.editorconfig +0 -0
  30. {cppcheck-1.3.0 → cppcheck-1.4.1}/.gitattributes +0 -0
  31. {cppcheck-1.3.0 → cppcheck-1.4.1}/.github/codecov.yml +0 -0
  32. {cppcheck-1.3.0 → cppcheck-1.4.1}/.github/matchers/pylint.json +0 -0
  33. {cppcheck-1.3.0 → cppcheck-1.4.1}/.github/workflows/renovate.yml +0 -0
  34. {cppcheck-1.3.0 → cppcheck-1.4.1}/.gitignore +0 -0
  35. {cppcheck-1.3.0 → cppcheck-1.4.1}/.markdownlint.yaml +0 -0
  36. {cppcheck-1.3.0 → cppcheck-1.4.1}/.releaserc.js +0 -0
  37. {cppcheck-1.3.0 → cppcheck-1.4.1}/.vscode/launch.json +0 -0
  38. {cppcheck-1.3.0 → cppcheck-1.4.1}/.vscode/settings.json +0 -0
  39. {cppcheck-1.3.0 → cppcheck-1.4.1}/CMakePresets.json +0 -0
  40. {cppcheck-1.3.0 → cppcheck-1.4.1}/LICENSE +0 -0
  41. {cppcheck-1.3.0 → cppcheck-1.4.1}/cmake/presets/arch/x64.json +0 -0
  42. {cppcheck-1.3.0 → cppcheck-1.4.1}/cmake/presets/base.json +0 -0
  43. {cppcheck-1.3.0 → cppcheck-1.4.1}/cmake/presets/compilers/gcc.json +0 -0
  44. {cppcheck-1.3.0 → cppcheck-1.4.1}/cmake/presets/compilers/llvm.json +0 -0
  45. {cppcheck-1.3.0 → cppcheck-1.4.1}/cmake/presets/compilers/mingw.json +0 -0
  46. {cppcheck-1.3.0 → cppcheck-1.4.1}/cmake/presets/compilers/msvc.json +0 -0
  47. {cppcheck-1.3.0 → cppcheck-1.4.1}/cmake/presets/default.json +0 -0
  48. {cppcheck-1.3.0 → cppcheck-1.4.1}/cmake/presets/generators/ninja.json +0 -0
  49. {cppcheck-1.3.0 → cppcheck-1.4.1}/cmake/presets/os/darwin.json +0 -0
  50. {cppcheck-1.3.0 → cppcheck-1.4.1}/cmake/presets/os/linux.json +0 -0
  51. {cppcheck-1.3.0 → cppcheck-1.4.1}/cmake/presets/os/windows.json +0 -0
  52. {cppcheck-1.3.0 → cppcheck-1.4.1}/cmake/presets/toolchains/vcpkg.json +0 -0
  53. {cppcheck-1.3.0 → cppcheck-1.4.1}/cmake/presets/triplets/x64-linux.json +0 -0
  54. {cppcheck-1.3.0 → cppcheck-1.4.1}/cmake/presets/triplets/x64-mingw-dynamic.json +0 -0
  55. {cppcheck-1.3.0 → cppcheck-1.4.1}/cmake/presets/triplets/x64-mingw-static.json +0 -0
  56. {cppcheck-1.3.0 → cppcheck-1.4.1}/cmake/presets/triplets/x64-osx.json +0 -0
  57. {cppcheck-1.3.0 → cppcheck-1.4.1}/cmake/presets/triplets/x64-windows.json +0 -0
  58. {cppcheck-1.3.0 → cppcheck-1.4.1}/cmake/presets/x64-linux-gcc.json +0 -0
  59. {cppcheck-1.3.0 → cppcheck-1.4.1}/cmake/presets/x64-linux-llvm.json +0 -0
  60. {cppcheck-1.3.0 → cppcheck-1.4.1}/cmake/presets/x64-mingw-dynamic-windows-mingw.json +0 -0
  61. {cppcheck-1.3.0 → cppcheck-1.4.1}/cmake/presets/x64-mingw-static-windows-mingw.json +0 -0
  62. {cppcheck-1.3.0 → cppcheck-1.4.1}/cmake/presets/x64-osx-gcc.json +0 -0
  63. {cppcheck-1.3.0 → cppcheck-1.4.1}/cmake/presets/x64-osx-llvm.json +0 -0
  64. {cppcheck-1.3.0 → cppcheck-1.4.1}/cmake/presets/x64-windows-llvm.json +0 -0
  65. {cppcheck-1.3.0 → cppcheck-1.4.1}/cmake/presets/x64-windows-msvc.json +0 -0
  66. {cppcheck-1.3.0 → cppcheck-1.4.1}/cmake/vcpkg/bootstrap/vcpkg-config.cmake +0 -0
  67. {cppcheck-1.3.0 → cppcheck-1.4.1}/cmake/vcpkg/bootstrap/vcpkg_chainload_toolchain.cmake +0 -0
  68. {cppcheck-1.3.0 → cppcheck-1.4.1}/cmake/vcpkg/bootstrap/vcpkg_configure.cmake +0 -0
  69. {cppcheck-1.3.0 → cppcheck-1.4.1}/cmake/vcpkg/bootstrap/vcpkg_export_mode.cmake +0 -0
  70. {cppcheck-1.3.0 → cppcheck-1.4.1}/cmake/vcpkg/bootstrap/vcpkg_skip_install_on_reconfigure.cmake +0 -0
  71. {cppcheck-1.3.0 → cppcheck-1.4.1}/cmake/vcpkg/ports/README.md +0 -0
  72. {cppcheck-1.3.0 → cppcheck-1.4.1}/cmake/vcpkg/ports/cppcheck/portfile.cmake +0 -0
  73. {cppcheck-1.3.0 → cppcheck-1.4.1}/cmake/vcpkg/ports/cppcheck/vcpkg.json +0 -0
  74. {cppcheck-1.3.0 → cppcheck-1.4.1}/cmake/vcpkg/scripts/build_type.cmake +0 -0
  75. {cppcheck-1.3.0 → cppcheck-1.4.1}/cmake/vcpkg/scripts/toolchains/README.md +0 -0
  76. {cppcheck-1.3.0 → cppcheck-1.4.1}/cmake/vcpkg/triplets/README.md +0 -0
  77. {cppcheck-1.3.0 → cppcheck-1.4.1}/cmake/vcpkg/vcpkg.toolchain.cmake +0 -0
  78. {cppcheck-1.3.0 → cppcheck-1.4.1}/docs/api/index.md +0 -0
  79. {cppcheck-1.3.0 → cppcheck-1.4.1}/docs/conf.py +0 -0
  80. {cppcheck-1.3.0 → cppcheck-1.4.1}/noxfile.py +0 -0
  81. {cppcheck-1.3.0 → cppcheck-1.4.1}/src/cppcheck/__main__.py +0 -0
  82. {cppcheck-1.3.0 → cppcheck-1.4.1}/src/cppcheck/_version.pyi +0 -0
  83. {cppcheck-1.3.0 → cppcheck-1.4.1}/src/cppcheck/py.typed +0 -0
@@ -0,0 +1,6 @@
1
+ name: CodeQL config
2
+
3
+ # https://codeql.github.com/codeql-query-help/
4
+ query-filters:
5
+ - exclude:
6
+ id: py/commented-out-code
@@ -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
- - os: ubuntu-latest
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.21.3
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@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
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@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5
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@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
26
+ - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
27
27
  with:
28
28
  fetch-depth: 0
29
29
 
30
- - uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5
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,7 +72,7 @@ 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
 
@@ -85,7 +85,7 @@ jobs:
85
85
  --durations=20
86
86
 
87
87
  - name: Upload coverage report
88
- uses: codecov/codecov-action@v3.1.4
88
+ uses: codecov/codecov-action@ab904c41d6ece82784817410c45d8b8c02684457 # v3.1.6
89
89
 
90
90
  check-docs:
91
91
  runs-on: ubuntu-22.04
@@ -93,7 +93,7 @@ jobs:
93
93
  timeout-minutes: 15
94
94
 
95
95
  steps:
96
- - uses: actions/checkout@v4
96
+ - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
97
97
  with:
98
98
  fetch-depth: 0
99
99
 
@@ -107,7 +107,7 @@ jobs:
107
107
  key: docs-${{ hashFiles('vcpkg.json') }}
108
108
  restore-keys: docs-${{ hashFiles('vcpkg.json') }}
109
109
 
110
- - uses: actions/setup-python@v5
110
+ - uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5
111
111
  with:
112
112
  python-version: 3.x
113
113
 
@@ -45,12 +45,12 @@ jobs:
45
45
 
46
46
  steps:
47
47
  - name: Checkout repository
48
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
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@8214744c546c1e5c8f03dde8fab3a7353211988d # v3.26.7
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@8214744c546c1e5c8f03dde8fab3a7353211988d # v3.26.7
75
+ uses: github/codeql-action/analyze@f09c1c0a94de965c15400f5634aa42fac8fb8f88 # v3.27.5
@@ -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@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
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@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4
49
+ uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4
50
50
  with:
51
51
  node-version: lts/*
52
52
 
@@ -115,19 +115,6 @@ repos:
115
115
  - --check-filenames
116
116
  - --write-changes
117
117
 
118
- # Check for common shell mistakes
119
- - repo: https://github.com/shellcheck-py/shellcheck-py
120
- rev: v0.9.0.6
121
- hooks:
122
- - id: shellcheck
123
-
124
- # Clang format the codebase automatically
125
- - repo: https://github.com/pre-commit/mirrors-clang-format
126
- rev: v18.1.8
127
- hooks:
128
- - id: clang-format
129
- types_or: [c++, c, cuda]
130
-
131
118
  # Check for renovate config
132
119
  - repo: https://github.com/renovatebot/pre-commit-hooks
133
120
  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-cpp",
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.3.1",
45
+ "pip install copier==9.4.1",
39
46
  "copier update --defaults --vcs-ref {{{newVersion}}}"
40
47
  ]
41
48
  },
@@ -26,19 +26,9 @@ set(CMAKE_CXX_EXTENSIONS
26
26
  OFF
27
27
  CACHE BOOL "C++ extensions")
28
28
 
29
- # Source includes from vcpkg
30
- include_directories(${VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/include)
31
-
32
- # From https://github.com/msclock/cmake-registry.
33
29
  find_package(cmake-modules REQUIRED)
34
30
  include(cmake-modules/ProjectDefault)
35
31
 
36
- # Project custom modules
37
- list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
38
- include(ConfigureWarningsAndHardening)
39
-
40
- add_subdirectory(src)
41
-
42
32
  find_program(cppcheck NAMES "cppcheck" "cppcheck.exe")
43
33
 
44
34
  install(PROGRAMS ${cppcheck} DESTINATION ${SKBUILD_PROJECT_NAME}/Cppcheck)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cppcheck
3
- Version: 1.3.0
3
+ Version: 1.4.1
4
4
  Summary: Package cppcheck as a python wheel.
5
5
  Author-Email: msclock <msclock@126.com>
6
6
  License: Apache-2.0
@@ -49,7 +49,7 @@ Package cppcheck as a python wheel.
49
49
 
50
50
  [![Documentation](https://img.shields.io/badge/Documentation-sphinx-blue)](https://msclock.github.io/cppcheck-wheel)
51
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)
52
+ [![SS Pybind11](https://img.shields.io/badge/Serious%20Scaffold-pybind11-blue)](https://github.com/serious-scaffold/ss-pybind11)
53
53
 
54
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
55
  [![CD](https://github.com/msclock/cppcheck-wheel/actions/workflows/cd.yml/badge.svg)](https://github.com/msclock/cppcheck-wheel/actions/workflows/cd.yml)
@@ -59,11 +59,9 @@ Package cppcheck as a python wheel.
59
59
  [![Release](https://img.shields.io/github/v/release/msclock/cppcheck-wheel)](https://github.com/msclock/cppcheck-wheel/releases)
60
60
 
61
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
62
  [![cmake-format](https://img.shields.io/badge/cmake--format-enabled-blue)](https://github.com/cheshirekow/cmake-format-precommit)
64
63
  [![codespell](https://img.shields.io/badge/codespell-enabled-blue)](https://github.com/codespell-project/codespell)
65
64
  [![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
65
 
68
66
  <!-- writes more things here -->
69
67
 
@@ -6,7 +6,7 @@ Package cppcheck as a python wheel.
6
6
 
7
7
  [![Documentation](https://img.shields.io/badge/Documentation-sphinx-blue)](https://msclock.github.io/cppcheck-wheel)
8
8
  [![License](https://img.shields.io/github/license/msclock/cppcheck-wheel)](https://github.com/msclock/cppcheck-wheel/blob/master/LICENSE)
9
- [![SS Cpp](https://img.shields.io/badge/Serious%20Scaffold-pybind11-blue)](https://github.com/serious-scaffold/ss-pybind11)
9
+ [![SS Pybind11](https://img.shields.io/badge/Serious%20Scaffold-pybind11-blue)](https://github.com/serious-scaffold/ss-pybind11)
10
10
 
11
11
  [![CI](https://github.com/msclock/cppcheck-wheel/actions/workflows/ci.yml/badge.svg)](https://github.com/msclock/cppcheck-wheel/actions/workflows/ci.yml)
12
12
  [![CD](https://github.com/msclock/cppcheck-wheel/actions/workflows/cd.yml/badge.svg)](https://github.com/msclock/cppcheck-wheel/actions/workflows/cd.yml)
@@ -16,11 +16,9 @@ Package cppcheck as a python wheel.
16
16
  [![Release](https://img.shields.io/github/v/release/msclock/cppcheck-wheel)](https://github.com/msclock/cppcheck-wheel/releases)
17
17
 
18
18
  [![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit)](https://github.com/pre-commit/pre-commit)
19
- [![clang-format](https://img.shields.io/badge/clang--format-enabled-blue)](https://github.com/pre-commit/mirrors-clang-format)
20
19
  [![cmake-format](https://img.shields.io/badge/cmake--format-enabled-blue)](https://github.com/cheshirekow/cmake-format-precommit)
21
20
  [![codespell](https://img.shields.io/badge/codespell-enabled-blue)](https://github.com/codespell-project/codespell)
22
21
  [![markdownlint](https://img.shields.io/badge/markdownlint-enabled-blue)](https://github.com/igorshubovych/markdownlint-cli)
23
- [![shellcheck](https://img.shields.io/badge/shellcheck-enabled-blue)](https://github.com/shellcheck-py/shellcheck-py)
24
22
 
25
23
  <!-- writes more things here -->
26
24
 
@@ -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
- if(EXISTS "${vcpkg_root}/.git/shallow")
26
- message(WARNING "vcpkg is shallow, unshallowing...")
27
- execute_process(
28
- COMMAND ${GIT_EXECUTABLE} fetch --unshallow
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
- if(NOT result EQUAL "0")
33
- message(
34
- FATAL_ERROR "${GIT_EXECUTABLE} fetch --unshallow failed with ${result}")
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
- message(FATAL_ERROR "${bootstrap_cmd} failed with ${result}")
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
 
@@ -185,7 +185,7 @@ endfunction()
185
185
  macro(_vcpkg_load_triplet)
186
186
  if(NOT DEFINED VCPKG_TARGET_TRIPLET)
187
187
  message(
188
- WARNING
188
+ STATUS
189
189
  "VCPKG_TARGET_TRIPLET is not defined, detecting triplet from the system"
190
190
  )
191
191
 
@@ -19,7 +19,6 @@ Overview <self>
19
19
 
20
20
  <!-- Disable to show when there is no api generation in the docs -->
21
21
 
22
- ## Content
23
22
  ```{toctree}
24
23
  :maxdepth: 1
25
24
  :titlesonly:
@@ -83,6 +83,7 @@ test-skip = ["*-win_arm64", "*-macosx_universal2:arm64"]
83
83
  [tool.cibuildwheel.linux]
84
84
  before-build =[
85
85
  'yum install zip -y || apk add zip || true',
86
+ 'apt update && apt install zip -y || true',
86
87
  'pip install cmake ninja',
87
88
  'cmake --version', 'git --version', 'ninja --version',
88
89
  ]
@@ -19,11 +19,12 @@ from importlib_metadata import distribution
19
19
 
20
20
  from ._version import version as __version__
21
21
 
22
- __all__ = ["__version__", "cppcheck"]
22
+ __all__ = ["__version__", "cppcheck", "get_cppcheck_dir"]
23
23
 
24
24
 
25
25
  @functools.lru_cache(maxsize=None)
26
- def _get_cppcheck() -> Path:
26
+ def get_cppcheck_dir() -> Path:
27
+ """Cppcheck binary directory"""
27
28
  package_files = distribution(__package__).files
28
29
  assert package_files is not None, f"There must exist {__package__} files"
29
30
  for file in package_files:
@@ -36,13 +37,13 @@ def _get_cppcheck() -> Path:
36
37
 
37
38
 
38
39
  def _program(name: str, args: Iterable[str]) -> int:
39
- return subprocess.call([_get_cppcheck() / name, *args], close_fds=False)
40
+ return subprocess.call([get_cppcheck_dir() / name, *args], close_fds=False)
40
41
 
41
42
 
42
43
  def _program_exit(name: str, *args: str) -> None:
43
44
  if sys.platform.startswith("win"):
44
45
  raise SystemExit(_program(name, args))
45
- cppcheck_exe = _get_cppcheck() / name
46
+ cppcheck_exe = get_cppcheck_dir() / name
46
47
  os.execl(cppcheck_exe, cppcheck_exe, *args)
47
48
 
48
49
 
@@ -57,7 +58,7 @@ def cppcheck() -> None:
57
58
  args, _ = parser.parse_known_args()
58
59
  if args.version:
59
60
  result = subprocess.run(
60
- [_get_cppcheck() / "cppcheck", "--version"],
61
+ [get_cppcheck_dir() / "cppcheck", "--version"],
61
62
  capture_output=True,
62
63
  text=True,
63
64
  check=False,
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '1.3.0'
16
- __version_tuple__ = version_tuple = (1, 3, 0)
15
+ __version__ = version = '1.4.1'
16
+ __version_tuple__ = version_tuple = (1, 4, 1)
@@ -1,5 +1,6 @@
1
1
  from __future__ import annotations
2
2
 
3
+ import re
3
4
  import subprocess
4
5
 
5
6
  import pytest
@@ -12,6 +13,16 @@ def test_version():
12
13
  assert version("cppcheck") == m.__version__
13
14
 
14
15
 
16
+ def test_cppcheck_dir():
17
+ output = subprocess.run(
18
+ [m.get_cppcheck_dir() / "cppcheck", "--version"],
19
+ capture_output=True,
20
+ text=True,
21
+ check=False,
22
+ )
23
+ assert re.match(r"Cppcheck \d+.\d+.\d+", output.stdout.rstrip())
24
+
25
+
15
26
  @pytest.mark.parametrize("testcase", [("--version", f"{m.__version__}")])
16
27
  def test_cppcheck(testcase):
17
28
  test_input, test_output = testcase
@@ -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": "7adc2e4d49e8d0efc07a369079faa6bc3dbb90f3",
5
+ "builtin-baseline": "5e5d0e1cd7785623065e77eff011afdeec1a3574",
6
6
  "homepage": "https://github.com/msclock/cppcheck-wheel",
7
7
  "dependencies": [
8
8
  {
@@ -32,7 +32,7 @@
32
32
  "registries": [
33
33
  {
34
34
  "kind": "git",
35
- "baseline": "06dc89dbb62a70ff9725f23da1cc301e1adf84b1",
35
+ "baseline": "94eec2ad9432c08ee1a1adfce536e5585d1355ba",
36
36
  "repository": "https://github.com/msclock/cmake-registry",
37
37
  "packages": [
38
38
  "cmake-modules",
@@ -1,228 +0,0 @@
1
- ---
2
- # https://clang.llvm.org/docs/ClangFormatStyleOptions.html
3
- ---
4
- Language: Cpp
5
- # Do not offset access specifiers (public, protected, private)
6
- AccessModifierOffset: -4
7
- # Align parameters after opening brackets (round, angle, square)
8
- AlignAfterOpenBracket: Align
9
- # Do not align consecutive assignments
10
- AlignConsecutiveAssignments: false
11
- # Do not align consecutive declarations
12
- AlignConsecutiveDeclarations: false
13
- # Align consecutive macros
14
- AlignConsecutiveMacros: true
15
- # Align escaped newlines to the left
16
- AlignEscapedNewlines: Left
17
- # Align operands of binary and ternary expressions horizontally
18
- AlignOperands: true
19
- # Align trailing comments
20
- AlignTrailingComments: true
21
- # Allow all function arguments on the next line
22
- AllowAllArgumentsOnNextLine: false
23
- AllowAllConstructorInitializersOnNextLine: false
24
- AllowAllParametersOfDeclarationOnNextLine: false
25
- # Do not allow short blocks (e.g., while blocks) on a single line
26
- AllowShortBlocksOnASingleLine: false
27
- # Do not allow short case labels on a single line
28
- AllowShortCaseLabelsOnASingleLine: false
29
- # Do not allow non-empty functions defined outside of a class on a single line
30
- AllowShortFunctionsOnASingleLine: Inline
31
- # Do not allow short if statements on a single line
32
- AllowShortIfStatementsOnASingleLine: false
33
- # Do not allow short loop blocks on a single line
34
- AllowShortLoopsOnASingleLine: false
35
- # Do not break after the return type in function definitions, unless it exceeds the column limit
36
- AlwaysBreakAfterDefinitionReturnType: None
37
- AlwaysBreakAfterReturnType: None
38
- # Do not break before multiline strings
39
- AlwaysBreakBeforeMultilineStrings: false
40
- # Always break after template declarations
41
- AlwaysBreakTemplateDeclarations: Yes
42
- # Do not require each function argument to be on a separate line
43
- BinPackArguments: false
44
- # Do not require each function parameter to be on a separate line
45
- BinPackParameters: false
46
- # Configure brace wrapping style
47
- BraceWrapping:
48
- # Do not break after case labels
49
- AfterCaseLabel: false
50
- # Do not break after class definitions
51
- AfterClass: false
52
- # Do not break after control statements
53
- AfterControlStatement: false
54
- # Do not break after enum definitions
55
- AfterEnum: false
56
- # Do not break after function definitions
57
- AfterFunction: false
58
- # Do not break after namespace definitions
59
- AfterNamespace: false
60
- # Do not break after struct definitions
61
- AfterStruct: false
62
- # Do not break after union definitions
63
- AfterUnion: false
64
- # Do not break after extern blocks
65
- AfterExternBlock: false
66
- # Break before catch statements
67
- BeforeCatch: true
68
- # Break before else statements
69
- BeforeElse: true
70
- # Do not break before lambda bodies
71
- BeforeLambdaBody: false
72
- # Break before while statements
73
- BeforeWhile: true
74
- # Do not indent braces
75
- IndentBraces: false
76
- # Allow empty function bodies on a single line
77
- SplitEmptyFunction: false
78
- # Allow empty statements on a single line
79
- SplitEmptyRecord: false
80
- # Allow empty namespaces on a single line
81
- SplitEmptyNamespace: false
82
- # Break before binary operators, except for assignment operators
83
- BreakBeforeBinaryOperators: NonAssignment
84
- # Customize break before braces in BraceWrapping
85
- BreakBeforeBraces: Custom
86
- # Do not break after commas in inheritance lists
87
- BreakBeforeInheritanceComma: false
88
- # Break before colons in inheritance lists, but not before commas
89
- BreakInheritanceList: BeforeColon
90
- # Break before ternary operators
91
- BreakBeforeTernaryOperators: true
92
- # Do not break after commas in constructor initializer lists
93
- BreakConstructorInitializersBeforeComma: false
94
- # Break before colons in constructor initializer lists, but not before commas
95
- BreakConstructorInitializers: BeforeColon
96
- # Allow breaking string literals
97
- BreakStringLiterals: true
98
- # Column limit for each line
99
- ColumnLimit: 120
100
- CommentPragmas: '^ IWYU pragma:'
101
- # Do not allow different namespaces to be defined on the same line
102
- CompactNamespaces: false
103
- # Constructor initializer lists should either be all on one line or one per line
104
- ConstructorInitializerAllOnOneLineOrOnePerLine: true
105
- # Indent constructor initializer lists by 4 spaces
106
- ConstructorInitializerIndentWidth: 4
107
- # Indent continuation lines by 4 spaces
108
- ContinuationIndentWidth: 4
109
- # No spaces around variable initialization lists
110
- Cpp11BracedListStyle: true
111
- DerivePointerAlignment: true
112
- DisableFormat: false
113
- ExperimentalAutoDetectBinPacking: false
114
- # Automatically add comments at the end of namespaces
115
- FixNamespaceComments: true
116
- ForEachMacros:
117
- - foreach
118
- - Q_FOREACH
119
- - BOOST_FOREACH
120
- IncludeBlocks: Preserve
121
- IncludeCategories:
122
- - Regex: ^<ext/.*\.h>
123
- Priority: 2
124
- - Regex: StdAfx.h
125
- Priority: -1
126
- - Regex: ^<.*\.h>
127
- Priority: 1
128
- - Regex: ^<.*
129
- Priority: 2
130
- - Regex: .*
131
- Priority: 3
132
- IncludeIsMainRegex: ([-_](test|unittest))?$
133
- # Indent case labels inside switch statements
134
- IndentCaseLabels: true
135
- # Indent code blocks inside extern blocks
136
- IndentExternBlock: Indent
137
- # Do not indent preprocessor directives
138
- IndentPPDirectives: None
139
- # Use 4 spaces for indentation
140
- IndentWidth: 4
141
- # Do not indent wrapped function names after the return type
142
- IndentWrappedFunctionNames: false
143
- # Do not keep empty lines at the start of code blocks
144
- KeepEmptyLinesAtTheStartOfBlocks: false
145
- MacroBlockBegin: ''
146
- MacroBlockEnd: ''
147
- # Do not allow consecutive empty lines
148
- MaxEmptyLinesToKeep: 1
149
- # Do not indent contents inside namespaces
150
- NamespaceIndentation: None
151
- PenaltyBreakAssignment: 2
152
- PenaltyBreakBeforeFirstCallParameter: 1
153
- PenaltyBreakComment: 300
154
- PenaltyBreakFirstLessLess: 120
155
- PenaltyBreakString: 1000
156
- PenaltyBreakTemplateDeclaration: 10
157
- PenaltyExcessCharacter: 1000000
158
- PenaltyReturnTypeOnItsOwnLine: 200
159
- # * and & should be placed next to the type name
160
- PointerAlignment: Left
161
- RawStringFormats:
162
- - Language: Cpp
163
- Delimiters:
164
- - cc
165
- - CC
166
- - cpp
167
- - Cpp
168
- - CPP
169
- - c++
170
- - C++
171
- CanonicalDelimiter: ''
172
- BasedOnStyle: google
173
- - Language: TextProto
174
- Delimiters:
175
- - pb
176
- - PB
177
- - proto
178
- - PROTO
179
- EnclosingFunctions:
180
- - EqualsProto
181
- - EquivToProto
182
- - PARSE_PARTIAL_TEXT_PROTO
183
- - PARSE_TEST_PROTO
184
- - PARSE_TEXT_PROTO
185
- - ParseTextOrDie
186
- - ParseTextProtoOrDie
187
- CanonicalDelimiter: ''
188
- BasedOnStyle: google
189
- # Allow reflowing of comments
190
- ReflowComments: true
191
- # Allow sorting of #include statements
192
- SortIncludes: true
193
- # Allow sorting of using declarations
194
- SortUsingDeclarations: true
195
- # Do not include spaces after C-style casts
196
- SpaceAfterCStyleCast: false
197
- # Require a space after the template keyword
198
- SpaceAfterTemplateKeyword: true
199
- # Require spaces around assignment operators
200
- SpaceBeforeAssignmentOperators: true
201
- # Do not include spaces before C++11 braced initializer lists
202
- SpaceBeforeCpp11BracedList: false
203
- # Require a space before the colon in constructor initializers
204
- SpaceBeforeCtorInitializerColon: true
205
- # Require a space before the colon in inheritance statements
206
- SpaceBeforeInheritanceColon: true
207
- # Require a space after control statement keywords (if, for, while, etc.)
208
- SpaceBeforeParens: ControlStatements
209
- # Require a space before the colon in range-based for loops
210
- SpaceBeforeRangeBasedForLoopColon: true
211
- # Do not include spaces inside empty parentheses
212
- SpaceInEmptyParentheses: false
213
- # Require a space before // in trailing comments
214
- SpacesBeforeTrailingComments: 1
215
- # Do not include spaces around angle brackets
216
- SpacesInAngles: false
217
- # Do not include spaces around C-style cast parentheses
218
- SpacesInCStyleCastParentheses: false
219
- # Do not include spaces around parentheses
220
- SpacesInParentheses: false
221
- # Do not include spaces around square brackets
222
- SpacesInSquareBrackets: false
223
- Standard: Auto
224
- StatementMacros:
225
- - Q_UNUSED
226
- - QT_REQUIRE_VERSION
227
- TabWidth: 4
228
- UseTab: Never
@@ -1,78 +0,0 @@
1
- Checks: >
2
- *,
3
- -abseil-*,
4
- -altera-*,
5
- -android-*,
6
- -boost-*,
7
- -cert-*,
8
- -cppcoreguidelines-*,
9
- -darwin-*,
10
- -fuchsia-*,
11
- -google-*,
12
- -hicpp-*,
13
- -linuxkernel-*,
14
- -llvm-*,
15
- -llvmlibc-*,
16
- -mpi-*,
17
- -objc-*,
18
- -openmp-*,
19
- -zircon-*,
20
- cert-err34-c,
21
- google-explicit-constructor,
22
- cppcoreguidelines-rvalue-reference-param-not-moved,
23
- -bugprone-assignment-in-if-condition,
24
- -bugprone-branch-clone,
25
- -bugprone-easily-swappable-parameters,
26
- -bugprone-empty-catch,
27
- -bugprone-macro-parentheses,
28
- -bugprone-narrowing-conversions,
29
- -bugprone-signed-char-misuse,
30
- -bugprone-switch-missing-default-case,
31
- -bugprone-unchecked-optional-access,
32
- -clang-analyzer-*,
33
- -concurrency-mt-unsafe,
34
- -misc-const-correctness,
35
- -misc-no-recursion,
36
- -misc-non-private-member-variables-in-classes,
37
- -misc-throw-by-value-catch-by-reference,
38
- -misc-use-anonymous-namespace,
39
- -misc-include-cleaner,
40
- -misc-unused-using-decls,
41
- -modernize-avoid-c-arrays,
42
- -modernize-deprecated-ios-base-aliases,
43
- -modernize-loop-convert,
44
- -modernize-macro-to-enum,
45
- -modernize-raw-string-literal,
46
- -modernize-replace-auto-ptr,
47
- -modernize-return-braced-init-list,
48
- -modernize-type-traits,
49
- -modernize-use-auto,
50
- -modernize-use-nodiscard,
51
- -modernize-use-trailing-return-type,
52
- -modernize-concat-nested-namespaces,
53
- -performance-avoid-endl,
54
- -performance-enum-size,
55
- -performance-inefficient-string-concatenation,
56
- -performance-no-automatic-move,
57
- -performance-noexcept-swap,
58
- -portability-simd-intrinsics,
59
- -portability-std-allocator-const,
60
- -readability-avoid-const-params-in-decls,
61
- -readability-avoid-nested-conditional-operator,
62
- -readability-braces-around-statements,
63
- -readability-container-data-pointer,
64
- -readability-function-cognitive-complexity,
65
- -readability-function-size,
66
- -readability-identifier-length,
67
- -readability-identifier-naming,
68
- -readability-implicit-bool-conversion,
69
- -readability-isolate-declaration,
70
- -readability-magic-numbers,
71
- -readability-suspicious-call-argument,
72
- -readability-uppercase-literal-suffix
73
- HeaderFilterRegex: (src)\/[a-z]+\.hpp
74
- CheckOptions:
75
- - key: misc-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic
76
- value: '1'
77
- - key: readability-simplify-boolean-expr.SimplifyDeMorgan
78
- value: '0'
@@ -1,2 +0,0 @@
1
- // Limit analysis of branches. Use --check-level=exhaustive to analyze all branches.
2
- normalCheckLevelMaxBranches
@@ -1,11 +0,0 @@
1
- name: CodeQL config
2
-
3
- query-filters:
4
- - exclude:
5
- id: cpp/commented-out-code
6
- - exclude:
7
- id: cpp/include-non-header
8
- - exclude:
9
- id: cpp/loop-variable-changed
10
- - exclude:
11
- id: cpp/useless-expression
@@ -1,117 +0,0 @@
1
- #[[
2
- This file configures the following things:
3
- - dynamic tools: sanitizers, valgrind.
4
- - static tools: clang-tidy, cppcheck.
5
- - compiler flags
6
- - hardening options
7
-
8
- ]]
9
-
10
- include_guard(GLOBAL)
11
-
12
- # ##############################################################################
13
- # Sanitizer
14
- # ##############################################################################
15
-
16
- set(USE_SANITIZER
17
- OFF
18
- CACHE BOOL "Enable sanitizer")
19
-
20
- include(cmake-modules/build/Sanitizer)
21
-
22
- # ##############################################################################
23
- # Valgrind
24
- # ##############################################################################
25
-
26
- set(USE_VALGRIND
27
- OFF
28
- CACHE BOOL "Enable Valgrind")
29
- set(USE_VALGRIND_OPTIONS
30
- --leak-check=full # Each individual leak will be shown in detail.
31
- --show-leak-kinds=all # Show all of "definite, indirect, possible,
32
- # reachable" leak kinds in the "full" report.
33
- --gen-suppressions=all # gen suppress info automatically.
34
- --track-origins=yes # Favor useful output over speed. This tracks the
35
- # origins of uninitialized values, which could be very
36
- # useful for memory errors. Consider turning off if
37
- # Valgrind is unacceptably slow.
38
- CACHE STRING "valgrind options.")
39
-
40
- include(cmake-modules/test/Valgrind)
41
-
42
- # ##############################################################################
43
- # Clang-Tidy
44
- # ##############################################################################
45
-
46
- set(USE_CLANGTIDY
47
- OFF
48
- CACHE BOOL "Enable Clang-Tidy")
49
-
50
- include(cmake-modules/build/ClangTidy)
51
-
52
- # ##############################################################################
53
- # Cppcheck
54
- # ##############################################################################
55
-
56
- set(USE_CPPCHECK
57
- OFF
58
- CACHE BOOL "Enable Cppcheck")
59
- set(USE_CPPCHECK_SUPPRESSION_FILE
60
- ${CMAKE_SOURCE_DIR}/.cppcheck-suppressions.txt
61
- CACHE STRING
62
- "Customize the path to the Cppcheck suppressions file of the project")
63
-
64
- include(cmake-modules/build/Cppcheck)
65
-
66
- # ##############################################################################
67
- # CompilerFlags
68
- # ##############################################################################
69
-
70
- include(cmake-modules/build/CompilerFlags)
71
-
72
- # ##############################################################################
73
- # Hardening
74
- # ##############################################################################
75
-
76
- set(USE_HARDENING_FLAGS
77
- -D_GLIBCXX_ASSERTIONS # Enable assertions
78
- -U_FORTIFY_SOURCE # Disable stack protector
79
- -D_FORTIFY_SOURCE=3 # Enable stack protector
80
- -fstack-protector-strong # Enable stack protector
81
- -fcf-protection # Control Flow Guard
82
- -fstack-clash-protection # Control Flow Guard
83
- -Wimplicit-fallthrough # Enabled in compiler flags by default
84
- -fstrict-flex-arrays=3 # Enable strict array bounds
85
- -Wformat # Enabled in compiler flags by default
86
- -Wformat=2 # Enabled in compiler flags by default
87
- # -Wl,-z,nodlopen # Restrict dlopen(3) calls to shared objects
88
- -Wl,-z,noexecstack # Enable data execution prevention by marking stack
89
- # memory as non-executable
90
- -Wl,-z,relro # Mark relocation table entries resolved at load-time as
91
- # read-only
92
- -Wl,-z,now # Mark relocation table entries resolved at load-time as
93
- # read-only. It impacts startup performance
94
- "-fsanitize=undefined -fsanitize-minimal-runtime" # Enable minimal runtime
95
- # undefined behavior sanitizer
96
- -fno-delete-null-pointer-checks
97
- -fno-strict-overflow
98
- -fno-strict-aliasing
99
- -ftrivial-auto-var-init=zero
100
- -Wtrampolines # Enable trampolines(gcc only)
101
- -mbranch-protection=standard # Enable indirect branches(aarch64 only)
102
- CACHE STRING "Additional hardening compilation flags for GCC/Clang")
103
-
104
- set(USE_HARDENING_LINKS
105
- -fstack-protector-strong # Enable stack protector
106
- "-fsanitize=undefined -fsanitize-minimal-runtime" # Enable minimal runtime
107
- # undefined behavior sanitizer -Wl,-z,nodlopen # Restrict dlopen(3) calls to
108
- # shared objects
109
- -Wl,-z,noexecstack # Enable data execution prevention by marking stack
110
- # memory as non-executable
111
- -Wl,-z,relro # Mark relocation table entries resolved at load-time as
112
- # read-only
113
- -Wl,-z,now # Mark relocation table entries resolved at load-time as
114
- # read-only. It impacts startup performance
115
- CACHE STRING "Additional hardening linking flags for GCC/Clang")
116
-
117
- include(cmake-modules/build/Hardening)
@@ -1,3 +0,0 @@
1
- message(WARNING "Using fake python3 to force system libraries.")
2
-
3
- set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
@@ -1,12 +0,0 @@
1
- {
2
- "name": "python3",
3
- "version": "3.11.8",
4
- "description": "The Python programming language",
5
- "homepage": "https://github.com/python/cpython",
6
- "license": "Python-2.0",
7
- "features": {
8
- "deprecated-win7-support": {
9
- "description": "Deprecated support for the Windows 7 platform -- may be removed at any time."
10
- }
11
- }
12
- }
@@ -1,12 +0,0 @@
1
- file(
2
- GLOB _sub_dirs
3
- RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
4
- ${CMAKE_CURRENT_SOURCE_DIR}/*)
5
-
6
- foreach(_sub_dir ${_sub_dirs})
7
- if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${_sub_dir}/CMakeLists.txt")
8
- add_subdirectory(${_sub_dir})
9
- endif()
10
- endforeach()
11
-
12
- unset(_sub_dirs)
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