This is an archive of the discontinued LLVM Phabricator instance.

[libc++] Move C++17 check around optional only in ObjC is_scalar test.
ClosedPublic

Authored by zoecarver on Apr 6 2020, 8:59 AM.

Details

Reviewers
ldionne
Group Reviewers
Restricted Project
Summary

Check the std version around the use of optional in is_scalar Objective-C test instead of checking the whole file.

Diff Detail

Event Timeline

zoecarver created this revision.Apr 6 2020, 8:59 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 6 2020, 8:59 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript
zoecarver marked an inline comment as done.Apr 6 2020, 9:00 AM
zoecarver added inline comments.
libcxx/test/libcxx/type_traits/is_scalar.objc.pass.mm
20

I'm using this because I'm not sure if it will work to include test_macros.h.

ldionne requested changes to this revision.Apr 6 2020, 11:01 AM
ldionne added inline comments.
libcxx/test/libcxx/type_traits/is_scalar.objc.pass.mm
36–37

You can actually remove this altogether, since I had added libcxx/test/libcxx/utilities/optional/block.objc.pass.mm at the time anyway. You should also rebase the patch on top of master.

This revision now requires changes to proceed.Apr 6 2020, 11:01 AM
zoecarver updated this revision to Diff 255413.Apr 6 2020, 11:10 AM
  • Remove std::optional test altogether because it's tested elsewhere
zoecarver updated this revision to Diff 255414.Apr 6 2020, 11:12 AM
  • Merge branch 'master' into fix/objc-is-scalar
Harbormaster completed remote builds in B51995: Diff 255414.
ldionne accepted this revision.Apr 7 2020, 5:28 AM
This revision is now accepted and ready to land.Apr 7 2020, 5:28 AM