Skip to content

Commit

Permalink
Suppress some localized-compare warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jbytheway committed May 7, 2020
1 parent 9916cf2 commit 83e66bb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/cata_variant.h
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ class cata_variant
}
CATA_VARIANT_OPERATOR( == );
CATA_VARIANT_OPERATOR( != );
CATA_VARIANT_OPERATOR( < );
CATA_VARIANT_OPERATOR( < ); // NOLINT( cata-use-localized-sorting )
CATA_VARIANT_OPERATOR( <= );
CATA_VARIANT_OPERATOR( > );
CATA_VARIANT_OPERATOR( >= );
Expand Down
2 changes: 2 additions & 0 deletions src/flat_set.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ struct transparent_less_than {

template<typename T, typename U>
constexpr auto operator()( T &&lhs, U &&rhs ) const noexcept
// NOLINTNEXTLINE(cata-use-localized-sorting)
-> decltype( std::forward<T>( lhs ) < std::forward<U>( rhs ) ) {
// NOLINTNEXTLINE(cata-use-localized-sorting)
return std::forward<T>( lhs ) < std::forward<U>( rhs );
}
};
Expand Down
1 change: 1 addition & 0 deletions tools/clang-tidy-plugin/UsePointArithmeticCheck.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ struct ExpressionComponent {

static bool operator<( const ExpressionComponent &l, const ExpressionComponent &r )
{
// NOLINTNEXTLINE(cata-use-localized-sorting)
return l.sortKey() < r.sortKey();
}

Expand Down

0 comments on commit 83e66bb

Please sign in to comment.