]> git.ipfire.org Git - thirdparty/vectorscan.git/commit
Fix/Suppress remaining Cppcheck warnings (#291)
authorKonstantinos Margaritis <markos@users.noreply.github.com>
Mon, 27 May 2024 09:23:02 +0000 (12:23 +0300)
committerGitHub <noreply@github.com>
Mon, 27 May 2024 09:23:02 +0000 (12:23 +0300)
commitc837925087740985b4a09973f45ca2809d9b9c05
tree0e91c163506064f955bf25cef883b5c1189ad16c
parentcebc6541c1f1c44e7ce678eebc3a29733a0df349
Fix/Suppress remaining Cppcheck warnings (#291)

Fix/suppress the following cppcheck warnings:

* arithOperationsOnVoidPointer
* uninitMember
* const*
* shadowVariable
* assignmentIntegerToAddress
* containerOutOfBounds
* pointer-related warnings in Ragel source
* missingOverride
* memleak
* knownConditionTrueFalse
* noExplicitConstructor
* invalidPrintfArgType_sint
* useStlAlgorithm
* cstyleCast
* clarifyCondition
* VSX-related cstyleCast
* unsignedLessThanZero

Furthermore, we added a suppression list to be used, which also includes the following:
* missingIncludeSystem
* missingInclude
* unmatchedSuppression
78 files changed:
benchmarks/benchmarks.cpp
benchmarks/benchmarks.hpp
cppcheck-suppression-list.txt [new file with mode: 0644]
src/fdr/fdr_compile_util.cpp
src/fdr/fdr_dump.cpp
src/hwlm/hwlm_build.cpp
src/nfa/goughcompile.cpp
src/nfa/goughcompile_dump.cpp
src/nfa/goughcompile_reg.cpp
src/nfa/goughdump.cpp
src/nfa/lbr_common_impl.h
src/nfa/limex_common_impl.h
src/nfa/limex_compile.cpp
src/nfa/limex_exceptional.h
src/nfa/mcclellancompile_util.cpp
src/nfa/mcclellandump.cpp
src/nfa/mcsheng_dump.cpp
src/nfa/mpvcompile.cpp
src/nfa/nfa_build_util.cpp
src/nfa/nfa_dump_internal.cpp
src/nfa/rdfa.cpp
src/nfa/rdfa.h
src/nfa/rdfa_merge.cpp
src/nfa/shengdump.cpp
src/nfa/tamarama.c
src/nfa/tamaramacompile.cpp
src/nfagraph/ng_equivalence.cpp
src/nfagraph/ng_holder.h
src/nfagraph/ng_limex.cpp
src/nfagraph/ng_limex_accel.cpp
src/nfagraph/ng_literal_analysis.cpp
src/nfagraph/ng_literal_decorated.cpp
src/nfagraph/ng_mcclellan.cpp
src/nfagraph/ng_misc_opt.cpp
src/nfagraph/ng_region.h
src/nfagraph/ng_repeat.cpp
src/nfagraph/ng_restructuring.cpp
src/nfagraph/ng_util.cpp
src/parser/Parser.rl
src/parser/buildstate.cpp
src/parser/control_verbs.rl
src/parser/position_info.h
src/parser/prefilter.cpp
src/rose/rose_build_add.cpp
src/rose/rose_build_add_mask.cpp
src/rose/rose_build_bytecode.cpp
src/rose/rose_build_compile.cpp
src/rose/rose_build_dump.cpp
src/rose/rose_build_exclusive.cpp
src/rose/rose_build_misc.cpp
src/rose/rose_build_role_aliasing.cpp
src/rose/rose_build_width.cpp
src/som/slot_manager_dump.cpp
src/util/arch/arm/simd_utils.h
src/util/arch/ppc64el/simd_utils.h
src/util/depth.h
src/util/dump_charclass.cpp
src/util/flat_containers.h
src/util/graph_undirected.h
src/util/insertion_ordered.h
src/util/partitioned_set.h
src/util/supervector/arch/ppc64el/impl.cpp
src/util/uniform_ops.h
tools/hsbench/engine_chimera.h
tools/hsbench/engine_hyperscan.h
tools/hsbench/engine_pcre.h
tools/hsbench/main.cpp
tools/hsdump/main.cpp
unit/hyperscan/test_util.cpp
unit/internal/charreach.cpp
unit/internal/fdr.cpp
unit/internal/fdr_flood.cpp
unit/internal/flat_map.cpp
unit/internal/flat_set.cpp
unit/internal/multi_bit.cpp
unit/internal/multi_bit_compress.cpp
unit/internal/repeat.cpp
util/ng_corpus_generator.cpp