250424.3 · 5efa8aa7189cf3bfae429d30658d9de874f1097f
appease static analysis
reading declarations
@@ -597,7 +597,7 @@ class AbstractMatcher { { mat_ = match(Const::MATCH); if (!at_end())- mat_ = 0;+ mat_ = false; } return mat_; }
@@ -1211,7 +1211,7 @@ class Matcher : public PatternMatcher<reflex::Pattern> { } return !std::isalnum(static_cast<unsigned char>(c)); #else- return !isword(got_);+ return isword(got_) == 0; #endif } /// Check if a word ends after the match.@@ -1232,7 +1232,7 @@ class Matcher : public PatternMatcher<reflex::Pattern> { return !std::isalnum(static_cast<unsigned char>(c)); #else (void)k;- return !isword(c);+ return isword(c) == 0; #endif } /// Check if match begins a word (after split with len_ > 0 or len_ = 0 for find).@@ -1249,7 +1249,7 @@ class Matcher : public PatternMatcher<reflex::Pattern> { } return std::isalnum(static_cast<unsigned char>(c)); #else- return isword(static_cast<unsigned char>(txt_[len_]))+ return isword(static_cast<unsigned char>(txt_[len_])) != 0 #endif } /// Check if match ends a word.@@ -1274,7 +1274,7 @@ class Matcher : public PatternMatcher<reflex::Pattern> { } return std::isalnum(static_cast<unsigned char>(c)); #else- return isword(c);+ return isword(c) != 0; #endif } /// Check end of word at match end boundary MATCH\> at pos.
@@ -2419,7 +2419,7 @@ bool Matcher::advance_pattern_min4(size_t loc) e = buf_ + end_ - 2; if (s >= e && eof_) {- uint8_t c0 = static_cast<uint8_t>(*s);+ c0 = static_cast<uint8_t>(*s); if (s == e + 1) { uint8_t c1 = 0; // reached the end
@@ -402,7 +402,7 @@ bool isutf8(const char *s, const char *e) while (s < e) {- int8_t c;+ int8_t c = 0; while (s < e && (c = static_cast<int8_t>(*s)) > 0) ++s; if (s++ >= e)