Skip to content

Commit

Permalink
clang-tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
danmar committed Dec 8, 2023
1 parent 52e86f2 commit 97a0c50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/valueflow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7329,8 +7329,8 @@ struct MultiValueFlowAnalyzer : ValueFlowAnalyzer {
if (isConditional())
return true;
if (!condTok->hasKnownIntValue() && values.count(condTok->varId()) == 0) {
const auto& values = condTok->values();
return std::any_of(values.cbegin(), values.cend(), [](const ValueFlow::Value& v) {
const auto& values_ = condTok->values();
return std::any_of(values_.cbegin(), values_.cend(), [](const ValueFlow::Value& v) {
return v.isSymbolicValue() && Token::Match(v.tokvalue, "%oror%|&&");
});
}
Expand Down

0 comments on commit 97a0c50

Please sign in to comment.