[llvm-branch-commits] [libcxx] [libc++] Clang-tidy operator& hijacker. (PR #128366)

Denis Mikhailov via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Mar 12 08:17:13 PDT 2025


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


More information about the llvm-branch-commits mailing list