mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-10-08 15:22:22 +03:00
Fix Clang Tidy warnings (#295)
Fixes some of the clang-tidy warnings clang-analyzer-deadcode.DeadStores clang-analyzer-cplusplus.NewDelete clang-analyzer-core.uninitialized.UndefReturn closes some:#253 ignored in this pr: /usr/include/boost/smart_ptr/detail/shared_count.hpp:432:24 /usr/include/boost/smart_ptr/detail/shared_count.hpp:443:24 51 in build/src/parser gtest ones src/fdr/teddy_compile.cpp:600:5 refactoring on way src/fdr/fdr_compile.cpp:209:5 refactoring on way
This commit is contained in:
@@ -89,7 +89,6 @@ ostream& operator<<(ostream &os, const hs_expr_ext &ext) {
|
||||
os << ", ";
|
||||
}
|
||||
os << "hamming_distance=" << ext.hamming_distance;
|
||||
first = false;
|
||||
}
|
||||
return os;
|
||||
}
|
||||
|
@@ -571,7 +571,7 @@ TEST_P(HyperscanTestMatchTerminate, StreamWhole) {
|
||||
terminateHandler, &count);
|
||||
ASSERT_TRUE(err == HS_SUCCESS || err == HS_SCAN_TERMINATED);
|
||||
|
||||
err = hs_close_stream(stream, scratch, terminateHandler, &count);
|
||||
hs_close_stream(stream, scratch, terminateHandler, &count);
|
||||
ASSERT_EQ(1, count) << "Number of matches returned was not 1.";
|
||||
|
||||
err = hs_free_scratch(scratch);
|
||||
@@ -600,7 +600,7 @@ TEST_P(HyperscanTestMatchTerminate, StreamByteByByte) {
|
||||
ASSERT_TRUE(err == HS_SUCCESS || err == HS_SCAN_TERMINATED);
|
||||
}
|
||||
|
||||
err = hs_close_stream(stream, scratch, terminateHandler, &count);
|
||||
hs_close_stream(stream, scratch, terminateHandler, &count);
|
||||
ASSERT_EQ(1, count) << "Number of matches returned was not 1.";
|
||||
|
||||
err = hs_free_scratch(scratch);
|
||||
|
Reference in New Issue
Block a user