Closed HadrienG2 closed 6 months ago
After closer investigation, --raw-line
can be used to inhibit the lint quite easily, so the only remaining question is, should bindgen make it the default.
Even though having it as a default sounds like an attractive proposition, it would require to have an option to opt out from this behavior as bindgen's API is pretty large already.
This also opens the door to have other attributes injected by default and, as a consequence, more options to not inject those attributes.
Yeah I think raw-line is more flexible and already a thing.
C and C++ commonly use
snake_case
type names, so thenon_camel_case_types
default rustc lint generates a lot of noise in bindgen-originated modules. There should at least be an easy way to disable this lint in bindgen's output, and imo it should be turned off by default.