diff --git a/include/contractor/contract_excludable_graph.hpp b/include/contractor/contract_excludable_graph.hpp index 05567f287..f6a34fc4a 100644 --- a/include/contractor/contract_excludable_graph.hpp +++ b/include/contractor/contract_excludable_graph.hpp @@ -92,6 +92,6 @@ inline auto contractExcludableGraph(ContractorGraph contractor_graph_, return GraphAndFilter{QueryGraph{num_nodes, edge_container.edges}, edge_container.MakeEdgeFilters()}; } -} // namespace osrm +} // namespace osrm::contractor #endif diff --git a/include/contractor/contracted_edge_container.hpp b/include/contractor/contracted_edge_container.hpp index 89affa65a..4dec3be62 100644 --- a/include/contractor/contracted_edge_container.hpp +++ b/include/contractor/contracted_edge_container.hpp @@ -162,6 +162,6 @@ struct ContractedEdgeContainer std::vector flags; std::vector edges; }; -} // namespace osrm +} // namespace osrm::contractor #endif diff --git a/include/contractor/contracted_metric.hpp b/include/contractor/contracted_metric.hpp index 184e6aae2..b41d7f2ac 100644 --- a/include/contractor/contracted_metric.hpp +++ b/include/contractor/contracted_metric.hpp @@ -17,6 +17,6 @@ template struct ContractedMetric using ContractedMetric = detail::ContractedMetric; using ContractedMetricView = detail::ContractedMetric; -} // namespace osrm +} // namespace osrm::contractor #endif diff --git a/include/contractor/contractor.hpp b/include/contractor/contractor.hpp index 5db562e30..4bd38b52b 100644 --- a/include/contractor/contractor.hpp +++ b/include/contractor/contractor.hpp @@ -47,6 +47,6 @@ class Contractor private: ContractorConfig config; }; -} // namespace osrm +} // namespace osrm::contractor #endif // PROCESSING_CHAIN_HPP diff --git a/include/contractor/contractor_config.hpp b/include/contractor/contractor_config.hpp index 164065cb0..020720dde 100644 --- a/include/contractor/contractor_config.hpp +++ b/include/contractor/contractor_config.hpp @@ -69,6 +69,6 @@ struct ContractorConfig final : storage::IOConfig //(e.g. 0.8 contracts 80 percent of the hierarchy, leaving a core of 20%) double core_factor = 1.0; }; -} // namespace osrm +} // namespace osrm::contractor #endif // EXTRACTOR_OPTIONS_HPP diff --git a/include/contractor/contractor_graph.hpp b/include/contractor/contractor_graph.hpp index 13d44985f..e88a5185c 100644 --- a/include/contractor/contractor_graph.hpp +++ b/include/contractor/contractor_graph.hpp @@ -40,6 +40,6 @@ struct ContractorEdgeData using ContractorGraph = util::DynamicGraph; using ContractorEdge = ContractorGraph::InputEdge; -} // namespace osrm +} // namespace osrm::contractor #endif // OSRM_CONTRACTOR_CONTRACTOR_GRAPH_HPP_ diff --git a/include/contractor/contractor_heap.hpp b/include/contractor/contractor_heap.hpp index 79fce9df5..fc581f3b0 100644 --- a/include/contractor/contractor_heap.hpp +++ b/include/contractor/contractor_heap.hpp @@ -22,6 +22,6 @@ using ContractorHeap = util::QueryHeap>; -} // namespace osrm +} // namespace osrm::contractor #endif // OSRM_CONTRACTOR_CONTRACTOR_HEAP_HPP_ diff --git a/include/contractor/contractor_search.hpp b/include/contractor/contractor_search.hpp index ebc0b40b9..2adcf212d 100644 --- a/include/contractor/contractor_search.hpp +++ b/include/contractor/contractor_search.hpp @@ -18,6 +18,6 @@ void search(ContractorHeap &heap, const EdgeWeight weight_limit, const NodeID forbidden_node); -} // namespace osrm +} // namespace osrm::contractor #endif // OSRM_CONTRACTOR_DIJKSTRA_HPP diff --git a/include/contractor/crc32_processor.hpp b/include/contractor/crc32_processor.hpp index c909731ba..81b0baa08 100644 --- a/include/contractor/crc32_processor.hpp +++ b/include/contractor/crc32_processor.hpp @@ -123,6 +123,6 @@ struct RangebasedCRC32 private: IteratorbasedCRC32 crc32; }; -} // namespace osrm +} // namespace osrm::contractor #endif /* ITERATOR_BASED_CRC32_H */ diff --git a/include/contractor/files.hpp b/include/contractor/files.hpp index 6c747b6cf..c0755b728 100644 --- a/include/contractor/files.hpp +++ b/include/contractor/files.hpp @@ -48,6 +48,6 @@ inline void writeGraph(const boost::filesystem::path &path, serialization::write(writer, "/ch/metrics/" + pair.first, pair.second); } } -} // namespace osrm +} // namespace osrm::contractor::files #endif diff --git a/include/contractor/graph_contractor.hpp b/include/contractor/graph_contractor.hpp index 2df62c795..8592d75b1 100644 --- a/include/contractor/graph_contractor.hpp +++ b/include/contractor/graph_contractor.hpp @@ -35,6 +35,6 @@ inline auto contractGraph(ContractorGraph &graph, graph, {}, std::move(node_is_contractable), std::move(node_weights), core_factor); } -} // namespace osrm +} // namespace osrm::contractor #endif // OSRM_CONTRACTOR_GRAPH_CONTRACTOR_HPP diff --git a/include/contractor/graph_contractor_adaptors.hpp b/include/contractor/graph_contractor_adaptors.hpp index a622b9048..903fa08c5 100644 --- a/include/contractor/graph_contractor_adaptors.hpp +++ b/include/contractor/graph_contractor_adaptors.hpp @@ -175,6 +175,6 @@ template inline std::vector toEdges(GraphT g return edges; } -} // namespace osrm +} // namespace osrm::contractor #endif // OSRM_CONTRACTOR_GRAPH_CONTRACTION_ADAPTORS_HPP_ diff --git a/include/contractor/query_edge.hpp b/include/contractor/query_edge.hpp index f8281ac0e..3776aab18 100644 --- a/include/contractor/query_edge.hpp +++ b/include/contractor/query_edge.hpp @@ -75,6 +75,6 @@ struct QueryEdge data.distance == right.data.distance); } }; -} // namespace osrm +} // namespace osrm::contractor #endif // QUERYEDGE_HPP diff --git a/include/contractor/query_graph.hpp b/include/contractor/query_graph.hpp index ad7844435..44cc14092 100644 --- a/include/contractor/query_graph.hpp +++ b/include/contractor/query_graph.hpp @@ -17,6 +17,6 @@ using QueryGraph = util::StaticGraph; using QueryGraph = detail::QueryGraph; using QueryGraphView = detail::QueryGraph; -} // namespace osrm +} // namespace osrm::contractor #endif // QUERYEDGE_HPP diff --git a/include/contractor/serialization.hpp b/include/contractor/serialization.hpp index da9ec8bdb..f1c3bd969 100644 --- a/include/contractor/serialization.hpp +++ b/include/contractor/serialization.hpp @@ -42,6 +42,6 @@ void read(storage::tar::FileReader &reader, metric.edge_filter[index]); } } -} // namespace osrm +} // namespace osrm::contractor::serialization #endif diff --git a/include/customizer/cell_customizer.hpp b/include/customizer/cell_customizer.hpp index 5cb924c89..bf625fa9b 100644 --- a/include/customizer/cell_customizer.hpp +++ b/include/customizer/cell_customizer.hpp @@ -233,6 +233,6 @@ class CellCustomizer const partitioner::MultiLevelPartition &partition; }; -} // namespace osrm +} // namespace osrm::customizer #endif // OSRM_CELLS_CUSTOMIZER_HPP diff --git a/include/customizer/cell_metric.hpp b/include/customizer/cell_metric.hpp index 2adf713fb..f9ffc9b84 100644 --- a/include/customizer/cell_metric.hpp +++ b/include/customizer/cell_metric.hpp @@ -24,6 +24,6 @@ template struct CellMetricImpl using CellMetric = detail::CellMetricImpl; using CellMetricView = detail::CellMetricImpl; -} // namespace osrm +} // namespace osrm::customizer #endif diff --git a/include/customizer/customizer.hpp b/include/customizer/customizer.hpp index 40d2583f8..e153498dc 100644 --- a/include/customizer/customizer.hpp +++ b/include/customizer/customizer.hpp @@ -12,6 +12,6 @@ class Customizer int Run(const CustomizationConfig &config); }; -} // namespace osrm +} // namespace osrm::customizer #endif // OSRM_CUSTOMIZE_CUSTOMIZER_HPP diff --git a/include/customizer/customizer_config.hpp b/include/customizer/customizer_config.hpp index ca5258fb2..3ac028027 100644 --- a/include/customizer/customizer_config.hpp +++ b/include/customizer/customizer_config.hpp @@ -37,6 +37,6 @@ struct CustomizationConfig final : storage::IOConfig updater::UpdaterConfig updater_config; }; -} // namespace osrm +} // namespace osrm::customizer #endif // OSRM_CUSTOMIZE_CUSTOMIZER_CONFIG_HPP diff --git a/include/customizer/edge_based_graph.hpp b/include/customizer/edge_based_graph.hpp index 2f5a552b2..5bc45e24a 100644 --- a/include/customizer/edge_based_graph.hpp +++ b/include/customizer/edge_based_graph.hpp @@ -124,6 +124,6 @@ using MultiLevelEdgeBasedGraph = MultiLevelGraph; using MultiLevelEdgeBasedGraphView = MultiLevelGraph; -} // namespace osrm +} // namespace osrm::customizer #endif diff --git a/include/customizer/files.hpp b/include/customizer/files.hpp index 287ca5063..e5394da59 100644 --- a/include/customizer/files.hpp +++ b/include/customizer/files.hpp @@ -102,6 +102,6 @@ inline void writeGraph(const boost::filesystem::path &path, writer.WriteFrom("/mld/connectivity_checksum", connectivity_checksum); serialization::write(writer, "/mld/multilevelgraph", graph); } -} // namespace osrm +} // namespace osrm::customizer::files #endif diff --git a/include/customizer/serialization.hpp b/include/customizer/serialization.hpp index 158d37a39..afd0cc91e 100644 --- a/include/customizer/serialization.hpp +++ b/include/customizer/serialization.hpp @@ -61,6 +61,6 @@ inline void write(storage::tar::FileWriter &writer, storage::serialization::write(writer, name + "/is_backward_edge", graph.is_backward_edge); storage::serialization::write(writer, name + "/node_to_edge_offset", graph.node_to_edge_offset); } -} // namespace osrm +} // namespace osrm::customizer::serialization #endif diff --git a/include/engine/algorithm.hpp b/include/engine/algorithm.hpp index eca88b21c..5d86b7626 100644 --- a/include/engine/algorithm.hpp +++ b/include/engine/algorithm.hpp @@ -107,6 +107,6 @@ template <> struct HasGetTileTurns final : std::true_type template <> struct HasExcludeFlags final : std::true_type { }; -} // namespace osrm +} // namespace osrm::engine::routing_algorithms #endif diff --git a/include/engine/api/base_api.hpp b/include/engine/api/base_api.hpp index a1ce063f1..a2acfcfbc 100644 --- a/include/engine/api/base_api.hpp +++ b/include/engine/api/base_api.hpp @@ -166,6 +166,6 @@ class BaseAPI const BaseParameters ¶meters; }; -} // namespace osrm +} // namespace osrm::engine::api #endif diff --git a/include/engine/api/base_parameters.hpp b/include/engine/api/base_parameters.hpp index 7e243dc98..9cc13ae01 100644 --- a/include/engine/api/base_parameters.hpp +++ b/include/engine/api/base_parameters.hpp @@ -120,6 +120,6 @@ struct BaseParameters }); } }; -} // namespace osrm +} // namespace osrm::engine::api #endif // ROUTE_PARAMETERS_HPP diff --git a/include/engine/api/base_result.hpp b/include/engine/api/base_result.hpp index eae87550a..328871595 100644 --- a/include/engine/api/base_result.hpp +++ b/include/engine/api/base_result.hpp @@ -12,6 +12,6 @@ namespace osrm::engine::api { using ResultT = mapbox::util::variant; -} // namespace osrm +} // namespace osrm::engine::api #endif diff --git a/include/engine/api/json_factory.hpp b/include/engine/api/json_factory.hpp index 3e3c98005..a3f2b0954 100644 --- a/include/engine/api/json_factory.hpp +++ b/include/engine/api/json_factory.hpp @@ -108,7 +108,7 @@ util::json::Object makeRouteLeg(guidance::RouteLeg leg, util::json::Array steps) util::json::Array makeRouteLegs(std::vector legs, std::vector step_geometries, std::vector annotations); -} // namespace api -} // namespace osrm +} // namespace api::json +} // namespace osrm::engine #endif // ENGINE_GUIDANCE_API_RESPONSE_GENERATOR_HPP_ diff --git a/include/engine/api/match_api.hpp b/include/engine/api/match_api.hpp index 341f9cc3b..20034e75b 100644 --- a/include/engine/api/match_api.hpp +++ b/include/engine/api/match_api.hpp @@ -249,6 +249,6 @@ class MatchAPI final : public RouteAPI const tidy::Result &tidy_result; }; -} // namespace osrm +} // namespace osrm::engine::api #endif diff --git a/include/engine/api/match_parameters.hpp b/include/engine/api/match_parameters.hpp index e2009bd6e..52fc64c1e 100644 --- a/include/engine/api/match_parameters.hpp +++ b/include/engine/api/match_parameters.hpp @@ -94,6 +94,6 @@ struct MatchParameters : public RouteParameters (timestamps.empty() || timestamps.size() == coordinates.size()); } }; -} // namespace osrm +} // namespace osrm::engine::api #endif diff --git a/include/engine/api/match_parameters_tidy.hpp b/include/engine/api/match_parameters_tidy.hpp index 43b12dd13..93a572b13 100644 --- a/include/engine/api/match_parameters_tidy.hpp +++ b/include/engine/api/match_parameters_tidy.hpp @@ -194,6 +194,6 @@ inline Result tidy(const MatchParameters ¶ms, Thresholds cfg = {15., 5}) return result; } -} // namespace osrm +} // namespace osrm::engine::api::tidy #endif diff --git a/include/engine/api/nearest_api.hpp b/include/engine/api/nearest_api.hpp index 1f031f2f5..bc1d4e04f 100644 --- a/include/engine/api/nearest_api.hpp +++ b/include/engine/api/nearest_api.hpp @@ -160,6 +160,6 @@ class NearestAPI final : public BaseAPI } }; -} // namespace osrm +} // namespace osrm::engine::api #endif diff --git a/include/engine/api/nearest_parameters.hpp b/include/engine/api/nearest_parameters.hpp index d6217fcfa..442b7b67d 100644 --- a/include/engine/api/nearest_parameters.hpp +++ b/include/engine/api/nearest_parameters.hpp @@ -48,6 +48,6 @@ struct NearestParameters : public BaseParameters bool IsValid() const { return BaseParameters::IsValid() && number_of_results >= 1; } }; -} // namespace osrm +} // namespace osrm::engine::api #endif // ENGINE_API_NEAREST_PARAMETERS_HPP diff --git a/include/engine/api/route_api.hpp b/include/engine/api/route_api.hpp index a494abe64..088235e54 100644 --- a/include/engine/api/route_api.hpp +++ b/include/engine/api/route_api.hpp @@ -997,6 +997,6 @@ class RouteAPI : public BaseAPI } }; -} // namespace osrm +} // namespace osrm::engine::api #endif diff --git a/include/engine/api/route_parameters.hpp b/include/engine/api/route_parameters.hpp index a513daad1..fe121a06d 100644 --- a/include/engine/api/route_parameters.hpp +++ b/include/engine/api/route_parameters.hpp @@ -207,6 +207,6 @@ inline RouteParameters::AnnotationsType operator|=(RouteParameters::AnnotationsT { return lhs = lhs | rhs; } -} // namespace osrm +} // namespace osrm::engine::api #endif diff --git a/include/engine/api/table_api.hpp b/include/engine/api/table_api.hpp index 2eaee214b..af4e692e3 100644 --- a/include/engine/api/table_api.hpp +++ b/include/engine/api/table_api.hpp @@ -418,6 +418,6 @@ class TableAPI final : public BaseAPI const TableParameters ¶meters; }; -} // namespace osrm +} // namespace osrm::engine::api #endif diff --git a/include/engine/api/table_parameters.hpp b/include/engine/api/table_parameters.hpp index ea860652c..be65b9a77 100644 --- a/include/engine/api/table_parameters.hpp +++ b/include/engine/api/table_parameters.hpp @@ -162,6 +162,6 @@ inline TableParameters::AnnotationsType &operator|=(TableParameters::Annotations { return lhs = lhs | rhs; } -} // namespace osrm +} // namespace osrm::engine::api #endif // ENGINE_API_TABLE_PARAMETERS_HPP diff --git a/include/engine/api/tile_parameters.hpp b/include/engine/api/tile_parameters.hpp index 2c5bafc27..09978ac4b 100644 --- a/include/engine/api/tile_parameters.hpp +++ b/include/engine/api/tile_parameters.hpp @@ -66,6 +66,6 @@ struct TileParameters final return valid_x && valid_y && valid_z; } }; -} // namespace osrm +} // namespace osrm::engine::api #endif diff --git a/include/engine/api/trip_api.hpp b/include/engine/api/trip_api.hpp index 74e17676b..f15d21422 100644 --- a/include/engine/api/trip_api.hpp +++ b/include/engine/api/trip_api.hpp @@ -176,6 +176,6 @@ class TripAPI final : public RouteAPI const TripParameters ¶meters; }; -} // namespace osrm +} // namespace osrm::engine::api #endif diff --git a/include/engine/api/trip_parameters.hpp b/include/engine/api/trip_parameters.hpp index bffcae38c..6cfffd295 100644 --- a/include/engine/api/trip_parameters.hpp +++ b/include/engine/api/trip_parameters.hpp @@ -72,6 +72,6 @@ struct TripParameters : public RouteParameters bool IsValid() const { return RouteParameters::IsValid(); } }; -} // namespace osrm +} // namespace osrm::engine::api #endif diff --git a/include/engine/approach.hpp b/include/engine/approach.hpp index c5ee5182a..185dcfcf5 100644 --- a/include/engine/approach.hpp +++ b/include/engine/approach.hpp @@ -39,5 +39,5 @@ enum class Approach : std::uint8_t UNRESTRICTED = 1 }; -} // namespace osrm +} // namespace osrm::engine #endif diff --git a/include/engine/bearing.hpp b/include/engine/bearing.hpp index 60bfe28fe..c64e689d5 100644 --- a/include/engine/bearing.hpp +++ b/include/engine/bearing.hpp @@ -44,6 +44,6 @@ inline bool operator==(const Bearing lhs, const Bearing rhs) return lhs.bearing == rhs.bearing && lhs.range == rhs.range; } inline bool operator!=(const Bearing lhs, const Bearing rhs) { return !(lhs == rhs); } -} // namespace osrm +} // namespace osrm::engine #endif diff --git a/include/engine/data_watchdog.hpp b/include/engine/data_watchdog.hpp index 1e913a26b..a4583398a 100644 --- a/include/engine/data_watchdog.hpp +++ b/include/engine/data_watchdog.hpp @@ -147,6 +147,6 @@ class DataWatchdogImpl class FacadeT> using DataWatchdog = detail::DataWatchdogImpl>; -} // namespace osrm +} // namespace osrm::engine #endif diff --git a/include/engine/datafacade.hpp b/include/engine/datafacade.hpp index 1488610e0..900f11661 100644 --- a/include/engine/datafacade.hpp +++ b/include/engine/datafacade.hpp @@ -9,6 +9,6 @@ namespace osrm::engine using DataFacadeBase = datafacade::ContiguousInternalMemoryDataFacadeBase; template using DataFacade = datafacade::ContiguousInternalMemoryDataFacade; -} // namespace osrm +} // namespace osrm::engine #endif diff --git a/include/engine/datafacade/algorithm_datafacade.hpp b/include/engine/datafacade/algorithm_datafacade.hpp index d838f9c09..7965784bc 100644 --- a/include/engine/datafacade/algorithm_datafacade.hpp +++ b/include/engine/datafacade/algorithm_datafacade.hpp @@ -105,6 +105,6 @@ template <> class AlgorithmDataFacade virtual EdgeID FindEdge(const NodeID edge_based_node_from, const NodeID edge_based_node_to) const = 0; }; -} // namespace osrm +} // namespace osrm::engine::datafacade #endif diff --git a/include/engine/datafacade/contiguous_block_allocator.hpp b/include/engine/datafacade/contiguous_block_allocator.hpp index 5103dc8a8..ec16e303f 100644 --- a/include/engine/datafacade/contiguous_block_allocator.hpp +++ b/include/engine/datafacade/contiguous_block_allocator.hpp @@ -15,6 +15,6 @@ class ContiguousBlockAllocator virtual const storage::SharedDataIndex &GetIndex() = 0; }; -} // namespace osrm +} // namespace osrm::engine::datafacade #endif // OSRM_ENGINE_DATAFACADE_CONTIGUOUS_BLOCK_ALLOCATOR_HPP_ diff --git a/include/engine/datafacade/contiguous_internalmem_datafacade.hpp b/include/engine/datafacade/contiguous_internalmem_datafacade.hpp index 936c9a927..1f584870a 100644 --- a/include/engine/datafacade/contiguous_internalmem_datafacade.hpp +++ b/include/engine/datafacade/contiguous_internalmem_datafacade.hpp @@ -689,6 +689,6 @@ class ContiguousInternalMemoryDataFacade final { } }; -} // namespace osrm +} // namespace osrm::engine::datafacade #endif // CONTIGUOUS_INTERNALMEM_DATAFACADE_HPP diff --git a/include/engine/datafacade/datafacade_base.hpp b/include/engine/datafacade/datafacade_base.hpp index d38a329bf..2d110e7da 100644 --- a/include/engine/datafacade/datafacade_base.hpp +++ b/include/engine/datafacade/datafacade_base.hpp @@ -185,6 +185,6 @@ class BaseDataFacade virtual std::vector GetOverridesThatStartAt(const NodeID edge_based_node_id) const = 0; }; -} // namespace osrm +} // namespace osrm::engine::datafacade #endif // DATAFACADE_BASE_HPP diff --git a/include/engine/datafacade/mmap_memory_allocator.hpp b/include/engine/datafacade/mmap_memory_allocator.hpp index 9fae0f562..3acb5caa4 100644 --- a/include/engine/datafacade/mmap_memory_allocator.hpp +++ b/include/engine/datafacade/mmap_memory_allocator.hpp @@ -33,6 +33,6 @@ class MMapMemoryAllocator final : public ContiguousBlockAllocator std::string rtree_filename; }; -} // namespace osrm +} // namespace osrm::engine::datafacade #endif // OSRM_ENGINE_DATAFACADE_SHARED_MEMORY_ALLOCATOR_HPP_ diff --git a/include/engine/datafacade/process_memory_allocator.hpp b/include/engine/datafacade/process_memory_allocator.hpp index 5851f545f..8cf5db0bf 100644 --- a/include/engine/datafacade/process_memory_allocator.hpp +++ b/include/engine/datafacade/process_memory_allocator.hpp @@ -30,6 +30,6 @@ class ProcessMemoryAllocator final : public ContiguousBlockAllocator std::unique_ptr internal_memory; }; -} // namespace osrm +} // namespace osrm::engine::datafacade #endif // OSRM_ENGINE_DATAFACADE_PROCESS_MEMORY_ALLOCATOR_HPP_ diff --git a/include/engine/datafacade/shared_memory_allocator.hpp b/include/engine/datafacade/shared_memory_allocator.hpp index 5326d8d37..71170316c 100644 --- a/include/engine/datafacade/shared_memory_allocator.hpp +++ b/include/engine/datafacade/shared_memory_allocator.hpp @@ -31,6 +31,6 @@ class SharedMemoryAllocator final : public ContiguousBlockAllocator std::vector> memory_regions; }; -} // namespace osrm +} // namespace osrm::engine::datafacade #endif // OSRM_ENGINE_DATAFACADE_SHARED_MEMORY_ALLOCATOR_HPP_ diff --git a/include/engine/datafacade_factory.hpp b/include/engine/datafacade_factory.hpp index 705b8ff19..d255b394d 100644 --- a/include/engine/datafacade_factory.hpp +++ b/include/engine/datafacade_factory.hpp @@ -150,6 +150,6 @@ template