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

Unified Diff: mojo/public/tools/bindings/generators/cpp_templates/struct_data_view_declaration.tmpl

Issue 2215323004: Mojo C++ bindings: inline Get*DataView() methods. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@85_6_transform
Patch Set: Created 4 years, 4 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/generators/cpp_templates/struct_data_view_declaration.tmpl
diff --git a/mojo/public/tools/bindings/generators/cpp_templates/struct_data_view_declaration.tmpl b/mojo/public/tools/bindings/generators/cpp_templates/struct_data_view_declaration.tmpl
index 575a331769a8c2078b2490b93b99b9023505d602..4a4948cdbb60ff35f77b8813f16252fd91c60a94 100644
--- a/mojo/public/tools/bindings/generators/cpp_templates/struct_data_view_declaration.tmpl
+++ b/mojo/public/tools/bindings/generators/cpp_templates/struct_data_view_declaration.tmpl
@@ -17,7 +17,7 @@ class {{struct.name}}DataView {
{%- set kind = pf.field.kind %}
{%- set name = pf.field.name %}
{%- if kind|is_union_kind %}
- void Get{{name|under_to_camel}}DataView(
+ inline void Get{{name|under_to_camel}}DataView(
{{kind|cpp_data_view_type}}* output);
bool Read{{name|under_to_camel}}({{kind|cpp_wrapper_type}}* output) {
@@ -32,7 +32,7 @@ class {{struct.name}}DataView {
}
{%- elif kind|is_object_kind %}
- void Get{{name|under_to_camel}}DataView(
+ inline void Get{{name|under_to_camel}}DataView(
{{kind|cpp_data_view_type}}* output);
template <typename UserType>

Powered by Google App Engine
This is Rietveld 408576698