Skip to content

Commit

Permalink
Ignore linitan checks
Browse files Browse the repository at this point in the history
Ignore some lintian checks, performed by clang-tidy.
  • Loading branch information
MichaelKutzner committed Dec 17, 2024
1 parent 735a144 commit 34f5642
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions exe/backend/src/http_server.cc
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ struct http_server::impl {
cb(json_response(req, gj.string()));
}

// NOLINTBEGIN(readability-avoid-return-with-void-value)
void handle_request(web_server::http_req_t const& req,
web_server::http_res_cb_t const& cb) {
std::cout << "[" << req.method_string() << "] " << req.target() << '\n';
Expand Down Expand Up @@ -343,6 +344,7 @@ struct http_server::impl {
}
server_.run();
}
// NOLINTEND(readability-avoid-return-with-void-value)

void stop() { server_.stop(); }

Expand Down
3 changes: 3 additions & 0 deletions src/extract.cc
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ using namespace std::string_view_literals;

namespace osr {

// NOLINTBEGIN(clang-analyzer-optin.core.EnumCastOutOfRange)
struct osm_restriction {
bool valid() const {
return from_ != osm_way_idx_t::invalid() &&
Expand Down Expand Up @@ -525,6 +526,7 @@ void extract(bool const with_platforms,
return buf;
}) &
oneapi::tbb::make_filter<osm_mem::Buffer, void>(
// NOLINTNEXTLINE(cppcoreguidelines-rvalue-reference-param-not-moved)
oneapi::tbb::filter_mode::parallel, [&](osm_mem::Buffer&& buf) {
update_locations(node_idx, buf);
osm::apply(buf, h);
Expand Down Expand Up @@ -580,5 +582,6 @@ void extract(bool const with_platforms,

lookup{w, out, cista::mmap::protection::WRITE}.build_rtree();
}
// NOLINTEND(clang-analyzer-optin.core.EnumCastOutOfRange)

} // namespace osr
2 changes: 2 additions & 0 deletions src/lookup.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

namespace osr {

// NOLINTBEGIN(clang-analyzer-optin.core.EnumCastOutOfRange)
lookup::lookup(ways const& ways,
std::filesystem::path p,
cista::mmap::protection mode)
Expand Down Expand Up @@ -74,5 +75,6 @@ hash_set<node_idx_t> lookup::find_elevators(geo::box const& b) const {
});
return elevators;
}
// NOLINTEND(clang-analyzer-optin.core.EnumCastOutOfRange)

} // namespace osr
2 changes: 2 additions & 0 deletions src/ways.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace osr {

// NOLINTBEGIN(clang-analyzer-optin.core.EnumCastOutOfRange)
ways::ways(std::filesystem::path p, cista::mmap::protection const mode)
: p_{std::move(p)},
mode_{mode},
Expand Down Expand Up @@ -161,5 +162,6 @@ cista::wrapped<ways::routing> ways::routing::read(
void ways::routing::write(std::filesystem::path const& p) const {
cista::write(p / "routing.bin", *this);
}
// NOLINTEND(clang-analyzer-optin.core.EnumCastOutOfRange)

} // namespace osr

0 comments on commit 34f5642

Please sign in to comment.