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

Unified Diff: mojo/public/tools/bindings/generators/cpp_templates/struct_data_view_definition.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
« no previous file with comments | « mojo/public/tools/bindings/generators/cpp_templates/struct_data_view_declaration.tmpl ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/tools/bindings/generators/cpp_templates/struct_data_view_definition.tmpl
diff --git a/mojo/public/tools/bindings/generators/cpp_templates/struct_data_view_definition.tmpl b/mojo/public/tools/bindings/generators/cpp_templates/struct_data_view_definition.tmpl
index 1702533907074421631ed1edb2e3e32be99eae81..95311dc124c5f414f55904bff5d952dd4188cade 100644
--- a/mojo/public/tools/bindings/generators/cpp_templates/struct_data_view_definition.tmpl
+++ b/mojo/public/tools/bindings/generators/cpp_templates/struct_data_view_definition.tmpl
@@ -3,7 +3,7 @@
{%- set name = pf.field.name %}
{%- if kind|is_union_kind %}
-void {{struct.name}}DataView::Get{{name|under_to_camel}}DataView(
+inline void {{struct.name}}DataView::Get{{name|under_to_camel}}DataView(
{{kind|cpp_data_view_type}}* output) {
{%- if pf.min_version != 0 %}
auto pointer = data_->header_.version >= {{pf.min_version}}
@@ -15,7 +15,7 @@ void {{struct.name}}DataView::Get{{name|under_to_camel}}DataView(
}
{%- elif kind|is_object_kind %}
-void {{struct.name}}DataView::Get{{name|under_to_camel}}DataView(
+inline void {{struct.name}}DataView::Get{{name|under_to_camel}}DataView(
{{kind|cpp_data_view_type}}* output) {
{%- if pf.min_version != 0 %}
auto pointer = data_->header_.version >= {{pf.min_version}}
« no previous file with comments | « mojo/public/tools/bindings/generators/cpp_templates/struct_data_view_declaration.tmpl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698