This is an archive of the discontinued LLVM Phabricator instance.

[clang] Adds the -std=c++2c compiler option.
AbandonedPublicDraft

Authored by Mordante on May 4 2023, 10:35 AM.

Details

Summary

This is a preparation of the next version of the ISO C++ Standard.
WG21 will start working on C++26 at their next meeting in June. This
prepares Clang to implement features after they have been voted in. It
also allows other projects like libc++ to prepare their code before the
next meeting.

Diff Detail

Event Timeline

Mordante created this revision.May 4 2023, 10:35 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 4 2023, 10:35 AM
h-vetinari added inline comments.
clang/lib/Frontend/InitPreprocessor.cpp
441–443

This needs to go on line 457ff to C++, not C

Mordante updated this revision to Diff 521662.May 12 2023, 8:43 AM

Rebased, updated and addresses review comments.

Mordante marked an inline comment as done.May 12 2023, 9:07 AM
Mordante added inline comments.
clang/lib/Frontend/InitPreprocessor.cpp
441–443

Good catch, I fixed it.

Mordante abandoned this revision.May 12 2023, 9:33 AM
Mordante marked an inline comment as done.

This patch has accidentally been duplicated in D150450. That version has a few more changes and @erichkeane has integrated the missing clang-cl part.

Herald added a project: Restricted Project. · View Herald TranscriptMay 12 2023, 9:33 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript