VectorCamp / vectorscan

A portable fork of the high-performance regular expression matching library
https://www.vectorcamp.gr/project/vectorscan/
Other
503 stars 54 forks source link

Wip cppcheck1220 #258

Closed isildur-g closed 5 months ago

isildur-g commented 5 months ago

next batch , for
12 [syntaxError] 20 [constParameterPointer]

Closes some: #252

false positives:

src/rose/program_runtime.c:2166 [syntaxError] -> doesnt look like an actual syntax error.

unit/hyperscan/arg_checks.cpp:88 [syntaxError] -> no, not really unit/hyperscan/behaviour.cpp:85:1: [syntaxError] unit/hyperscan/expr_info.cpp:121 [syntaxError] unit/hyperscan/identical.cpp:46 [syntaxError] unit/hyperscan/order.cpp:66 [syntaxError] unit/hyperscan/scratch_op.cpp:53 [syntaxError] unit/hyperscan/serialize.cpp:84 [syntaxError] unit/hyperscan/single.cpp:311 [syntaxError] unit/hyperscan/stream_op.cpp:50 [syntaxError] unit/internal/simd_utils.cpp:167 [syntaxError] unit/internal/shuffle.cpp:59 [syntaxError] -> all of these are just TEST , not a syntax error at all.

src/nfa/limex_runtime_impl.h:930:75: [constParameterPointer] -> cannot use const .
src/nfa/goughcompile.cpp:662:63: [constParameterPointer] -> cannot use const.