This is an archive of the discontinued LLVM Phabricator instance.

[libc++] Add [[clang::lifetimebound]] to min/max algorithms
ClosedPublic

Authored by philnik on Jan 26 2023, 1:04 AM.

Diff Detail

Event Timeline

philnik created this revision.Jan 26 2023, 1:04 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 26 2023, 1:04 AM
philnik requested review of this revision.Jan 26 2023, 1:04 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 26 2023, 1:04 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript
philnik retitled this revision from [lic++] Add [[clang::lifetimebound]] to min/max algorithms to [libc++] Add [[clang::lifetimebound]] to min/max algorithms.Jan 26 2023, 2:54 AM
Mordante accepted this revision.Jan 28 2023, 7:16 AM

LGTM modulo one remark. Note the CI failure has already been fixed.

libcxx/include/module.modulemap.in
303

Can you specify what exactly is exported. The * seems quite fragile when refactoring header includes.

This revision is now accepted and ready to land.Jan 28 2023, 7:16 AM
philnik added inline comments.Jan 29 2023, 5:01 AM
libcxx/include/module.modulemap.in
303

I tried that and couldn't find out what exactly the problem is. I'd rather try to fix it in a separate patch, since it doesn't seem super important and might be quite a bit of work.

Mordante added inline comments.Jan 29 2023, 9:28 AM
libcxx/include/module.modulemap.in
303

SGTM.

This revision was landed with ongoing or failed builds.Jan 30 2023, 9:01 AM
This revision was automatically updated to reflect the committed changes.