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

bug: alignas() / _Alignas() not supported #206

Open
1 of 2 tasks
Mango0x45 opened this issue May 9, 2024 · 0 comments
Open
1 of 2 tasks

bug: alignas() / _Alignas() not supported #206

Mango0x45 opened this issue May 9, 2024 · 0 comments
Labels

Comments

@Mango0x45
Copy link

Did you check existing issues?

  • I have read all the tree-sitter docs if it relates to using the parser
  • I have searched the existing issues of tree-sitter-c

Tree-Sitter CLI Version, if relevant (output of tree-sitter --version)

No response

Describe the bug

The grammar is missing support for the _Alignas() type specifier (or alignas() in C23). Documentation for it is found here: https://en.cppreference.com/w/c/language/_Alignas

Steps To Reproduce/Bad Parse Tree

Expected Behavior/Parse Tree

I expected the alignas() type specifier to not be treated as a function.

Repro

int
main(void)
{
    _Alignas(16)  int a;
    _Alignas(int) int b;
    alignas(16)   int c;
    alignas(int)  int d;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant