cppcheck 1.3.0__tar.gz → 1.4.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.
- {cppcheck-1.3.0 → cppcheck-1.4.0}/.pre-commit-config.yaml +0 -13
- {cppcheck-1.3.0 → cppcheck-1.4.0}/CMakeLists.txt +0 -13
- {cppcheck-1.3.0 → cppcheck-1.4.0}/PKG-INFO +1 -1
- {cppcheck-1.3.0 → cppcheck-1.4.0}/docs/index.md +0 -1
- {cppcheck-1.3.0 → cppcheck-1.4.0}/src/cppcheck/__init__.py +6 -5
- {cppcheck-1.3.0 → cppcheck-1.4.0}/src/cppcheck/_version.py +2 -2
- {cppcheck-1.3.0 → cppcheck-1.4.0}/tests/test_package.py +11 -0
- cppcheck-1.3.0/.clang-format +0 -228
- cppcheck-1.3.0/.clang-tidy +0 -78
- cppcheck-1.3.0/.cppcheck-suppressions.txt +0 -2
- cppcheck-1.3.0/cmake/ConfigureWarningsAndHardening.cmake +0 -117
- cppcheck-1.3.0/cmake/vcpkg/ports/python3/portfile.cmake +0 -3
- cppcheck-1.3.0/cmake/vcpkg/ports/python3/vcpkg.json +0 -12
- cppcheck-1.3.0/src/CMakeLists.txt +0 -12
- {cppcheck-1.3.0 → cppcheck-1.4.0}/.copier-answers.yml +0 -0
- {cppcheck-1.3.0 → cppcheck-1.4.0}/.devcontainer/devcontainer.json +0 -0
- {cppcheck-1.3.0 → cppcheck-1.4.0}/.editorconfig +0 -0
- {cppcheck-1.3.0 → cppcheck-1.4.0}/.gitattributes +0 -0
- {cppcheck-1.3.0 → cppcheck-1.4.0}/.github/codecov.yml +0 -0
- {cppcheck-1.3.0 → cppcheck-1.4.0}/.github/codeql-config.yml +0 -0
- {cppcheck-1.3.0 → cppcheck-1.4.0}/.github/matchers/pylint.json +0 -0
- {cppcheck-1.3.0 → cppcheck-1.4.0}/.github/workflows/cd.yml +0 -0
- {cppcheck-1.3.0 → cppcheck-1.4.0}/.github/workflows/ci.yml +0 -0
- {cppcheck-1.3.0 → cppcheck-1.4.0}/.github/workflows/codeql.yml +0 -0
- {cppcheck-1.3.0 → cppcheck-1.4.0}/.github/workflows/renovate.yml +0 -0
- {cppcheck-1.3.0 → cppcheck-1.4.0}/.github/workflows/semantic-release.yml +0 -0
- {cppcheck-1.3.0 → cppcheck-1.4.0}/.gitignore +0 -0
- {cppcheck-1.3.0 → cppcheck-1.4.0}/.markdownlint.yaml +0 -0
- {cppcheck-1.3.0 → cppcheck-1.4.0}/.releaserc.js +0 -0
- {cppcheck-1.3.0 → cppcheck-1.4.0}/.renovaterc.json +0 -0
- {cppcheck-1.3.0 → cppcheck-1.4.0}/.vscode/launch.json +0 -0
- {cppcheck-1.3.0 → cppcheck-1.4.0}/.vscode/settings.json +0 -0
- {cppcheck-1.3.0 → cppcheck-1.4.0}/CMakePresets.json +0 -0
- {cppcheck-1.3.0 → cppcheck-1.4.0}/LICENSE +0 -0
- {cppcheck-1.3.0 → cppcheck-1.4.0}/README.md +0 -0
- {cppcheck-1.3.0 → cppcheck-1.4.0}/cmake/presets/arch/x64.json +0 -0
- {cppcheck-1.3.0 → cppcheck-1.4.0}/cmake/presets/base.json +0 -0
- {cppcheck-1.3.0 → cppcheck-1.4.0}/cmake/presets/compilers/gcc.json +0 -0
- {cppcheck-1.3.0 → cppcheck-1.4.0}/cmake/presets/compilers/llvm.json +0 -0
- {cppcheck-1.3.0 → cppcheck-1.4.0}/cmake/presets/compilers/mingw.json +0 -0
- {cppcheck-1.3.0 → cppcheck-1.4.0}/cmake/presets/compilers/msvc.json +0 -0
- {cppcheck-1.3.0 → cppcheck-1.4.0}/cmake/presets/default.json +0 -0
- {cppcheck-1.3.0 → cppcheck-1.4.0}/cmake/presets/generators/ninja.json +0 -0
- {cppcheck-1.3.0 → cppcheck-1.4.0}/cmake/presets/os/darwin.json +0 -0
- {cppcheck-1.3.0 → cppcheck-1.4.0}/cmake/presets/os/linux.json +0 -0
- {cppcheck-1.3.0 → cppcheck-1.4.0}/cmake/presets/os/windows.json +0 -0
- {cppcheck-1.3.0 → cppcheck-1.4.0}/cmake/presets/toolchains/vcpkg.json +0 -0
- {cppcheck-1.3.0 → cppcheck-1.4.0}/cmake/presets/triplets/x64-linux.json +0 -0
- {cppcheck-1.3.0 → cppcheck-1.4.0}/cmake/presets/triplets/x64-mingw-dynamic.json +0 -0
- {cppcheck-1.3.0 → cppcheck-1.4.0}/cmake/presets/triplets/x64-mingw-static.json +0 -0
- {cppcheck-1.3.0 → cppcheck-1.4.0}/cmake/presets/triplets/x64-osx.json +0 -0
- {cppcheck-1.3.0 → cppcheck-1.4.0}/cmake/presets/triplets/x64-windows.json +0 -0
- {cppcheck-1.3.0 → cppcheck-1.4.0}/cmake/presets/x64-linux-gcc.json +0 -0
- {cppcheck-1.3.0 → cppcheck-1.4.0}/cmake/presets/x64-linux-llvm.json +0 -0
- {cppcheck-1.3.0 → cppcheck-1.4.0}/cmake/presets/x64-mingw-dynamic-windows-mingw.json +0 -0
- {cppcheck-1.3.0 → cppcheck-1.4.0}/cmake/presets/x64-mingw-static-windows-mingw.json +0 -0
- {cppcheck-1.3.0 → cppcheck-1.4.0}/cmake/presets/x64-osx-gcc.json +0 -0
- {cppcheck-1.3.0 → cppcheck-1.4.0}/cmake/presets/x64-osx-llvm.json +0 -0
- {cppcheck-1.3.0 → cppcheck-1.4.0}/cmake/presets/x64-windows-llvm.json +0 -0
- {cppcheck-1.3.0 → cppcheck-1.4.0}/cmake/presets/x64-windows-msvc.json +0 -0
- {cppcheck-1.3.0 → cppcheck-1.4.0}/cmake/vcpkg/bootstrap/vcpkg-config.cmake +0 -0
- {cppcheck-1.3.0 → cppcheck-1.4.0}/cmake/vcpkg/bootstrap/vcpkg_bootstrap.cmake +0 -0
- {cppcheck-1.3.0 → cppcheck-1.4.0}/cmake/vcpkg/bootstrap/vcpkg_chainload_toolchain.cmake +0 -0
- {cppcheck-1.3.0 → cppcheck-1.4.0}/cmake/vcpkg/bootstrap/vcpkg_configure.cmake +0 -0
- {cppcheck-1.3.0 → cppcheck-1.4.0}/cmake/vcpkg/bootstrap/vcpkg_export_mode.cmake +0 -0
- {cppcheck-1.3.0 → cppcheck-1.4.0}/cmake/vcpkg/bootstrap/vcpkg_load_triplet.cmake +0 -0
- {cppcheck-1.3.0 → cppcheck-1.4.0}/cmake/vcpkg/bootstrap/vcpkg_skip_install_on_reconfigure.cmake +0 -0
- {cppcheck-1.3.0 → cppcheck-1.4.0}/cmake/vcpkg/ports/README.md +0 -0
- {cppcheck-1.3.0 → cppcheck-1.4.0}/cmake/vcpkg/ports/cppcheck/portfile.cmake +0 -0
- {cppcheck-1.3.0 → cppcheck-1.4.0}/cmake/vcpkg/ports/cppcheck/vcpkg.json +0 -0
- {cppcheck-1.3.0 → cppcheck-1.4.0}/cmake/vcpkg/scripts/build_type.cmake +0 -0
- {cppcheck-1.3.0 → cppcheck-1.4.0}/cmake/vcpkg/scripts/toolchains/README.md +0 -0
- {cppcheck-1.3.0 → cppcheck-1.4.0}/cmake/vcpkg/triplets/README.md +0 -0
- {cppcheck-1.3.0 → cppcheck-1.4.0}/cmake/vcpkg/vcpkg.toolchain.cmake +0 -0
- {cppcheck-1.3.0 → cppcheck-1.4.0}/docs/api/index.md +0 -0
- {cppcheck-1.3.0 → cppcheck-1.4.0}/docs/conf.py +0 -0
- {cppcheck-1.3.0 → cppcheck-1.4.0}/noxfile.py +0 -0
- {cppcheck-1.3.0 → cppcheck-1.4.0}/pyproject.toml +0 -0
- {cppcheck-1.3.0 → cppcheck-1.4.0}/src/cppcheck/__main__.py +0 -0
- {cppcheck-1.3.0 → cppcheck-1.4.0}/src/cppcheck/_version.pyi +0 -0
- {cppcheck-1.3.0 → cppcheck-1.4.0}/src/cppcheck/py.typed +0 -0
- {cppcheck-1.3.0 → cppcheck-1.4.0}/vcpkg.json +0 -0
|
@@ -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
|
|
@@ -26,19 +26,6 @@ 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
|
-
find_package(cmake-modules REQUIRED)
|
|
34
|
-
include(cmake-modules/ProjectDefault)
|
|
35
|
-
|
|
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
29
|
find_program(cppcheck NAMES "cppcheck" "cppcheck.exe")
|
|
43
30
|
|
|
44
31
|
install(PROGRAMS ${cppcheck} DESTINATION ${SKBUILD_PROJECT_NAME}/Cppcheck)
|
|
@@ -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
|
|
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([
|
|
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 =
|
|
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
|
-
[
|
|
61
|
+
[get_cppcheck_dir() / "cppcheck", "--version"],
|
|
61
62
|
capture_output=True,
|
|
62
63
|
text=True,
|
|
63
64
|
check=False,
|
|
@@ -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
|
cppcheck-1.3.0/.clang-format
DELETED
|
@@ -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
|
cppcheck-1.3.0/.clang-tidy
DELETED
|
@@ -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,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,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
|
|
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.3.0 → cppcheck-1.4.0}/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
|
|
File without changes
|
|
File without changes
|