This is an archive of the discontinued LLVM Phabricator instance.

[libc++] Make memory_resource allocate [[nodiscard]]
AbandonedPublic

Authored by J-Camilleri on Aug 16 2022, 3:29 AM.

Details

Reviewers
ldionne
philnik
Group Reviewers
Restricted Project
Summary

P0600: Implement the bit for [mem.res.class]

Diff Detail

Event Timeline

J-Camilleri created this revision.Aug 16 2022, 3:29 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 16 2022, 3:29 AM
J-Camilleri requested review of this revision.Aug 16 2022, 3:29 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 16 2022, 3:29 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript
philnik requested changes to this revision.Aug 16 2022, 4:03 AM
philnik added a subscriber: philnik.

This isn't implementing P0600. P0600 is against N4700, which was the C++ working draft at some point. experimental/memory_resource implements LFTSv2, where memory_resource::allocate isn't [[nodiscard]].

This revision now requires changes to proceed.Aug 16 2022, 4:03 AM
J-Camilleri abandoned this revision.Aug 16 2022, 7:52 AM

This isn't implementing P0600. P0600 is against N4700, which was the C++ working draft at some point. experimental/memory_resource implements LFTSv2, where memory_resource::allocate isn't [[nodiscard]].

Thanks for the quick reply and clarification. It is my first time trying to contribute here and I did not know the about the distinction.

Am I correct in thinking that selecting 'Abandon Revision' as an action is enough to decline this?

This isn't implementing P0600. P0600 is against N4700, which was the C++ working draft at some point. experimental/memory_resource implements LFTSv2, where memory_resource::allocate isn't [[nodiscard]].

Thanks for the quick reply and clarification. It is my first time trying to contribute here and I did not know the about the distinction.

No worries. The difference is indeed quite subtle.

Am I correct in thinking that selecting 'Abandon Revision' as an action is enough to decline this?

Yes, that's enough.