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

Namespace support #56

Open
Unarelith opened this issue Oct 28, 2021 · 1 comment
Open

Namespace support #56

Unarelith opened this issue Oct 28, 2021 · 1 comment

Comments

@Unarelith
Copy link

Just tried 0.1.7 from pip, on a C++ file that exports C functions, and it works great but...

The thing is, all the C functions are inside a namespace, and they're not recognized at all, unless I remove the namespace.

Is there any way to fix this?

@MatthieuDartiailh
Copy link
Owner

The parser is meant to be a partial C parser (limited to the relevant information in the headers) and has no notion of c++ namespaces. It may be possible to alter the parser to ignore c++ namespaces but I do not have the bandwidth to look into it. Feel free to make a PR if you get something that works for you.

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