Konstantinos Margaritis
689556d5f9
Various cppcheck fixes ( #337 )
2025-05-30 12:27:28 +03:00
gtsoul-tech
0f4369bf22
Bug fix/clang-tidy-performance ( #300 )
...
Various clang-tidy-performance fixes:
* noexcept
* performance-noexcept-swap
* performance
* performance-move-const-arg
* performance-unnecessary-value-param
* performance-inefficient-vector-operation
* performance-no-int-to-ptr
* add performance
* performance-inefficient-string-concatenation
* clang-analyzer-deadcode.DeadStores
* performance-inefficient-vector-operation
* clang-analyzer-core.NullDereference
* clang-analyzer-core.UndefinedBinaryOperatorResult
* clang-analyzer-core.CallAndMessage
---------
Co-authored-by: gtsoul-tech <gtsoulkanakis@gmail.com>
2024-06-20 14:57:19 +03:00
gtsoul-tech
9987ecd4a0
clang-analyzer-cplusplus.Move
2024-05-31 10:34:55 +03:00
gtsoul-tech
d23e4a12e7
cplusplus.Move
2024-05-28 14:15:03 +03:00
Konstantinos Margaritis
c837925087
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
2024-05-27 12:23:02 +03:00
Konstantinos Margaritis
2ec64b6f07
Merge pull request #283 from isildur-g/wip-cppcheck271-part2
...
Wip cppcheck271 useStlAlgorithm part2
2024-05-21 15:52:15 +03:00
Konstantinos Margaritis
40da067b4f
Add more C style casts fixes and suppressions
2024-05-18 21:49:54 +03:00
g. economou
22c3e3da6e
Merge branch 'develop' into wip-cppcheck271-part2
2024-05-17 11:08:09 +03:00
G.E
f2cecfd0e2
next batch
2024-05-17 10:44:28 +03:00
Konstantinos Margaritis
db92a42681
Merge pull request #279 from VectorCamp/bugfix/cppcheck-unreadVariable-others
...
Fix marked as done cppcheck warnings unreadVariable & others
2024-05-15 23:18:02 +03:00
Konstantinos Margaritis
59a098504e
remove unused variables
2024-05-15 17:18:53 +03:00
Konstantinos Margaritis
0cf72ef474
Fix missingOverride
2024-05-15 17:05:22 +03:00
Konstantinos Margaritis
22166ed948
Fix remaining marked as done const* cppcheck warnings
2024-05-15 10:52:31 +03:00
gtsoul-tech
94b17ecaf2
noExplicitConstructor
2024-05-10 10:07:47 +03:00
g. economou
727cff3621
Merge branch 'develop' into wip-isildur-g-cppcheck-47-48-58
2024-05-01 10:59:59 +03:00
G.E
9902ca0e34
addressing 47 [constParameterReference],48 [constVariableReference],58
...
[constVariable]
2024-05-01 10:54:15 +03:00
gtsoul-tech
b5bf3d8d31
unreadVariable
2024-04-30 13:36:39 +03:00
gtsoul-tech
62e3450eae
missingOverride
2024-04-29 10:26:39 +03:00
G.E
d7006a7c85
removed another commented line
2024-04-24 00:06:08 +03:00
G.E
01dee390a9
ddressing some cppcheck warnings. yes this will be cleaned up in a
...
following commit. tests pass.
2024-04-23 19:08:24 +03:00
Mitchell Wasson
9c139c3a6d
Correct set_source_files_properties usage
...
The use of `CMAKE_BINARY_DIR` and `CMAKE_CURRENT_BINARY_DIR` when
specifying files to set_source_files_properties caused problems
when this project is used from another CMake project.
More specifically, these variables aren't set to the expected path,
and the properties are attempted to be set for non-existant files.
This was benign before vectorscan 5.4.8 as the only properties
set were warning suppression flags.
Starting with 5.4.9, `-funsigned-char` was applied to Ragel outputs
using this method. The result is projects depending on Vectorscan
through Cmake do not have this compile flag properly applied.
2023-10-31 09:35:50 -06:00
Hong, Yang A
978105a4c0
klocwork: fix risk issues
2023-09-05 13:45:33 +03:00
Konstantinos Margaritis
66289cdacf
fix ExpressionParser.cpp path
2023-03-22 11:36:06 +02:00
Konstantinos Margaritis
dbdbfe9473
Set Ragel.rl char type to unsigned, #135
2023-03-21 18:07:06 +00:00
Chang, Harry
31afacc7be
Corpus editor: fix random char value of UTF-8.
2022-08-29 15:03:30 +03:00
Chang, Harry
a9ca0e4de3
Corpus generator: fix random char value of UTF-8.
...
fixes github issue #184
2022-08-29 15:03:26 +03:00
Konstantinos Margaritis
07ce6d8e7f
fix build failures with clang on x86, make sure compilation works on other Power as well
2021-12-03 16:24:58 +02:00
Konstantinos Margaritis
08357a096c
remove Windows/ICC support
2021-10-12 11:51:34 +03:00
Konstantinos Margaritis
e5050c9373
add missing compile flags
2021-10-12 11:51:34 +03:00
Konstantinos Margaritis
e35b88f2c8
use STL make_unique, remove wrapper header, breaks C++17 compilation
2021-10-12 11:51:34 +03:00
Konstantinos Margaritis
752a42419b
fix IA32 build, as we need minimum SSSE3 support for compilation to succeed
2020-12-30 19:57:44 +02:00
Hong, Yang A
ec68facfaa
hsbench: add hyphen support for -T option
2020-05-25 13:47:53 +00:00
Federico G. Schwindt
55f336751d
Fix undefined behaviour
...
Just use stat and opendir. Fixes #228 .
While here correct the error message.
2020-05-25 13:47:53 +00:00
Hong, Yang A
23e5f06594
add new Literal API for pure literal expressions:
...
Design compile time api hs_compile_lit() and hs_compile_lit_multi()
to handle pure literal pattern sets. Corresponding option --literal-on
is added for hyperscan testing suites. Extended parameters and part of
flags are not supported for this api.
2019-08-13 14:51:38 +08:00
Derrick Lyndon Pallas
e15954a4bd
Avoid array-bounds error when debug/fortify enabled
...
This code causes GCC to error out due to a bounds error with the following set
-D_GLIBCXX_DEBUG
-D_FORTIFY_SOURCE=2
The solution is to copy via iterator.
2019-08-13 14:49:07 +08:00
Lu, Qi
5a0885d235
Windows porting: port hyperscan and chimera tools to windows.
2018-07-09 11:40:43 -04:00
Chang, Harry
8a1c497f44
Logical Combination of patterns.
2018-06-27 14:04:57 +08:00
Matthew Barr
95c316afcc
find_matches: don't create ridiculous accept paths
2018-01-19 06:20:37 -05:00
Matthew Barr
4fc11cfc65
Hamming: GraphTruth and corpus gen support
2018-01-19 06:12:28 -05:00
Matthew Barr
1891f14755
Add support for Hamming distance approx matching
2018-01-19 06:11:43 -05:00
Matthew Barr
56ec2dfc4a
Remove out of date debug output
2017-08-21 11:23:41 +10:00
Matthew Barr
b8753e3daf
clean up loops and add AVX-512
2017-08-21 11:20:22 +10:00
Matthew Barr
9d5a00bde1
Open input path once using file descriptor
2017-08-21 11:20:22 +10:00
Matthew Barr
30f93634b8
use string equality operator
2017-08-21 11:19:20 +10:00
Justin Viiret
9cf66b6ac9
util: switch from Boost to std::unordered set/map
...
This commit replaces the ue2::unordered_{set,map} types with their STL
versions, with some new hashing utilities in util/hash.h. The new types
ue2_unordered_set<T> and ue2_unordered_map<Key, T> default to using the
ue2_hasher.
The header util/ue2_containers.h has been removed, and the flat_set/map
containers moved to util/flat_containers.h.
2017-08-21 11:14:55 +10:00
Justin Viiret
bc232d272f
ng_find_matches: speed up edge lookups
...
Improves the performance of step() on graphs with vertices with large
degree.
2017-08-21 11:12:36 +10:00
Matthew Barr
dba2470ec9
msvc: use the vectorcall calling convention
...
This requires declaring external interfaces with the cdecl
calling convention.
2017-06-09 10:12:02 +10:00
Justin Viiret
083d84cfd6
expressions: add much faster limitToSignatures()
2017-05-30 13:49:24 +10:00
Justin Viiret
5dfae12a62
ng: split NGWrapper into NGHolder, ExpressionInfo
...
We now use NGHolder for all graph information, while other expression
properties (report, flag information, etc) go in new class
ExpressionInfo.
2017-04-26 15:18:09 +10:00
Justin Viiret
2d660ce4db
ng_corpus_generator: small fix for MSVC compat
2017-04-26 15:17:11 +10:00