From a17ea6870e8c89f4cb7bc3dd1c7da665ae56c0cd Mon Sep 17 00:00:00 2001 From: Johnny Willemsen Date: Wed, 2 Aug 2023 12:29:41 +0200 Subject: [PATCH] Generate base struct when used in the base definition * ridlbe/ccmx11/facets/dds/templates/idl/dds/struct.erb: --- ridlbe/ccmx11/facets/dds/templates/idl/dds/struct.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ridlbe/ccmx11/facets/dds/templates/idl/dds/struct.erb b/ridlbe/ccmx11/facets/dds/templates/idl/dds/struct.erb index e50015230..5ce8df4cc 100644 --- a/ridlbe/ccmx11/facets/dds/templates/idl/dds/struct.erb +++ b/ridlbe/ccmx11/facets/dds/templates/idl/dds/struct.erb @@ -2,7 +2,7 @@ /// @copydoc <%= doc_scoped_name %> @nested(<% if has_toplevel_annotation? %>FALSE<% else %>TRUE<% end %>) @<%= extensibility_annotation %> -struct <%= unescaped_name %> { +struct <%= unescaped_name %><% unless base.nil? %> : <%= base.unescaped_name %><% end %> { % members.each do |_m| /// @copydoc <%= _m.doc_scoped_name %> <% if _m.has_key_annotation? %>@key <% end %><%= strip_global_scope(_m.idltype_unescaped_name) %> <%= _m.unescaped_name %>;