DescriptionGenerate a templated Clone method for all mojo structs.
Previously, Clone methods were only generated for mojo structs where all
fields were cloneable. However, for typemapped types, the bindings
generator is not aware of whether the native type is copyable and so it
treated all typemapped types as not cloneable.
This changes the Clone method to be templated so it is only compiled if
used so all mojo structs can contain a Clone method that will be usable
only if all fields are cloneable.
Committed: https://crrev.com/fb981f58c60cd22364da2f8f5b4171f45edbe1fb
Cr-Commit-Position: refs/heads/master@{#396608}
Patch Set 1 : #
Total comments: 4
Patch Set 2 : #
Dependent Patchsets: Messages
Total messages: 28 (21 generated)
|