Configure clang-tidy job on CI (#6261)

This commit is contained in:
Siarhei Fedartsou
2022-06-28 01:14:28 +02:00
committed by GitHub
parent 79d4363d59
commit 59953172e8
22 changed files with 138 additions and 13 deletions
@@ -892,6 +892,7 @@ CoordinateExtractor::PrepareLengthCache(const std::vector<util::Coordinate> &coo
segment_distances.reserve(coordinates.size());
segment_distances.push_back(0);
// sentinel
// NOLINTNEXTLINE(bugprone-unused-return-value)
std::find_if(std::next(std::begin(coordinates)),
std::end(coordinates),
[last_coordinate = coordinates.front(),
@@ -884,6 +884,7 @@ void Sol2ScriptingEnvironment::ProcessElements(
case osmium::item_type::node:
{
const auto &node = static_cast<const osmium::Node &>(*entity);
// NOLINTNEXTLINE(bugprone-use-after-move)
result_node.clear();
if (local_context.has_node_function &&
(!node.tags().empty() || local_context.properties.call_tagless_node_function))
@@ -896,6 +897,7 @@ void Sol2ScriptingEnvironment::ProcessElements(
case osmium::item_type::way:
{
const osmium::Way &way = static_cast<const osmium::Way &>(*entity);
// NOLINTNEXTLINE(bugprone-use-after-move)
result_way.clear();
if (local_context.has_way_function)
{