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

Check if a function is inline #51

Open
Victorious3 opened this issue May 11, 2023 · 4 comments
Open

Check if a function is inline #51

Victorious3 opened this issue May 11, 2023 · 4 comments
Labels
question Further information is requested

Comments

@Victorious3
Copy link

This seems to be missing from the API, my workaround is looking at the tokens but it's not very elegant.

@Zeratul-Aiur
Copy link

Zeratul-Aiur commented May 16, 2023

A solution is extensions to the Clang bindings that do not exist in the current version.

Reference

See Also:

@sighingnow sighingnow added the question Further information is requested label Jul 15, 2023
@sighingnow
Copy link
Owner

clang binding is only used for parsing. Can you describe your question in more detail? e.g., using some examples to show what you want to archive.

@Victorious3
Copy link
Author

What I was trying to do was creating bindings for C for my custom programming language. As (static) inline functions aren't in the shared library, I need to filter them out somehow.

@JhnW
Copy link

JhnW commented Aug 31, 2023

If nothing has been added to the C bindings for liblacng, the best search for inline functions is to iterate over function tokens.
Or you can just use devan (I hope next time the author will forgive me for the brazen publicity). I use libclang as a backend wrapping this type of cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants