Skip to content

Commit 17eb39d

Browse files
committed
fix: clangformat
1 parent c090457 commit 17eb39d

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

include/extractor/files.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ inline void readTurnDurationPenalty(const boost::filesystem::path &path, TurnPen
402402
// writes .osrm.turn_penalties_index
403403
template <typename TurnIndexT>
404404
inline void writeTurnPenaltiesIndex(const boost::filesystem::path &path,
405-
const TurnIndexT &turn_penalties_index)
405+
const TurnIndexT &turn_penalties_index)
406406
{
407407
const auto fingerprint = storage::tar::FileWriter::GenerateFingerprint;
408408
storage::tar::FileWriter writer{path, fingerprint};
@@ -412,7 +412,8 @@ inline void writeTurnPenaltiesIndex(const boost::filesystem::path &path,
412412

413413
// read .osrm.turn_penalties_index
414414
template <typename TurnIndexT>
415-
inline void readTurnPenaltiesIndex(const boost::filesystem::path &path, TurnIndexT &turn_penalties_index)
415+
inline void readTurnPenaltiesIndex(const boost::filesystem::path &path,
416+
TurnIndexT &turn_penalties_index)
416417
{
417418
const auto fingerprint = storage::tar::FileReader::VerifyFingerprint;
418419
storage::tar::FileReader reader{path, fingerprint};

src/extractor/edge_based_graph_factory.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1130,7 +1130,8 @@ void EdgeBasedGraphFactory::GenerateEdgeExpandedEdges(
11301130
indexed_conditionals);
11311131

11321132
// write weight penalties per turn
1133-
BOOST_ASSERT(turn_weight_penalties.size() == turn_duration_penalties.size() && turn_weight_penalties.size() == turn_penalties_index.size());
1133+
BOOST_ASSERT(turn_weight_penalties.size() == turn_duration_penalties.size() &&
1134+
turn_weight_penalties.size() == turn_penalties_index.size());
11341135
files::writeTurnWeightPenalty(turn_weight_penalties_filename, turn_weight_penalties);
11351136
files::writeTurnDurationPenalty(turn_duration_penalties_filename, turn_duration_penalties);
11361137
files::writeTurnPenaltiesIndex(turn_penalties_index_filename, turn_penalties_index);

src/updater/updater.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -432,9 +432,10 @@ updateTurnPenalties(const UpdaterConfig &config,
432432
{
433433
const auto weight_multiplier = profile_properties.GetWeightMultiplier();
434434

435-
// [NOTE] turn_index_blocks could be simply loaded by `files::readTurnPenaltiesIndex()`,
436-
// however, we leave the below mmap to keep compatiblity.
437-
// Use `files::readTurnPenaltiesIndex()` instead once the compatiblity is not that important.
435+
// [NOTE] turn_index_blocks could be simply loaded by `files::readTurnPenaltiesIndex()`,
436+
// however, we leave the below mmap to keep compatiblity.
437+
// Use `files::readTurnPenaltiesIndex()` instead once the compatiblity is not that
438+
// important.
438439
// Mapped file pointer for turn indices
439440
boost::iostreams::mapped_file_source turn_index_region;
440441
const extractor::lookup::TurnIndexBlock *turn_index_blocks;

0 commit comments

Comments
 (0)