This is an archive of the discontinued LLVM Phabricator instance.

[libc++] Extend is_always_bitcastable for pointers and enums
AbandonedPublic

Authored by philnik on Feb 13 2023, 4:17 AM.

Details

Reviewers
ldionne
Mordante
var-const
Group Reviewers
Restricted Project

Diff Detail

Event Timeline

philnik created this revision.Feb 13 2023, 4:17 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 13 2023, 4:17 AM
philnik requested review of this revision.Feb 13 2023, 4:17 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 13 2023, 4:17 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript
libcxx/include/__type_traits/is_always_bitcastable.h
40–42

WDYT?

73
87
88–90

And then remove the line you added below.

libcxx/test/libcxx/type_traits/is_always_bitcastable.compile.pass.cpp
61

Can you please also add tests for copy and move that use these types? This is a really fundamental part of the library so we want to make sure our tests in that area are bomb proof.

philnik abandoned this revision.Sep 21 2023, 1:55 AM
philnik marked 4 inline comments as done.