From e688a847a288c1ecee6dbeb85d16bedcce61ecc8 Mon Sep 17 00:00:00 2001 From: "Thiago Marcos P. Santos" Date: Fri, 27 Mar 2020 18:30:35 +0200 Subject: [core] Fix readability-redundant-declaration errors in header files As reported by clang-tidy-8. --- include/mbgl/util/immutable.hpp | 4 ++++ 1 file changed, 4 insertions(+) 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 ptr; template friend class Immutable; + // NOLINTNEXTLINE(readability-redundant-declaration) template friend Mutable makeMutable(Args&&...); + // NOLINTNEXTLINE(readability-redundant-declaration) template friend Mutable staticMutableCast(const Mutable&); }; @@ -103,6 +105,8 @@ private: std::shared_ptr ptr; template friend class Immutable; + + // NOLINTNEXTLINE(readability-redundant-declaration) template friend Immutable staticImmutableCast(const Immutable&); }; -- cgit v1.2.1