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

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

Issue 1770493002: Remove MOJO_STATIC_CONST_MEMBER_DEFINITION. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 9 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 | « mojo/public/tools/bindings/generators/cpp_templates/interface_definition.tmpl ('k') | no next file » | 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 defined(__clang__) 5 #if defined(__clang__)
6 #pragma clang diagnostic push 6 #pragma clang diagnostic push
7 #pragma clang diagnostic ignored "-Wunused-private-field" 7 #pragma clang diagnostic ignored "-Wunused-private-field"
8 #elif defined(_MSC_VER) 8 #elif defined(_MSC_VER)
9 #pragma warning(push) 9 #pragma warning(push)
10 #pragma warning(disable:4056) 10 #pragma warning(disable:4056)
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 {%- from "enum_macros.tmpl" import global_enum_operators_def -%} 72 {%- from "enum_macros.tmpl" import global_enum_operators_def -%}
73 {%- for enum in enums -%} 73 {%- for enum in enums -%}
74 {{is_valid_enum_def(enum, class_name='')}} 74 {{is_valid_enum_def(enum, class_name='')}}
75 {{global_enum_operators_def(enum, class_name='')}} 75 {{global_enum_operators_def(enum, class_name='')}}
76 {%- endfor %} 76 {%- endfor %}
77 77
78 {#--- Struct Constants #} 78 {#--- Struct Constants #}
79 {%- for struct in structs %} 79 {%- for struct in structs %}
80 {%- for constant in struct.constants %} 80 {%- for constant in struct.constants %}
81 {%- if constant.kind|is_integral_kind %} 81 {%- if constant.kind|is_integral_kind %}
82 MOJO_STATIC_CONST_MEMBER_DEFINITION const {{constant.kind|cpp_pod_type}} {{struc t.name}}::{{constant.name}}; 82 const {{constant.kind|cpp_pod_type}} {{struct.name}}::{{constant.name}};
83 {%- else %} 83 {%- else %}
84 MOJO_STATIC_CONST_MEMBER_DEFINITION const {{constant.kind|cpp_pod_type}} {{struc t.name}}::{{constant.name}} = {{constant|constant_value}}; 84 const {{constant.kind|cpp_pod_type}} {{struct.name}}::{{constant.name}} = {{cons tant|constant_value}};
85 {%- endif %} 85 {%- endif %}
86 {%- endfor %} 86 {%- endfor %}
87 {%- endfor %} 87 {%- endfor %}
88 88
89 {#--- Struct builder definitions #} 89 {#--- Struct builder definitions #}
90 {%- for struct in structs %} 90 {%- for struct in structs %}
91 {%- include "wrapper_class_definition.tmpl" %} 91 {%- include "wrapper_class_definition.tmpl" %}
92 {%- endfor %} 92 {%- endfor %}
93 93
94 {#--- Union builder definitions #} 94 {#--- Union builder definitions #}
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 127
128 {%- for namespace in namespaces_as_array|reverse %} 128 {%- for namespace in namespaces_as_array|reverse %}
129 } // namespace {{namespace}} 129 } // namespace {{namespace}}
130 {%- endfor %} 130 {%- endfor %}
131 131
132 #if defined(__clang__) 132 #if defined(__clang__)
133 #pragma clang diagnostic pop 133 #pragma clang diagnostic pop
134 #elif defined(_MSC_VER) 134 #elif defined(_MSC_VER)
135 #pragma warning(pop) 135 #pragma warning(pop)
136 #endif 136 #endif
OLDNEW
« no previous file with comments | « mojo/public/tools/bindings/generators/cpp_templates/interface_definition.tmpl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698