mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-12-31 13:49:07 +03:00
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
This commit is contained in:
committed by
GitHub
parent
a8e43a4c0b
commit
02fc8e3b1c
@@ -210,6 +210,7 @@ set<ReportID> all_reports(const raw_dfa &rdfa) {
|
||||
}
|
||||
|
||||
bool has_eod_accepts(const raw_dfa &rdfa) {
|
||||
// cppcheck-suppress useStlAlgorithm
|
||||
for (const auto &ds : rdfa.states) {
|
||||
if (!ds.reports_eod.empty()) {
|
||||
return true;
|
||||
@@ -219,6 +220,7 @@ bool has_eod_accepts(const raw_dfa &rdfa) {
|
||||
}
|
||||
|
||||
bool has_non_eod_accepts(const raw_dfa &rdfa) {
|
||||
// cppcheck-suppress useStlAlgorithm
|
||||
for (const auto &ds : rdfa.states) {
|
||||
if (!ds.reports.empty()) {
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user