[clang] [clang-cl]: Add /std:c++23preview and update _MSVC_LANG for C++23 (PR #112378)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 15 09:01:37 PDT 2024
================
@@ -215,8 +215,7 @@ static void addVisualCDefines(const LangOptions &Opts, MacroBuilder &Builder) {
if (Opts.isCompatibleWithMSVC(LangOptions::MSVC2015)) {
if (Opts.CPlusPlus23)
- // TODO update to the proper value.
- Builder.defineMacro("_MSVC_LANG", "202004L");
+ Builder.defineMacro("_MSVC_LANG", "202302L");
----------------
cor3ntin wrote:
STL mention setting _MSVC_LANG to 202600 in C++26, we should probably follow suite
https://github.com/llvm/llvm-project/pull/112378
More information about the cfe-commits
mailing list