Skip to content

Commit

Permalink
utils.h: supress bugprone-return-const-ref-from-parametee clang-tid…
Browse files Browse the repository at this point in the history
…y warnings for now
  • Loading branch information
firewave committed Nov 20, 2024
1 parent 55d1274 commit 6468d6f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,7 @@ namespace utils {
template<class T>
constexpr typename std::add_const<T>::type & as_const(T& t) noexcept
{
// NOLINTNEXTLINE(bugprone-return-const-ref-from-parameter) - potential false positive
return t;
}
}
Expand Down

0 comments on commit 6468d6f

Please sign in to comment.