-
Notifications
You must be signed in to change notification settings - Fork 150
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
More verbose "Log Exclusions" Option? #532
Comments
Bumping this again as I'm trying to generate for Box2D and getting no good information on why functions are being skipped:
the rsp file:
|
There's not really much additional that can be logged here. The next best thing would be to debug into the code and view the actual AST produced by Clang. My general recommendation is, due to the way that Clang itself handles files, you should try to make this as "simple" as possible and avoid relative paths or the like. In the case of TerraFX.Interop.Windows, for example, you'll note that there is a folder per header that needs to be processed: https://github.com/terrafx/terrafx.interop.windows/tree/main/generation/DirectX/d3d12 Within each folder is then 3 files:
I think have the shared settings and shared import header as the only "relative" files, which helps ensure Clang produces consistent paths and traversal diagnostics. -- Other setups can lead to weird paths that may not match the expected relative path, and which therefore won't match the configuration passed in even if you attempt to normalize them. |
I'm having a hell of a time trying to generate bindings for https://github.com/memononen/fontstash, and all more normal ways of flipping defines and such aren't working. It could very well be my own cause of define stuff but with a mostly normal config nothing is being generated. However even with log-exclusions set I'm not seeing any information about functions that were visited and why they were or weren't emitted to the bindgen. Here's my rsp:
I get unused function warnings on stb_truetype (included from fontstash.h) but nothing from fontstash.h, even though nothing is emitted from fontash.h. Any indication from ClangSharp as to why would be great.
The text was updated successfully, but these errors were encountered: