mirror of
git://sourceware.org/git/libabigail.git
synced 2025-03-05 14:18:11 +00:00
The Git repository of the Libabigail Project
* abg-ir.{h,cc} (decl_base::decl_base, scope_decl::scope_decl) (type_decl::type_decl, namespace_decl::namespace_decl): Do not append a decl to its context from within its constructor. It's better doing that in a function that takes shared_ptrs to decl and context. That way we avoid memory management havoc. (decl_base::set_scope): New private function. (scope_decl::add_member_decl): Make this private. (add_decl_to_scope): New function, friend of decl_base and scope_decl. * abg-reader.cc (read_context::get_cur_scope): Add a non-const overload. (handle_type_decl, handle_namespace_decl): Use add_decl_to_scope. Adjust to new type_decl and namespace_decl constructor signature. * src/abg-writer.cc (write_type): Emit 'id', not 'xml:id'. (write_namespace_decl): Emit "namespace-decl", not "namespace-decl-name", as the name of namespace element. * tests/Makefile.am (test0.xml): Rename input0.xml into this. (test1.xml): New test input. * tests/data/test-read-write/test0.xml: Update to use 'id' as id attribute, rather than xml:id. * tests/data/test-read-write/test1.xml: New test. * test-read-write.cc (struct InOutSpec): New (main): Reorganize to give a list of input files to read and to write to an output file, have the test read the input files, write them, and diff the two. |
||
---|---|---|
m4 | ||
src | ||
tests | ||
.gitignore | ||
AUTHORS | ||
ChangeLog | ||
config.guess | ||
config.h.in | ||
config.sub | ||
configure.ac | ||
COPYING | ||
depcomp | ||
INSTALL | ||
install-sh | ||
ltmain.sh | ||
Makefile.am | ||
missing | ||
NEWS | ||
README |
This is the Application Binary Interface Generic Analysis and Instrumentation Library. It aims at constructing, manipulating, serializing and de-serializing ABI-relevant artifacts. The set of artifacts that we are intersted is made of quantities like types, variable, fonctions and declarations of a given library or program. For a given library or program this set of quantities is called an ABI corpus. This library aims at (among other things) providing a way to comparing two ABI Corpuses, provide detailed information about their differences, and help build tools to infer interesting conclusions about these differences.