From 17eb39d0a9071487167ba0b7bd7635b07d68804a Mon Sep 17 00:00:00 2001 From: Jay Zhang Date: Mon, 26 Oct 2020 01:19:17 +0000 Subject: [PATCH] fix: clangformat --- include/extractor/files.hpp | 5 +++-- src/extractor/edge_based_graph_factory.cpp | 3 ++- src/updater/updater.cpp | 7 ++++--- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/include/extractor/files.hpp b/include/extractor/files.hpp index 871d7022c..a463bbbc5 100644 --- a/include/extractor/files.hpp +++ b/include/extractor/files.hpp @@ -402,7 +402,7 @@ inline void readTurnDurationPenalty(const boost::filesystem::path &path, TurnPen // writes .osrm.turn_penalties_index template inline void writeTurnPenaltiesIndex(const boost::filesystem::path &path, - const TurnIndexT &turn_penalties_index) + const TurnIndexT &turn_penalties_index) { const auto fingerprint = storage::tar::FileWriter::GenerateFingerprint; storage::tar::FileWriter writer{path, fingerprint}; @@ -412,7 +412,8 @@ inline void writeTurnPenaltiesIndex(const boost::filesystem::path &path, // read .osrm.turn_penalties_index template -inline void readTurnPenaltiesIndex(const boost::filesystem::path &path, TurnIndexT &turn_penalties_index) +inline void readTurnPenaltiesIndex(const boost::filesystem::path &path, + TurnIndexT &turn_penalties_index) { const auto fingerprint = storage::tar::FileReader::VerifyFingerprint; storage::tar::FileReader reader{path, fingerprint}; diff --git a/src/extractor/edge_based_graph_factory.cpp b/src/extractor/edge_based_graph_factory.cpp index 1da2087e6..3684c1478 100644 --- a/src/extractor/edge_based_graph_factory.cpp +++ b/src/extractor/edge_based_graph_factory.cpp @@ -1130,7 +1130,8 @@ void EdgeBasedGraphFactory::GenerateEdgeExpandedEdges( indexed_conditionals); // write weight penalties per turn - BOOST_ASSERT(turn_weight_penalties.size() == turn_duration_penalties.size() && turn_weight_penalties.size() == turn_penalties_index.size()); + BOOST_ASSERT(turn_weight_penalties.size() == turn_duration_penalties.size() && + turn_weight_penalties.size() == turn_penalties_index.size()); files::writeTurnWeightPenalty(turn_weight_penalties_filename, turn_weight_penalties); files::writeTurnDurationPenalty(turn_duration_penalties_filename, turn_duration_penalties); files::writeTurnPenaltiesIndex(turn_penalties_index_filename, turn_penalties_index); diff --git a/src/updater/updater.cpp b/src/updater/updater.cpp index afca34705..552910842 100644 --- a/src/updater/updater.cpp +++ b/src/updater/updater.cpp @@ -432,9 +432,10 @@ updateTurnPenalties(const UpdaterConfig &config, { const auto weight_multiplier = profile_properties.GetWeightMultiplier(); - // [NOTE] turn_index_blocks could be simply loaded by `files::readTurnPenaltiesIndex()`, - // however, we leave the below mmap to keep compatiblity. - // Use `files::readTurnPenaltiesIndex()` instead once the compatiblity is not that important. + // [NOTE] turn_index_blocks could be simply loaded by `files::readTurnPenaltiesIndex()`, + // however, we leave the below mmap to keep compatiblity. + // Use `files::readTurnPenaltiesIndex()` instead once the compatiblity is not that + // important. // Mapped file pointer for turn indices boost::iostreams::mapped_file_source turn_index_region; const extractor::lookup::TurnIndexBlock *turn_index_blocks;