-
Notifications
You must be signed in to change notification settings - Fork 694
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
Stack overflow when computing item name including <filesystem> on windows #2929
Comments
This can be reduced to this:
|
This is something to do with |
@acovaci you should allowlist the types and functions you need. That should prevent this from happening. |
@Kriskras99 I'm having the same issue. Also tried it in a tiny test project, as soon as you |
@jasper-bosch that's because if you don't specify an allowlist, bindgen will generate bindings for everything that is included. |
@Kriskras99 Sorry, forgot to mention it before. I also tried using |
@jasper-bosch then it's likely (one of) the definition(s) causing issues. See also the bindgen guide on C++: |
Thanks @Kriskras99! Marked all of |
Would be good to get a repro for that regardless since it seems we're failing to deal with something complex inside the windows header. |
I know you're asking for a minimal header, but I don't have enough C++ experience to be able to understand exactly what's going on. If anyone wants to pair up on this to come up with an example, I'm more than happy to do so. Instead, I'll link to the exact header file I'm using
Input C/C++ Header
https://github.com/AurieFramework/YYToolkit/blob/stable/ExamplePlugin/include/YYToolkit/Shared.hpp
Bindgen Invocation
Actual Results
Expected Results
Well, if I understand the bindgen logic, the fact it went down so many
level
s is not expected behaviour. A more useful error message, maybe pointing out to what might be going on, what might be causing this?The text was updated successfully, but these errors were encountered: