Description
VSCode intellisense is not set to C23 standard based upon Makefile flags. C23 syntax works fine when the MS C/C++ plugin is manually set to C23 via settings dialog.
Makefile tools debug indicates the tool does not understand -std=23 compiler flag. Value of -std=C17 and below work as expected.
Error: Unknown C standard control flag: c23
Preprocessing: "xxx/dryrun.log"
Preprocess elapsed time: 0
Parsing for IntelliSense.
Updating the CppTools IntelliSense Configuration Provider.
Parsing dry-run output for CppTools Custom Configuration Provider.
Analyzing line: gmake: Entering directory '/xxx'
MAKE -C: entering directory /xxx
Found compiler command: /xxx/llvm_20.1.0/bin/clang -std=c23 -I./include -target x86_64-unknown-windows -ffreestanding -nostdlib -nostdlibinc -fno-stack-protector -mgeneral-regs-only -Wall -Wextra -Wpedantic -c xxx.c -o xxx.o
Unknown C standard control flag: c23
Sending configuration for file xxx.c -----------------------------------
Defines:
Includes: /xxx/include
Force Includes:
Standard: undefined
IntelliSense Mode: clang-arm
Compiler Path: /xxx/llvm_20.1.0/bin/clang
Compiler Arguments: -target;x86_64-unknown-windows;-ffreestanding;-nostdlib;-nostdlibinc;-fno-stack-protector;-mgeneral-regs-only;-Wall;-Wextra;-Wpedantic;-c;xxx.c;-o;xxx.o
Identifier
ms-vscode.makefile-tools
Version
0.12.17
Last Updated
2025-02-25, 15:31:07