aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/charptr-cast.hh
diff options
context:
space:
mode:
authorJade Lovelace <lix@jade.fyi>2024-08-04 22:03:35 -0700
committerJade Lovelace <lix@jade.fyi>2024-08-08 14:53:17 -0700
commita85c4ce535c940bd2f48c34ab823fb3a8f5be0cc (patch)
treeb1a428e5d41a3c9bd208f30bd00b99ebf0030967 /src/libutil/charptr-cast.hh
parentc1291fd102ed88ba8e1df63e5b2ae6fa94c73188 (diff)
tree-wide: automated migration to charptr_cast
The lint did it :3 Change-Id: I2d9f276b01ebbf14101de4257ea13e44ff6fe0a0
Diffstat (limited to 'src/libutil/charptr-cast.hh')
-rw-r--r--src/libutil/charptr-cast.hh1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libutil/charptr-cast.hh b/src/libutil/charptr-cast.hh
index 990f2ec55..ec53d8924 100644
--- a/src/libutil/charptr-cast.hh
+++ b/src/libutil/charptr-cast.hh
@@ -134,6 +134,7 @@ template<typename To, typename From>
requires charptr_cast_detail::IsCharCastable<From, To>
inline To charptr_cast(From p)
{
+ // NOLINTNEXTLINE(lix-charptrcast): stop the linter ever getting too clever and causing funny recursion
return reinterpret_cast<To>(p);
}