@@ -21,6 +21,11 @@ export enum Version {
2121 latest = v7
2222}
2323
24+ export type CStandard = "c89" | "c99" | "c11" | "c17" | "c23" ;
25+ export type GnuCStandard = "gnu89" | "gnu99" | "gnu11" | "gnu17" | "gnu23" ;
26+ export type CppStandard = "c++98" | "c++03" | "c++11" | "c++14" | "c++17" | "c++20" | "c++23" | "c++26" ;
27+ export type GnuCppStandard = "gnu++98" | "gnu++03" | "gnu++11" | "gnu++14" | "gnu++17" | "gnu++20" | "gnu++23" | "gnu++26" ;
28+
2429/**
2530 * An interface to allow VS Code extensions to communicate with the C/C++ extension.
2631 * @see [CppToolsExtension](#CppToolsExtension) for a code example.
@@ -175,8 +180,7 @@ export interface SourceFileConfiguration {
175180 /**
176181 * The C or C++ standard to emulate.
177182 */
178- readonly standard ?: "c89" | "c99" | "c11" | "c17" | "c23" | "c++98" | "c++03" | "c++11" | "c++14" | "c++17" | "c++20" | "c++23" | "c++26" |
179- "gnu89" | "gnu99" | "gnu11" | "gnu17" | "gnu23" | "gnu++98" | "gnu++03" | "gnu++11" | "gnu++14" | "gnu++17" | "gnu++20" | "gnu++23" | "gnu++26" ;
183+ readonly standard ?: CStandard | GnuCStandard | CppStandard | GnuCppStandard ;
180184 /**
181185 * Any files that need to be included before the source file is parsed.
182186 */
@@ -264,8 +268,7 @@ export interface WorkspaceBrowseConfiguration {
264268 * The C or C++ standard to emulate. This field defaults to "c++17" and will only be used if
265269 * [compilerPath](#WorkspaceBrowseConfiguration.compilerPath) is set.
266270 */
267- readonly standard ?: "c89" | "c99" | "c11" | "c17" | "c23" | "c++98" | "c++03" | "c++11" | "c++14" | "c++17" | "c++20" | "c++23" | "c++26" |
268- "gnu89" | "gnu99" | "gnu11" | "gnu17" | "gnu23" | "gnu++98" | "gnu++03" | "gnu++11" | "gnu++14" | "gnu++17" | "gnu++20" | "gnu++23" | "gnu++26" ;
271+ readonly standard ?: CStandard | GnuCStandard | CppStandard | GnuCppStandard ;
269272 /**
270273 * The version of the Windows SDK that should be used. This field defaults to the latest Windows SDK
271274 * installed on the PC and will only be used if [compilerPath](#WorkspaceBrowseConfiguration.compilerPath)
0 commit comments