| 2017 | } |
| 2018 | |
| 2019 | static bool isAdjacent(const ValueFlow::Value& x, const ValueFlow::Value& y) |
| 2020 | { |
| 2021 | if (x.bound != ValueFlow::Value::Bound::Point && x.bound == y.bound) |
| 2022 | return true; |
| 2023 | if (x.valueType == ValueFlow::Value::ValueType::FLOAT) |
| 2024 | return false; |
| 2025 | return std::abs(x.intvalue - y.intvalue) == 1; |
| 2026 | } |
| 2027 | |
| 2028 | static bool removePointValue(std::list<ValueFlow::Value>& values, std::list<ValueFlow::Value>::iterator& x) |
| 2029 | { |
no outgoing calls
no test coverage detected