This is an archive of the discontinued LLVM Phabricator instance.

[libc++] Updates C++2b to C++23.
ClosedPublic

Authored by Mordante on May 17 2023, 9:10 AM.

Details

Reviewers
philnik
jloser
ldionne
Group Reviewers
Restricted Project
Commits
rG71400505ca04: [libc++] Updates C++2b to C++23.
Summary

During the ISO C++ Committee meeting plenary session the C++23 Standard
has been voted as technical complete.

This updates the reference to c++2b to c++23 and updates the __cplusplus
macro.

Note since we use clang-tidy 16 a small work-around is needed. Clang
knows -std=c++23 but clang-tidy not so for now force the lit compiler
flag to use -std=c++2b instead of -std=c++23.

Diff Detail

Event Timeline

Mordante created this revision.May 17 2023, 9:10 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 17 2023, 9:10 AM
Mordante updated this revision to Diff 523349.May 18 2023, 5:18 AM

CI fixes.

Mordante updated this revision to Diff 523397.May 18 2023, 8:52 AM

Fixes CI.

Mordante published this revision for review.May 18 2023, 11:52 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 18 2023, 11:52 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript
philnik accepted this revision as: philnik.May 18 2023, 11:58 AM
philnik added a subscriber: philnik.

LGTM. Do we want to just reference C++26 internally everywhere?

jloser accepted this revision.May 18 2023, 12:26 PM

LGTM. Do we want to just reference C++26 internally everywhere?

Personally yes, especially since Clang is doing the same. But I will ping people on Discord once I've uploaded a patch.

ldionne accepted this revision.May 23 2023, 8:36 AM
ldionne added a subscriber: ldionne.

This LGTM. I would rebase and land as soon as possible to avoid conflicts!

This revision is now accepted and ready to land.May 23 2023, 8:36 AM
This revision was automatically updated to reflect the committed changes.
libcxx/docs/ReleaseNotes.rst