Applying readability-simplify-boolean-expr clang-tidy fixes
This commit is contained in:
@@ -347,10 +347,7 @@ public:
|
||||
auto inc = tvl::all_of(inclusive_.begin(), inclusive_.end(),
|
||||
[this, &e](const auto &in) { return in->match(diagram_, e); });
|
||||
|
||||
if (tvl::is_undefined(inc) || tvl::is_true(inc))
|
||||
return true;
|
||||
|
||||
return false;
|
||||
return static_cast<bool>(tvl::is_undefined(inc) || tvl::is_true(inc));
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
@@ -38,7 +38,7 @@ inline value_t all_of(InputIterator first, InputIterator last, Predicate pred)
|
||||
for (InputIterator it = first; it != last; it++) {
|
||||
value_t m = pred(*it);
|
||||
if (m.has_value()) {
|
||||
if (m.value() == true) {
|
||||
if (m.value()) {
|
||||
res = true;
|
||||
}
|
||||
else {
|
||||
@@ -59,7 +59,7 @@ inline value_t any_of(InputIterator first, InputIterator last, Predicate pred)
|
||||
for (InputIterator it = first; it != last; it++) {
|
||||
value_t m = pred(*it);
|
||||
if (m.has_value()) {
|
||||
if (m.value() == true) {
|
||||
if (m.value()) {
|
||||
res = true;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user