denzor200 wrote: This check should be in regular Clang Tidy, using of `std::addressof` actual not only for libbcpp, any user-writted code might follow the guidline to use `std::addressof` instead of `operator&` for a generic type. For example, the Boost library: https://github.com/boostorg/pfr/blob/f09e6aeae9d050897fff72b93d5f5e866cc5e11a/include/boost/pfr/detail/core_name20_static.hpp#L196
Please, look at the issue about it: https://github.com/llvm/llvm-project/issues/121172 https://github.com/llvm/llvm-project/pull/128366 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits