Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[question] 希望可以添加C23标准支持 #391

Open
summerBreeze03 opened this issue Dec 2, 2024 · 1 comment
Open

[question] 希望可以添加C23标准支持 #391

summerBreeze03 opened this issue Dec 2, 2024 · 1 comment

Comments

@summerBreeze03
Copy link

What you want to do
GCC编译器对C23标准的支持已经相当完整,C23的部分新特性也比较有用,希望可以添加支持。

Describe the problem
gcc编译器配置里面,C语言版本最新只有C17。如果通过手动添加 -std=c2x 编译选项的话,智能提示无法覆盖到 bool nullptr 等关键字。

Expected behavior
添加C23支持

@github0null
Copy link
Owner

github0null commented Dec 6, 2024

@summerBreeze03

您好

自定义的参数会被传递给 C/C++ 插件的,后面的参数会覆盖前面的

image

我这边 C/C++ 插件能够识别到

image

再改完std之后建议重启工作区,以便C/C++插件能够清除之前的配置


至于高亮是否能够生效,得看 C/C++ 插件是否支持这个

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants