Enable more clang-tidy checks

This commit is contained in:
Siarhei Fedartsou 2022-06-30 11:05:41 +02:00
parent 93aafc3c7b
commit 595c2e6f6e

View File

@ -9,8 +9,8 @@
struct EdgeWithSomeAdditionalData struct EdgeWithSomeAdditionalData
{ {
osrm::util::NodeID source; NodeID source;
osrm::util::NodeID target; NodeID target;
unsigned important_data; unsigned important_data;
}; };
@ -50,25 +50,25 @@ inline std::vector<EdgeWithSomeAdditionalData> makeGridEdges(int rows, int colum
if (c > 0) if (c > 0)
{ {
auto left = get_id(r, c - 1); auto left = get_id(r, c - 1);
edges.push_back({id, static_cast<osrm::util::NodeID>(left), 1}); edges.push_back({id, static_cast<NodeID>(left), 1});
} }
if (c + 1 < columns) if (c + 1 < columns)
{ {
auto right = get_id(r, c + 1); auto right = get_id(r, c + 1);
if (valid(right)) if (valid(right))
edges.push_back({id, static_cast<osrm::util::NodeID>(right), 1}); edges.push_back({id, static_cast<NodeID>(right), 1});
} }
if (r > 0) if (r > 0)
{ {
auto top = get_id(r - 1, c); auto top = get_id(r - 1, c);
if (valid(top)) if (valid(top))
edges.push_back({id, static_cast<osrm::util::NodeID>(top), 1}); edges.push_back({id, static_cast<NodeID>(top), 1});
} }
if (r + 1 < rows) if (r + 1 < rows)
{ {
auto bottom = get_id(r + 1, c); auto bottom = get_id(r + 1, c);
if (valid(bottom)) if (valid(bottom))
edges.push_back({id, static_cast<osrm::util::NodeID>(bottom), 1}); edges.push_back({id, static_cast<NodeID>(bottom), 1});
} }
} }
} }