Sync with Clang38 Format
This commit is contained in:
parent
e198709643
commit
801cc72691
@ -207,8 +207,7 @@ class RouteAPI : public BaseAPI
|
|||||||
durations.values.push_back(step.duration);
|
durations.values.push_back(step.duration);
|
||||||
distances.values.push_back(step.distance);
|
distances.values.push_back(step.distance);
|
||||||
});
|
});
|
||||||
std::for_each(
|
std::for_each(leg_geometry.osm_node_ids.begin(),
|
||||||
leg_geometry.osm_node_ids.begin(),
|
|
||||||
leg_geometry.osm_node_ids.end(),
|
leg_geometry.osm_node_ids.end(),
|
||||||
[this, &nodes](const OSMNodeID &node_id) {
|
[this, &nodes](const OSMNodeID &node_id) {
|
||||||
nodes.values.push_back(static_cast<std::uint64_t>(node_id));
|
nodes.values.push_back(static_cast<std::uint64_t>(node_id));
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
#include "engine/geospatial_query.hpp"
|
#include "engine/geospatial_query.hpp"
|
||||||
#include "util/graph_loader.hpp"
|
#include "util/graph_loader.hpp"
|
||||||
#include "util/io.hpp"
|
#include "util/io.hpp"
|
||||||
|
#include "util/packed_vector.hpp"
|
||||||
#include "util/range_table.hpp"
|
#include "util/range_table.hpp"
|
||||||
#include "util/rectangle.hpp"
|
#include "util/rectangle.hpp"
|
||||||
#include "util/shared_memory_vector_wrapper.hpp"
|
#include "util/shared_memory_vector_wrapper.hpp"
|
||||||
@ -24,7 +25,6 @@
|
|||||||
#include "util/static_graph.hpp"
|
#include "util/static_graph.hpp"
|
||||||
#include "util/static_rtree.hpp"
|
#include "util/static_rtree.hpp"
|
||||||
#include "util/typedefs.hpp"
|
#include "util/typedefs.hpp"
|
||||||
#include "util/packed_vector.hpp"
|
|
||||||
|
|
||||||
#include "osrm/coordinate.hpp"
|
#include "osrm/coordinate.hpp"
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
#ifndef PACKED_VECTOR_HPP
|
#ifndef PACKED_VECTOR_HPP
|
||||||
#define PACKED_VECTOR_HPP
|
#define PACKED_VECTOR_HPP
|
||||||
|
|
||||||
#include "util/typedefs.hpp"
|
|
||||||
#include "util/shared_memory_vector_wrapper.hpp"
|
#include "util/shared_memory_vector_wrapper.hpp"
|
||||||
|
#include "util/typedefs.hpp"
|
||||||
|
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
@ -14,13 +14,13 @@
|
|||||||
#include "util/exception.hpp"
|
#include "util/exception.hpp"
|
||||||
#include "util/fingerprint.hpp"
|
#include "util/fingerprint.hpp"
|
||||||
#include "util/io.hpp"
|
#include "util/io.hpp"
|
||||||
|
#include "util/packed_vector.hpp"
|
||||||
#include "util/range_table.hpp"
|
#include "util/range_table.hpp"
|
||||||
#include "util/shared_memory_vector_wrapper.hpp"
|
#include "util/shared_memory_vector_wrapper.hpp"
|
||||||
#include "util/simple_logger.hpp"
|
#include "util/simple_logger.hpp"
|
||||||
#include "util/static_graph.hpp"
|
#include "util/static_graph.hpp"
|
||||||
#include "util/static_rtree.hpp"
|
#include "util/static_rtree.hpp"
|
||||||
#include "util/typedefs.hpp"
|
#include "util/typedefs.hpp"
|
||||||
#include "util/packed_vector.hpp"
|
|
||||||
|
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
|
@ -50,10 +50,7 @@ class MockDataFacade final : public engine::datafacade::BaseDataFacade
|
|||||||
{
|
{
|
||||||
return {util::FixedLongitude{0}, util::FixedLatitude{0}};
|
return {util::FixedLongitude{0}, util::FixedLatitude{0}};
|
||||||
}
|
}
|
||||||
OSMNodeID GetOSMNodeIDOfNode(const unsigned /* id */) const override
|
OSMNodeID GetOSMNodeIDOfNode(const unsigned /* id */) const override { return OSMNodeID{0}; }
|
||||||
{
|
|
||||||
return OSMNodeID{0};
|
|
||||||
}
|
|
||||||
bool EdgeIsCompressed(const unsigned /* id */) const { return false; }
|
bool EdgeIsCompressed(const unsigned /* id */) const { return false; }
|
||||||
unsigned GetGeometryIndexForEdgeID(const unsigned /* id */) const override
|
unsigned GetGeometryIndexForEdgeID(const unsigned /* id */) const override
|
||||||
{
|
{
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
#include "util/packed_vector.hpp"
|
#include "util/packed_vector.hpp"
|
||||||
#include "util/typedefs.hpp"
|
#include "util/typedefs.hpp"
|
||||||
|
|
||||||
#include <boost/test/unit_test.hpp>
|
|
||||||
#include <boost/test/test_case_template.hpp>
|
#include <boost/test/test_case_template.hpp>
|
||||||
|
#include <boost/test/unit_test.hpp>
|
||||||
|
|
||||||
BOOST_AUTO_TEST_SUITE(packed_vector_test)
|
BOOST_AUTO_TEST_SUITE(packed_vector_test)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user