Upgrade clang-format to version 15 (#6859)
This commit is contained in:
@@ -113,12 +113,10 @@ BOOST_AUTO_TEST_CASE(check_max_size)
|
||||
std::vector<unsigned char> name_data(0x1000000, '#');
|
||||
std::vector<std::uint32_t> name_offsets;
|
||||
|
||||
auto test_variable = [&name_offsets, &name_data]() {
|
||||
test_rw<IndexedData<VariableGroupBlock<16, std::string>>>(name_offsets, name_data);
|
||||
};
|
||||
auto test_fixed = [&name_offsets, &name_data]() {
|
||||
test_rw<IndexedData<FixedGroupBlock<16, std::string>>>(name_offsets, name_data);
|
||||
};
|
||||
auto test_variable = [&name_offsets, &name_data]()
|
||||
{ test_rw<IndexedData<VariableGroupBlock<16, std::string>>>(name_offsets, name_data); };
|
||||
auto test_fixed = [&name_offsets, &name_data]()
|
||||
{ test_rw<IndexedData<FixedGroupBlock<16, std::string>>>(name_offsets, name_data); };
|
||||
|
||||
name_offsets = {0, 0x1000000};
|
||||
BOOST_CHECK_THROW(test_variable(), osrm::util::exception);
|
||||
|
||||
@@ -61,8 +61,8 @@ template <typename DataT> class LinearSearchNN
|
||||
std::vector<DataT> local_edges(edges);
|
||||
|
||||
auto projected_input = web_mercator::fromWGS84(input_coordinate);
|
||||
const auto segment_comparator = [this, &projected_input](const DataT &lhs,
|
||||
const DataT &rhs) {
|
||||
const auto segment_comparator = [this, &projected_input](const DataT &lhs, const DataT &rhs)
|
||||
{
|
||||
using web_mercator::fromWGS84;
|
||||
const auto lhs_result = coordinate_calculation::projectPointOnSegment(
|
||||
fromWGS84(coords[lhs.u]), fromWGS84(coords[lhs.v]), projected_input);
|
||||
|
||||
Reference in New Issue
Block a user