Skip to content

Commit 6711859

Browse files
Accepting c2x compilers (#10456)
* Add c2x compilers as acceptable arguments * Update config UI with new c stds * Remove c20 * Remove gnu20 * Fix typo * Remove c20 * Remove gnu20 --------- Co-authored-by: Colen Garoutte-Carson <[email protected]>
1 parent 85514f2 commit 6711859

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

Extension/c_cpp_properties.schema.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,12 @@
3636
"c99",
3737
"c11",
3838
"c17",
39+
"c23",
3940
"gnu89",
4041
"gnu99",
4142
"gnu11",
4243
"gnu17",
44+
"gnu23",
4345
"${default}"
4446
]
4547
},

Extension/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,10 +572,12 @@
572572
"c99",
573573
"c11",
574574
"c17",
575+
"c23",
575576
"gnu89",
576577
"gnu99",
577578
"gnu11",
578-
"gnu17"
579+
"gnu17",
580+
"gnu23"
579581
],
580582
"markdownDescription": "%c_cpp.configuration.default.cStandard.markdownDescription%",
581583
"scope": "resource"

Extension/ui/settings.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -581,10 +581,12 @@
581581
<div class="section-text" data-loc-id="c.standard.description">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.</div>
582582
<div>
583583
<select name="inputValue" id="cStandard" class="select-default">
584+
<option value="c23">c23</option>
584585
<option value="c17">c17</option>
585586
<option value="c11">c11</option>
586587
<option value="c99">c99</option>
587588
<option value="c89">c89</option>
589+
<option value="gnu23">gnu23</option>
588590
<option value="gnu17">gnu17</option>
589591
<option value="gnu11">gnu11</option>
590592
<option value="gnu99">gnu99</option>

0 commit comments

Comments
 (0)