This is an archive of the discontinued LLVM Phabricator instance.

[libc] Rework 'cpp:optional' to support move construction
ClosedPublic

Authored by jhuber6 on May 5 2023, 9:45 AM.

Details

Summary

This patch replaces the existing cpp::optional type with a newer
version that has more features. This class is heavily inspired by the
old llvm::Optional class. Currently the limitations of this class is
that we only handle types with trivial constructors or operators.

Diff Detail

Event Timeline

jhuber6 created this revision.May 5 2023, 9:45 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptMay 5 2023, 9:45 AM
jhuber6 requested review of this revision.May 5 2023, 9:45 AM
jhuber6 updated this revision to Diff 519904.

Fix broken header

sivachandra accepted this revision.May 5 2023, 11:10 AM
This revision is now accepted and ready to land.May 5 2023, 11:10 AM
This revision was automatically updated to reflect the committed changes.