Chromium Code Reviews| Index: tools/json_schema_compiler/h_generator.py |
| diff --git a/tools/json_schema_compiler/h_generator.py b/tools/json_schema_compiler/h_generator.py |
| index 173e549e187a1374a9a0ed62cbf8a5f0d62d2bab..cb9c576dd8802bd67067b1c975fbfa1701c2bec3 100644 |
| --- a/tools/json_schema_compiler/h_generator.py |
| +++ b/tools/json_schema_compiler/h_generator.py |
| @@ -228,6 +228,10 @@ class _Generator(object): |
| .Append('%(classname)s();') |
| .Append('~%(classname)s();') |
| ) |
| + if 'use_movable_types' in type_.namespace.compiler_options: |
|
Devlin
2016/03/18 20:17:40
Note: we could actually generate move ctors/operat
|
| + (c.Append('%(classname)s(%(classname)s&& other);') |
| + .Append('%(classname)s& operator=(%(classname)s&& other);') |
| + ) |
| if type_.origin.from_json: |
| (c.Append() |
| .Comment('Populates a %s object from a base::Value. Returns' |