-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
-std=c2x support for C++-style attributes in C-code. #7471
Comments
Can you provide a code sample that compiles with C but gives an error with our extension? I'm seeing gcc and clang both fail to compile
error: expected expression |
Oh -- I got it to compile with -std=c2x -- we don't support that std version yet. We can use this issue to track adding that. |
I've filed a bug against our shared VS parser at https://developercommunity.visualstudio.com/t/C-standard-2x-isnt-supported-by-Intelli/1416530 . After they enable that we can add support on our side. |
I hope this lands soon. My project has started adopting these features and causes syntax errors throughout the project (specifically sized enums) |
Bug type: Language Service
Expected behavior
No errors?
inside union
allocator_t
->data
appears as an unknown data type (2nd screenshot)Code sample and logs
c_cpp_properties.json
: on the screenshot belowC/C++: Log Diagnostics
from the VS Code command palette: shows nothingThe text was updated successfully, but these errors were encountered: