summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <tmpsantos@gmail.com>2020-03-27 18:30:35 +0200
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2020-04-17 13:36:50 +0300
commite688a847a288c1ecee6dbeb85d16bedcce61ecc8 (patch)
treedca36132591d16bb7b8a63d3c4f9b5e73fb10c21
parent2cd06fb0e3f67b83b8520d818dd7a47b4cfadd41 (diff)
downloadqtlocation-mapboxgl-e688a847a288c1ecee6dbeb85d16bedcce61ecc8.tar.gz
[core] Fix readability-redundant-declaration errors in header files
As reported by clang-tidy-8.
-rw-r--r--include/mbgl/util/immutable.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/mbgl/util/immutable.hpp b/include/mbgl/util/immutable.hpp
index 4d251df8d9..bc6a0467ae 100644
--- a/include/mbgl/util/immutable.hpp
+++ b/include/mbgl/util/immutable.hpp
@@ -38,7 +38,9 @@ private:
std::shared_ptr<T> ptr;
template <class S> friend class Immutable;
+ // NOLINTNEXTLINE(readability-redundant-declaration)
template <class S, class... Args> friend Mutable<S> makeMutable(Args&&...);
+ // NOLINTNEXTLINE(readability-redundant-declaration)
template <class S, class U> friend Mutable<S> staticMutableCast(const Mutable<U>&);
};
@@ -103,6 +105,8 @@ private:
std::shared_ptr<const T> ptr;
template <class S> friend class Immutable;
+
+ // NOLINTNEXTLINE(readability-redundant-declaration)
template <class S, class U> friend Immutable<S> staticImmutableCast(const Immutable<U>&);
};