Enable readability-container-contains clang-tidy check

This commit is contained in:
Siarhei Fedartsou 2024-05-26 12:44:46 +02:00
parent ae5a52cade
commit b94fcba977
2 changed files with 4 additions and 3 deletions

View File

@ -345,7 +345,7 @@ RoundaboutType RoundaboutHandler::getRoundaboutType(const NodeID nid) const
// used with a reference and without. This will be fixed automatically
// when we handle references separately or if the useage is more consistent
const auto is_rotary = (1 == roundabout_name_ids.size()) &&
(circular || //
(circular || //
((!connected_names.contains(*roundabout_name_ids.begin())) && //
(radius > MAX_ROUNDABOUT_RADIUS)));

View File

@ -300,8 +300,9 @@ bool DinicMaxFlow::Validate(const BisectionGraphView &view,
// sink and source cannot share a common node
const auto separated = std::find_if(source_nodes.begin(),
source_nodes.end(),
[&sink_nodes](const auto node)
{ return sink_nodes.contains(node); }) == source_nodes.end();
[&sink_nodes](const auto node) {
return sink_nodes.contains(node);
}) == source_nodes.end();
const auto invalid_id = [&view](const NodeID nid) { return nid >= view.NumberOfNodes(); };
const auto in_range_source =