diff options
author | jade <lix@jade.fyi> | 2024-08-08 23:09:30 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@localhost> | 2024-08-08 23:09:30 +0000 |
commit | 9682ab4f3859ca60b0b4525452b27297e31cb751 (patch) | |
tree | 140cf7817556db65c80693f8b89a76c722b6d726 /src/libutil/charptr-cast.hh | |
parent | 757041c3e74787c755b3de826078968119f706d6 (diff) | |
parent | a5f0954c290157875b4dfb79edcf651f55742dc2 (diff) |
Merge changes I6358a393,I2d9f276b,Idd096dc9 into main
* changes:
clang-tidy: write a lint for charptr_cast
tree-wide: automated migration to charptr_cast
clang-tidy: enforce the new rules
Diffstat (limited to 'src/libutil/charptr-cast.hh')
-rw-r--r-- | src/libutil/charptr-cast.hh | 1 |
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); } |