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

Cannot insert docstrings for C functions with struct arguments #9

Open
space-jam- opened this issue Jun 16, 2023 · 1 comment
Open
Labels
bug Something isn't working

Comments

@space-jam-
Copy link

If a C function is declared like:

struct point {
    int x;
    int y;
};

int foo(struct point p) {
     return p.x + p.y;
}

ts-docstr-at-point will fail with the error:

user-error: Multiple declarations are invalid, 2.

I think this is triggered by the use of the struct keyword, as a basic or typedef name won't cause this issue.

@jcs090218
Copy link
Member

Ah, yes. You probably right. struct is caught as the declarations...

This might be hard to solve. 🤔

@jcs090218 jcs090218 added the bug Something isn't working label Jun 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants