Fix Clang Tidy warning optin.performance.Padding (#293)

Fixes some optin.performance.Padding

closes some: #253
This commit is contained in:
Konstantinos Margaritis 2024-05-30 17:24:14 +03:00 committed by GitHub
commit 85ffb2b2f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 7 deletions

View File

@ -41,8 +41,12 @@
class MicroBenchmark {
public:
struct hs_scratch scratch{};
char const *label;
size_t size;
std::vector<u8> buf;
ue2::bytecode_ptr<noodTable> nt;
ue2::CharReach chars;
// Shufti/Truffle
union {
@ -57,12 +61,6 @@ public:
#endif
};
};
ue2::CharReach chars;
std::vector<u8> buf;
// Noodle
struct hs_scratch scratch{};
ue2::bytecode_ptr<noodTable> nt;
MicroBenchmark(char const *label_, size_t size_)
: label(label_), size(size_), buf(size_){};

View File

@ -40,9 +40,9 @@ union RoseLookaroundMask32 {
struct ValidateMask32TestInfo {
RoseLookaroundMask32 data;
u32 valid_mask;
RoseLookaroundMask32 and_mask;
RoseLookaroundMask32 cmp_mask;
u32 valid_mask;
u32 neg_mask;
};