Upgrade clang-format to version 15 (#6859)

This commit is contained in:
Dennis Luxen
2024-05-06 09:14:46 +02:00
committed by GitHub
parent b503e96a98
commit 7f9d591ab7
156 changed files with 2357 additions and 1894 deletions
+4 -6
View File
@@ -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);
+2 -2
View File
@@ -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);