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

Side by Side Diff: mojo/public/tools/bindings/generators/cpp_templates/module.cc.tmpl

Issue 1550733002: Convert Pass()→std::move() in generated Mojo bindings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 unified diff | Download patch
« no previous file with comments | « no previous file | mojo/public/tools/bindings/generators/cpp_templates/struct_macros.tmpl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 {%- if variant -%} 5 {%- if variant -%}
6 {%- set variant_path = "%s-%s"|format(module.path, variant) -%} 6 {%- set variant_path = "%s-%s"|format(module.path, variant) -%}
7 {%- else -%} 7 {%- else -%}
8 {%- set variant_path = module.path -%} 8 {%- set variant_path = module.path -%}
9 {%- endif %} 9 {%- endif %}
10 10
11 #if defined(__clang__) 11 #if defined(__clang__)
12 #pragma clang diagnostic push 12 #pragma clang diagnostic push
13 #pragma clang diagnostic ignored "-Wunused-private-field" 13 #pragma clang diagnostic ignored "-Wunused-private-field"
14 #elif defined(_MSC_VER) 14 #elif defined(_MSC_VER)
15 #pragma warning(push) 15 #pragma warning(push)
16 #pragma warning(disable:4056) 16 #pragma warning(disable:4056)
17 #pragma warning(disable:4065) 17 #pragma warning(disable:4065)
18 #pragma warning(disable:4756) 18 #pragma warning(disable:4756)
19 #endif 19 #endif
20 20
21 #include "{{variant_path}}.h" 21 #include "{{variant_path}}.h"
22 22
23 #include <math.h> 23 #include <math.h>
24 #include <stdint.h> 24 #include <stdint.h>
25 #include <utility>
25 26
26 #include "base/trace_event/trace_event.h" 27 #include "base/trace_event/trace_event.h"
27 #include "mojo/public/cpp/bindings/lib/array_serialization.h" 28 #include "mojo/public/cpp/bindings/lib/array_serialization.h"
28 #include "mojo/public/cpp/bindings/lib/bindings_serialization.h" 29 #include "mojo/public/cpp/bindings/lib/bindings_serialization.h"
29 #include "mojo/public/cpp/bindings/lib/bounds_checker.h" 30 #include "mojo/public/cpp/bindings/lib/bounds_checker.h"
30 #include "mojo/public/cpp/bindings/lib/map_data_internal.h" 31 #include "mojo/public/cpp/bindings/lib/map_data_internal.h"
31 #include "mojo/public/cpp/bindings/lib/map_serialization.h" 32 #include "mojo/public/cpp/bindings/lib/map_serialization.h"
32 #include "mojo/public/cpp/bindings/lib/message_builder.h" 33 #include "mojo/public/cpp/bindings/lib/message_builder.h"
33 #include "mojo/public/cpp/bindings/lib/native_serialization.h" 34 #include "mojo/public/cpp/bindings/lib/native_serialization.h"
34 #include "mojo/public/cpp/bindings/lib/string_serialization.h" 35 #include "mojo/public/cpp/bindings/lib/string_serialization.h"
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 {%- endif %} 138 {%- endif %}
138 {%- for namespace in namespaces_as_array|reverse %} 139 {%- for namespace in namespaces_as_array|reverse %}
139 } // namespace {{namespace}} 140 } // namespace {{namespace}}
140 {%- endfor %} 141 {%- endfor %}
141 142
142 #if defined(__clang__) 143 #if defined(__clang__)
143 #pragma clang diagnostic pop 144 #pragma clang diagnostic pop
144 #elif defined(_MSC_VER) 145 #elif defined(_MSC_VER)
145 #pragma warning(pop) 146 #pragma warning(pop)
146 #endif 147 #endif
OLDNEW
« no previous file with comments | « no previous file | mojo/public/tools/bindings/generators/cpp_templates/struct_macros.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698