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

Querying function paramter lists fails #93

Open
schirrmacher opened this issue Feb 21, 2022 · 3 comments
Open

Querying function paramter lists fails #93

schirrmacher opened this issue Feb 21, 2022 · 3 comments

Comments

@schirrmacher
Copy link

When querying for function parameter lists, I had the following issue:

static inline int some_function(struct slab *slab)
{
}

void __init some_other_function(void)
{
}

In this example only (struct slab *slab) is matched. I think the parser has problems with __init.

Is this intended behavior? Can I somehow extend the parser?

@maxbrunsfeld
Copy link
Contributor

What is the query that you're using?

@schirrmacher
Copy link
Author

schirrmacher commented Feb 23, 2022

I applied (function_definition _) @function and (function_declarator (parameter_list) @parameters)

@schirrmacher
Copy link
Author

Screenshot 2022-02-23 at 16 58 21

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