Skip to content

Commit

Permalink
token.cpp: mitigated performance-unnecessary-value-param clang-tidy…
Browse files Browse the repository at this point in the history
… false positive
  • Loading branch information
firewave committed Jul 30, 2024
1 parent abf8c20 commit 7b26fc8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/token.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2030,6 +2030,7 @@ static bool removeContradiction(std::list<ValueFlow::Value>& values)
using ValueIterator = std::list<ValueFlow::Value>::iterator;

template<class Iterator>
// NOLINTNEXTLINE(performance-unnecessary-value-param) - false positive
static ValueIterator removeAdjacentValues(std::list<ValueFlow::Value>& values, ValueIterator x, Iterator start, Iterator last)
{
if (!isAdjacent(*x, **start))
Expand Down

0 comments on commit 7b26fc8

Please sign in to comment.