This is an archive of the discontinued LLVM Phabricator instance.

[clang-cl] Set _MSVC_LANG to 202002L with /std:c++20
ClosedPublic

Authored by thakis on Dec 1 2021, 5:47 AM.

Details

Summary

MSVC says this should be 202002L for /std:c++20, and of VS16.11
that's indeed the case (older versions warn that they don't
understand /std:c++20, and then cl.exe defaults to C++14 and
sets _MSVC_LANG to 201402 accordingly).

Diff Detail

Event Timeline

thakis requested review of this revision.Dec 1 2021, 5:47 AM
thakis created this revision.
hans accepted this revision.Dec 1 2021, 5:50 AM

lgtm

This revision is now accepted and ready to land.Dec 1 2021, 5:50 AM
This revision was landed with ongoing or failed builds.Dec 1 2021, 5:55 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptDec 1 2021, 5:55 AM