[libcxx-commits] [PATCH] D144786: [libc++] Fixes operator& hijacking atomic types.
Mark de Wever via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Feb 25 06:44:57 PST 2023
Mordante created this revision.
Herald added a project: All.
Mordante requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.
This uses std::addressof everywherein atomic. This is not strictly
needed for the integral and floating point specializations. They should
not be used by user defined types. But it's easier to fix everything.
Note these changes are made using a WIP clang-tidy plugin.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D144786
Files:
libcxx/include/__atomic/atomic.h
libcxx/include/__atomic/atomic_base.h
libcxx/include/__atomic/atomic_sync.h
libcxx/include/__atomic/cxx_atomic_impl.h
libcxx/test/std/atomics/atomics.types.generic/general.compile.pass.cpp
libcxx/test/std/atomics/atomics.types.generic/pointer.compile.pass.cpp
libcxx/test/support/operator_hijacker.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D144786.500428.patch
Type: text/x-patch
Size: 39613 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20230225/3a14dd2c/attachment-0001.bin>
More information about the libcxx-commits
mailing list