mojo: typemaps and {generated struct}.Clone() do not go together |
||
Issue description
mojo: typemaps and {generated struct}.Clone() do not go together
If you have a struct w/ a member of a custom type and specify a typemap for that custom type, then the struct's generated Clone() method will fail to be supported if the custom type does not have a corresponding Clone() method.
,
Mar 8 2016
Here's one possible solution: https://codereview.chromium.org/1768373003 It is a bit of a hack as the struct walking code doesn't know about typemaps.
,
Mar 8 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/6de36cc8c2260493d0775c57ef4d591d309d33f1 commit 6de36cc8c2260493d0775c57ef4d591d309d33f1 Author: darin <darin@chromium.org> Date: Tue Mar 08 08:40:08 2016 Treat typemapped kinds as un-cloneable BUG= 592883 Review URL: https://codereview.chromium.org/1768373003 Cr-Commit-Position: refs/heads/master@{#379789} [modify] https://crrev.com/6de36cc8c2260493d0775c57ef4d591d309d33f1/mojo/public/tools/bindings/generators/mojom_cpp_generator.py [modify] https://crrev.com/6de36cc8c2260493d0775c57ef4d591d309d33f1/mojo/public/tools/bindings/pylib/mojom/generate/module.py
,
Mar 8 2016
|
||
►
Sign in to add a comment |
||
Comment 1 by darin@chromium.org
, Mar 8 2016