How should we define C++ specifiers #257
Replies: 1 comment
-
As list items |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Problem
As we generate C++ methods we need to sometimes add C++ specifiers to them (eg override, final, virtual etc).
How should we specify this in the Rust attribute ? And which should we support ?
Specifiers
override
virtual
final
It appears that virtual, override, final cannot be combined ? But would there be other specifiers we would want to combine ? As if there is only
Could also have
explicit
(only needed for constructors?)friend
(more complicated if it has the signature as well)inline
(can our Rust methods even be inline?)Attribute
#[qinvokable(cxx_specifier = "override")]
#[qinvokable(override)]
#[qinvokable(override, return_cxx_type = "QColor")]
Beta Was this translation helpful? Give feedback.
All reactions