-
Notifications
You must be signed in to change notification settings - Fork 77
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
Generated qobject
module has no documentation, triggering #![warn(missing_docs)]
#517
Comments
I think the best option for now is to include a basic documentation in the generated types. As allowing custom docs is probably overkill for now as you state, and making the generated qobject private then means it can't be used for using them in pointers etc. |
Just a side note: mod private { pub struct Item; }
pub fn test() -> private::Item { private::Item } This does however make |
This ensures we don't regress with any missing docs for generated public items, related to KDAB#517
Internally there is a bit of complexity of what is pub and not, as some things need to be placed in the right place for CXX to find them and some for developers to be able to reach. This could be reviewed separately whether it can be improved, but for now I've just added docs in and enabled |
This ensures we don't regress with any missing docs for generated public items, related to KDAB#517
This ensures we don't regress with any missing docs for generated public items, related to KDAB#517
This ensures we don't regress with any missing docs for generated public items, related to KDAB#517
This ensures we don't regress with any missing docs for generated public items, related to KDAB#517
This ensures we don't regress with any missing docs for generated public items, related to KDAB#517
This ensures we don't regress with any missing docs for generated public items, related to KDAB#517
This ensures we don't regress with any missing docs for generated public items, related to KDAB#517
This ensures we don't regress with any missing docs for generated public items, related to KDAB#517
This ensures we don't regress with any missing docs for generated public items, related to KDAB#517
This ensures we don't regress with any missing docs for generated public items, related to KDAB#517
This ensures we don't regress with any missing docs for generated public items, related to KDAB#517
This ensures we don't regress with any missing docs for generated public items, related to #517
The generated
qobject
module has no documentation. In a library with global#![warn(missing_docs)]
lint enabled, this results in a warning per bridge module, and the warning cannot be easily silenced (because we cannot attach attributes to theqobject
module). Currently, the only workaround is to#![allow(missing_docs)]
in the parent module (that is, the module containing the bridge module and therefore the generatedqobject
module), which would silence the warning for too many things.I can think of three possible solutions:
/// Automatically generated QObject types.
or at least#[allow(missing_docs)]
in the generated code;qobject
module (I feel this might be an overkill);qobject
module private, and let the user re-export the types they need.The text was updated successfully, but these errors were encountered: