-
Notifications
You must be signed in to change notification settings - Fork 706
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 generates a static mut where a const is expected #1316
Comments
Which versión of libclang is this using? I'd expect clang 4.0+ to generate the expected results |
wontfix per discussion on IRC |
Any detailed explanation for the won't fix? Was it the use of a wrong |
Yes. From my IRC logs, Alex was asked, "which libclang version are you using? Clang <= 3.9 doesn't offer APIs to resolve the actual values of constants, so we fall back to the following most likely thing to work which isn't really that great," to which he replied 3.8 and said using a newer version from https://apt.llvm.org fixed the bug. (If you're on Debian/Ubuntu, apt.llvm.org is a reasonable place to get things and is run by the same folks who package LLVM in Debian.) |
Input C/C++ Header
Bindgen Invocation
Actual Results
Expected Results
I expected
BINDING_GFP_KERNEL
to be generated aspub const BINDING_GFP_KERNEL = ...
The text was updated successfully, but these errors were encountered: