]> sourceware.org Git - libabigail.git/commit
Add declaration-only enums to XML reader/writer.
authorGiuliano Procida <gprocida@google.com>
Wed, 10 Jun 2020 11:59:39 +0000 (12:59 +0100)
committerDodji Seketeli <dodji@redhat.com>
Wed, 8 Jul 2020 14:59:56 +0000 (16:59 +0200)
commit6295ff70effa07913ffe73ec2688e71a5bcd642c
tree06953407fdabb4ea1df059b0aa43c8504ac8657b
parent9a113ce77139d5b0fd55e0f554d930b38e0a856a
Add declaration-only enums to XML reader/writer.

* src/abg-reader.cc (build_enum_type_decl): Detect a
declaration-only enum and flag it as such.
(build_type_decl): Support reading the "is-declaration" attribute.
(build_class_decl): Adjust.
* src/abg-writer.cc (write_is_declaration_only): Renamed
write_class_or_union_is_declaration_only into this.
(write_enum_is_declaration_only): Remove.
(write_type_decl, write_enum_type_decl)
(write_class_decl_opening_tag, write_union_decl_opening_tag): Use
write_is_declaration_only.
* tests/data/test-read-dwarf/PR22122-libftdc.so.abi: Adjust.
* tests/data/test-read-dwarf/test12-pr18844.so.abi: Likewise.
* tests/data/test-read-dwarf/test9-pr18818-clang.so.abi: Likewise.

Signed-off-by: Giuliano Procida <gprocida@google.com>
Signed-off-by: Dodji Seketeli <dodji@redhat.com>
src/abg-reader.cc
src/abg-writer.cc
tests/data/test-read-dwarf/PR22122-libftdc.so.abi
This page took 0.032265 seconds and 5 git commands to generate.