mirror of
git://sourceware.org/git/libabigail.git
synced 2024-12-30 13:52:05 +00:00
c50b9dbb55
* src/abg-ir.cc (class_template_decl::class_template_decl) (class_template_decl::set_pattern) (class_template_decl::operator==) (class_template_decl::~class_template_decl) (class_template_decl_hash::operator()) (class_tmpl_shared_ptr_hash::operator()): New definitions. * src/abg-ir.h (class class_template_decl, struct class_tmpl_shared_ptr_hash, struct class_tmpl_shared_ptr_hash): New declarations. * src/abg-reader.cc (read_context::const_class_tmpl_map_it): New typedef. (read_context::get_fn_tmpl_decl): Fix comment. (read_context::{get_class_tmpl_decl,key_class_tmpl_decl}) (build_class_template_decl, handle_class_template_decl): New definitions. (read_context::m_class_tmpl_map): New member. (handle_element): Support "class-template-decl" xml elements nodes. (build_class_decl): Add missing bits to comment. (build_function_template_decl): Fix spacing. * src/abg-writer.cc (class_tmpl_shared_ptr_map): New typedef. (write_context::m_class_tmpl_map): New member. (write_context::get_id_for_class_tmpl, write_class_template_decl): New definitions. (write_template_parameters): Factorize this this out from ... (write_function_template_decl): ... here. (write_decl): Support writing instances of class_template_decl. Fix spacing. * tests/data/test-read-write/test15.xml: New test input. * tests/Makefile.am: Add the new test15.xml input to the distribution. * tests/test-read-write.cc (in_out_specs): Add the new test15.xml test to the list of serialized output to be de-serialized and serialized back.
18 lines
681 B
XML
18 lines
681 B
XML
<abi-instr version='1.0'>
|
|
<type-decl name='int' size-in-bits='32' alignment-in-bits='32' id='type-id-1'/>
|
|
<class-template-decl id='class-tmpl-id-2'>
|
|
<template-type-parameter id='type-id-3' name='T'/>
|
|
<class-decl name='C' visibility='default' id='type-id-4'>
|
|
<member-type access='public'>
|
|
<typedef-decl name='TINT' type-id='type-id-1' id='type-id-5'/>
|
|
</member-type>
|
|
<data-member access='private'>
|
|
<var-decl name='m_first' type-id='type-id-3'/>
|
|
</data-member>
|
|
<data-member access='private'>
|
|
<var-decl name='m_second' type-id='type-id-5'/>
|
|
</data-member>
|
|
</class-decl>
|
|
</class-template-decl>
|
|
</abi-instr>
|