diff --git a/src/benchmarks/alias.cpp b/src/benchmarks/alias.cpp index 2433413af5f..b2a4ad1dae3 100644 --- a/src/benchmarks/alias.cpp +++ b/src/benchmarks/alias.cpp @@ -50,7 +50,7 @@ int main(int, char **) TIMER_START(aliased_u32); for (auto round : util::irange(0, num_rounds)) { - (void) round; + (void)round; osrm_uint32 sum{0}; osrm_uint32 mult{1}; for (auto idx : indices) @@ -69,7 +69,7 @@ int main(int, char **) TIMER_START(plain_u32); for (auto round : util::irange(0, num_rounds)) { - (void) round; + (void)round; std::uint32_t sum{0}; std::uint32_t mult{1}; for (auto idx : indices) @@ -88,7 +88,7 @@ int main(int, char **) TIMER_START(aliased_double); for (auto round : util::irange(0, num_rounds)) { - (void) round; + (void)round; osrm_double sum{0.0}; osrm_double mult{1.0}; for (auto idx : indices) @@ -108,7 +108,7 @@ int main(int, char **) TIMER_START(plain_double); for (auto round : util::irange(0, num_rounds)) { - (void) round; + (void)round; double sum{0.0}; double mult{1.0}; for (auto idx : indices) diff --git a/src/extractor/compressed_edge_container.cpp b/src/extractor/compressed_edge_container.cpp index 9645e8f4aea..348afc5de11 100644 --- a/src/extractor/compressed_edge_container.cpp +++ b/src/extractor/compressed_edge_container.cpp @@ -103,17 +103,16 @@ SegmentDuration CompressedEdgeContainer::ClipDuration(const SegmentDuration dura // ----------> via_node_id -----------> target_node_id // weight_1 weight_2 // duration_1 duration_2 -void CompressedEdgeContainer::CompressEdge( - const EdgeID edge_id_1, - const EdgeID edge_id_2, - const NodeID via_node_id, - const NodeID target_node_id, - const EdgeWeight weight1, - const EdgeWeight weight2, - const EdgeDuration duration1, - const EdgeDuration duration2, - const EdgeWeight node_weight_penalty, - const EdgeDuration node_duration_penalty) +void CompressedEdgeContainer::CompressEdge(const EdgeID edge_id_1, + const EdgeID edge_id_2, + const NodeID via_node_id, + const NodeID target_node_id, + const EdgeWeight weight1, + const EdgeWeight weight2, + const EdgeDuration duration1, + const EdgeDuration duration2, + const EdgeWeight node_weight_penalty, + const EdgeDuration node_duration_penalty) { // remove super-trivial geometries BOOST_ASSERT(SPECIAL_EDGEID != edge_id_1); @@ -169,7 +168,8 @@ void CompressedEdgeContainer::CompressEdge( // if the via-node offers a penalty, we add the weight of the penalty as an artificial // segment that references SPECIAL_NODEID - if (node_weight_penalty != INVALID_EDGE_WEIGHT && node_duration_penalty != MAXIMAL_EDGE_DURATION) + if (node_weight_penalty != INVALID_EDGE_WEIGHT && + node_duration_penalty != MAXIMAL_EDGE_DURATION) { edge_bucket_list1.emplace_back(OnewayCompressedEdge{ via_node_id, ClipWeight(node_weight_penalty), ClipDuration(node_duration_penalty)}); diff --git a/src/extractor/graph_compressor.cpp b/src/extractor/graph_compressor.cpp index c7e6bf1a033..e85fa075625 100644 --- a/src/extractor/graph_compressor.cpp +++ b/src/extractor/graph_compressor.cpp @@ -275,7 +275,8 @@ void GraphCompressor::Compress( graph.GetEdgeData(forward_e1).duration += forward_duration2; graph.GetEdgeData(reverse_e1).duration += reverse_duration2; - if (node_weight_penalty != INVALID_EDGE_WEIGHT && node_duration_penalty != MAXIMAL_EDGE_DURATION) + if (node_weight_penalty != INVALID_EDGE_WEIGHT && + node_duration_penalty != MAXIMAL_EDGE_DURATION) { graph.GetEdgeData(forward_e1).weight += node_weight_penalty; graph.GetEdgeData(reverse_e1).weight += node_weight_penalty; diff --git a/unit_tests/util/static_graph.cpp b/unit_tests/util/static_graph.cpp index 900aed19220..c1ed34fcabc 100644 --- a/unit_tests/util/static_graph.cpp +++ b/unit_tests/util/static_graph.cpp @@ -62,7 +62,8 @@ template struct RandomArrayEntryFixture std::uniform_int_distribution<> node_udist(0, NUM_NODES - 1); for (unsigned i = 0; i < NUM_EDGES; i++) { - edges.emplace_back(TestEdgeArrayEntry{static_cast(node_udist(g)), {EdgeID{i}}}); + edges.emplace_back( + TestEdgeArrayEntry{static_cast(node_udist(g)), {EdgeID{i}}}); } for (unsigned i = 0; i < NUM_NODES; i++)