Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1524)

Unified Diff: mojo/public/tools/bindings/generate_type_mappings.py

Issue 2689513003: Add field-initializing constructors to generated mojo structs. (Closed)
Patch Set: rebase Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: mojo/public/tools/bindings/generate_type_mappings.py
diff --git a/mojo/public/tools/bindings/generate_type_mappings.py b/mojo/public/tools/bindings/generate_type_mappings.py
index 16e3035dc98081d54367b97918d3f413e21e1ed8..824f8045ab6db259a286a9ac3fa04abb67bfd81d 100755
--- a/mojo/public/tools/bindings/generate_type_mappings.py
+++ b/mojo/public/tools/bindings/generate_type_mappings.py
@@ -107,6 +107,7 @@ def ParseTypemap(typemap):
result[mojom_type] = {
'typename': native_type,
+ 'non_copyable_non_movable': 'non_copyable_non_movable' in attributes,
'move_only': 'move_only' in attributes,
'copyable_pass_by_value': 'copyable_pass_by_value' in attributes,
'nullable_is_same_type': 'nullable_is_same_type' in attributes,

Powered by Google App Engine
This is Rietveld 408576698