Open Victorious3 opened 1 year ago
A solution is extensions to the Clang bindings that do not exist in the current version.
See Also:
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.
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.
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.
This seems to be missing from the API, my workaround is looking at the tokens but it's not very elegant.