mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-10-08 23:32:23 +03:00
Cppcheck errors fixed and suppressed (#319)
* supress knownConditionTrueFalse * cppcheck suppress redundantInitialization * cppcheck solve stlcstrStream * cppcheck suppress useStlAlgorithm * cppcheck-suppress derefInvalidIteratorRedundantCheck * cppcheck solvwe constParameterReference * const parameter reference cppcheck * removed wrong fix * cppcheck-suppress memsetClassFloat * cppcheck fix memsetClassFloat * cppcheck fix unsignedLessThanZero * supressing all errors on simde gitmodule * fix typo (unsignedLessThanZero) * fix cppcheck suppress simde gitmodule * cppcheck-suppress unsignedLessThanZero --------- Co-authored-by: gtsoul-tech <gtsoulkanakis@gmail.com>
This commit is contained in:
@@ -38,8 +38,8 @@ using namespace ue2;
|
||||
|
||||
TEST(Truffle, CompileDot) {
|
||||
m128 mask1, mask2;
|
||||
memset(&mask1, 0, sizeof(mask1));
|
||||
memset(&mask2, 0, sizeof(mask2));
|
||||
memset(&mask1, 0, sizeof(mask1)); // cppcheck-suppress memsetClassFloat
|
||||
memset(&mask2, 0, sizeof(mask2)); // cppcheck-suppress memsetClassFloat
|
||||
|
||||
CharReach chars;
|
||||
|
||||
@@ -93,8 +93,8 @@ TEST(Truffle, CompileChars) {
|
||||
|
||||
TEST(Truffle, ExecNoMatch1) {
|
||||
m128 mask1, mask2;
|
||||
memset(&mask1, 0, sizeof(mask1));
|
||||
memset(&mask2, 0, sizeof(mask2));
|
||||
memset(&mask1, 0, sizeof(mask1)); // cppcheck-suppress memsetClassFloat
|
||||
memset(&mask2, 0, sizeof(mask2)); // cppcheck-suppress memsetClassFloat
|
||||
|
||||
CharReach chars;
|
||||
|
||||
|
@@ -105,7 +105,7 @@ TEST(Uniform, loadstore_m128) {
|
||||
u32 words[128/32];
|
||||
} in;
|
||||
for (int i = 0; i < 128; i++) {
|
||||
memset(&in, 0, sizeof(in));
|
||||
memset(&in, 0, sizeof(in)); // cppcheck-suppress memsetClassFloat
|
||||
in.words[i/32] = 1U << (i % 32);
|
||||
const char *cin = reinterpret_cast<const char *>(&in);
|
||||
m128 out = load_m128(cin);
|
||||
@@ -123,7 +123,7 @@ TEST(Uniform, loadstore_m256) {
|
||||
u32 words[256/32];
|
||||
} in;
|
||||
for (int i = 0; i < 256; i++) {
|
||||
memset(&in, 0, sizeof(in));
|
||||
memset(&in, 0, sizeof(in)); // cppcheck-suppress memsetClassFloat
|
||||
in.words[i/32] = 1U << (i % 32);
|
||||
const char *cin = reinterpret_cast<const char *>(&in);
|
||||
m256 out = load_m256(cin);
|
||||
@@ -141,7 +141,7 @@ TEST(Uniform, loadstore_m512) {
|
||||
u32 words[512/32];
|
||||
} in;
|
||||
for (int i = 0; i < 512; i++) {
|
||||
memset(&in, 0, sizeof(in));
|
||||
memset(&in, 0, sizeof(in)); // cppcheck-suppress memsetClassFloat
|
||||
in.words[i/32] = 1U << (i % 32);
|
||||
const char *cin = reinterpret_cast<const char *>(&in);
|
||||
m512 out = load_m512(cin);
|
||||
|
Reference in New Issue
Block a user