Enable readability-container-contains clang-tidy check
This commit is contained in:
parent
ae5a52cade
commit
b94fcba977
@ -345,7 +345,7 @@ RoundaboutType RoundaboutHandler::getRoundaboutType(const NodeID nid) const
|
|||||||
// used with a reference and without. This will be fixed automatically
|
// used with a reference and without. This will be fixed automatically
|
||||||
// when we handle references separately or if the useage is more consistent
|
// when we handle references separately or if the useage is more consistent
|
||||||
const auto is_rotary = (1 == roundabout_name_ids.size()) &&
|
const auto is_rotary = (1 == roundabout_name_ids.size()) &&
|
||||||
(circular || //
|
(circular || //
|
||||||
((!connected_names.contains(*roundabout_name_ids.begin())) && //
|
((!connected_names.contains(*roundabout_name_ids.begin())) && //
|
||||||
(radius > MAX_ROUNDABOUT_RADIUS)));
|
(radius > MAX_ROUNDABOUT_RADIUS)));
|
||||||
|
|
||||||
|
@ -300,8 +300,9 @@ bool DinicMaxFlow::Validate(const BisectionGraphView &view,
|
|||||||
// sink and source cannot share a common node
|
// sink and source cannot share a common node
|
||||||
const auto separated = std::find_if(source_nodes.begin(),
|
const auto separated = std::find_if(source_nodes.begin(),
|
||||||
source_nodes.end(),
|
source_nodes.end(),
|
||||||
[&sink_nodes](const auto node)
|
[&sink_nodes](const auto node) {
|
||||||
{ return sink_nodes.contains(node); }) == source_nodes.end();
|
return sink_nodes.contains(node);
|
||||||
|
}) == source_nodes.end();
|
||||||
|
|
||||||
const auto invalid_id = [&view](const NodeID nid) { return nid >= view.NumberOfNodes(); };
|
const auto invalid_id = [&view](const NodeID nid) { return nid >= view.NumberOfNodes(); };
|
||||||
const auto in_range_source =
|
const auto in_range_source =
|
||||||
|
Loading…
Reference in New Issue
Block a user