From 1ad4232418aeb02f05c71ca8f9ba4aa3a957d0e4 Mon Sep 17 00:00:00 2001 From: Sean McManus Date: Tue, 13 May 2025 15:31:20 -0700 Subject: [PATCH 1/2] Add c++26. --- Extension/c_cpp_properties.schema.json | 2 ++ Extension/package.json | 6 ++++-- Extension/src/LanguageServer/lmTool.ts | 1 + Extension/ui/settings.html | 2 ++ 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Extension/c_cpp_properties.schema.json b/Extension/c_cpp_properties.schema.json index b3ac9a6d4..6e69667e7 100644 --- a/Extension/c_cpp_properties.schema.json +++ b/Extension/c_cpp_properties.schema.json @@ -59,6 +59,7 @@ "c++17", "c++20", "c++23", + "c++26", "gnu++98", "gnu++03", "gnu++11", @@ -66,6 +67,7 @@ "gnu++17", "gnu++20", "gnu++23", + "gnu++26", "${default}" ] }, diff --git a/Extension/package.json b/Extension/package.json index 91b36e5d0..c0c36ec67 100644 --- a/Extension/package.json +++ b/Extension/package.json @@ -821,13 +821,15 @@ "c++17", "c++20", "c++23", + "c++26", "gnu++98", "gnu++03", "gnu++11", "gnu++14", "gnu++17", "gnu++20", - "gnu++23" + "gnu++23", + "gnu++26" ], "markdownDescription": "%c_cpp.configuration.default.cppStandard.markdownDescription%", "scope": "resource" @@ -6651,4 +6653,4 @@ "postcss": "^8.4.31", "gulp-typescript/**/glob-parent": "^5.1.2" } -} +} \ No newline at end of file diff --git a/Extension/src/LanguageServer/lmTool.ts b/Extension/src/LanguageServer/lmTool.ts index 1802034e1..8cc7cd3bb 100644 --- a/Extension/src/LanguageServer/lmTool.ts +++ b/Extension/src/LanguageServer/lmTool.ts @@ -38,6 +38,7 @@ const knownValues: { [Property in keyof ChatContextResult]?: { [id: string]: str 'c++17': 'C++17', 'c++20': 'C++20', 'c++23': 'C++23', + 'c++26': 'C++26', 'c89': "C89", 'c99': "C99", 'c11': "C11", diff --git a/Extension/ui/settings.html b/Extension/ui/settings.html index 53029ed70..001feecc6 100644 --- a/Extension/ui/settings.html +++ b/Extension/ui/settings.html @@ -600,6 +600,7 @@
The version of the C++ language standard to use for IntelliSense. Note: GNU standards are only used to query the set compiler to get GNU defines, and IntelliSense will emulate the equivalent C++ standard version.