vscode-cmake-tools icon indicating copy to clipboard operation
vscode-cmake-tools copied to clipboard

Update for c++26 args.

Open sean-mcmanus opened this issue 6 months ago • 1 comments

This change addresses item https://github.com/microsoft/vscode-cmake-tools/issues/4464

The following changes are proposed:

  • Add c++26 and gnu++26 standard versions
  • Bump /std:c++latest to C++26 and use /std:c++23preview for C++23.
  • Reassign c++2c and gnu++2c to C++ 26

Other Notes/Information

Based on PR https://github.com/microsoft/vscode-cmake-tools/pull/2476 .

sean-mcmanus avatar Jun 14 '25 02:06 sean-mcmanus

I can't test this until https://github.com/microsoft/vscode-cpptools-api/pull/64 is checked in.

sean-mcmanus avatar Jun 14 '25 02:06 sean-mcmanus

Oh, it looks like the current version of cmake tools after v6 doesn't check the standard flags?

sean-mcmanus avatar Jun 17 '25 00:06 sean-mcmanus

I need to test this still...

UPDATE: It doesn't work. c++23 projects are still using c++latest for some reason -- looks like it's building with c++latest instead of c++23preview. CMake itself may need to be updated. Investigating...

It appears CMake itself isn't supporting c++23preview.

sean-mcmanus avatar Jun 17 '25 01:06 sean-mcmanus