-
Notifications
You must be signed in to change notification settings - Fork 717
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
Bindgen should not generate bindings for deleted member functions #2043
Comments
This may be hard to fix because, AFAICT, libclang doesn't currently offer a possibility to check whether a member function is deleted, but I thought I would report it anyway. In the more common case where the |
I think I have a plan for how to tackle this. libclang doesn't have an API for checking if a member function is deleted, but I think we can get a good enough approximation by checking these three criteria:
If these three criteria are true, I think we can relatively safely conclude that the member function is deleted and that we should therefore not generate a binding for it. |
See rust-lang#2043 for details.
Input C/C++ Header
Bindgen Invocation
Actual Results
Expected Results
Bindgen should not generate a binding for
A::foo()
. Attempting to compile and link this binding results in a linker error for an undefined symbol; this should not happen.The text was updated successfully, but these errors were encountered: