Skip to content

Commit 724f676

Browse files
committed
Suppress various false-positive clang-tidy warnings
1 parent 8ba8612 commit 724f676

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

src/expire-tiles.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,8 @@ void expire_tiles::from_geometry(geom::multipolygon_t const &geom,
135135
}
136136
}
137137

138+
// False positive: Apparently clang-tidy can not see through the visit()
139+
// NOLINTNEXTLINE(readability-convert-member-functions-to-static)
138140
void expire_tiles::from_geometry(geom::geometry_t const &geom,
139141
expire_config_t const &expire_config)
140142
{

src/geom-functions.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,8 @@ class split_visitor
437437
void operator()(T) const
438438
{}
439439

440+
// false positive https://github.com/llvm/llvm-project/issues/74738
441+
// NOLINTNEXTLINE(cppcoreguidelines-rvalue-reference-param-not-moved)
440442
void operator()(geom::collection_t &&geom) const
441443
{
442444
for (auto &&sgeom : geom) {
@@ -445,6 +447,8 @@ class split_visitor
445447
}
446448

447449
template <typename T>
450+
// false positive https://github.com/llvm/llvm-project/issues/74738
451+
// NOLINTNEXTLINE(cppcoreguidelines-rvalue-reference-param-not-moved)
448452
void operator()(geom::multigeometry_t<T> &&geom) const
449453
{
450454
for (auto &&sgeom : geom) {

src/thread-pool.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ class thread_pool_t
9595
* of the task can be queried.
9696
*/
9797
template <typename TFunction>
98+
// NOLINTNEXTLINE(cppcoreguidelines-missing-std-forward) false positive
9899
std::future<std::chrono::microseconds> submit(TFunction &&func)
99100
{
100101
std::packaged_task<std::chrono::microseconds()> task{

0 commit comments

Comments
 (0)