mirror of
git://sourceware.org/git/libabigail.git
synced 2025-02-23 01:06:56 +00:00
The Git repository of the Libabigail Project
The name of a pointer to member type is currently set at the time of construction of the type. This can be problematic because at the time of construction of the type, the member type might not be yet fully constructed. That would result in a name (for the pointer to member type) that is incorrect and stays incorrect for the lifetime of the ptr-to-mbr-type. To be correct, the name of the pointer to member type must always reflect the current state of the member and containing types. This patch does just that. The patch turns decl_base::get_name into a virtual member function. It then creates a ptr_to_mbr_type::get_name virtual member function that dynamically overloads decl_base::get_name. Then, ptr_to_mbr_type::get_name just builds and returns the qualified name of the pointer to member type. * include/abg-ir.h (decl_base::{g,s}et_name): Make these member functions virtual. (ptr_to_mbr_type::get_name): Add new virtual overload. * src/abg-ir.cc (ptr_to_mbr_type::ptr_to_mbr_type): Do not set the name of the type here. Just say that it's not anonymous. (ptr_to_mbr_type::get_name): Define new (virtual) member function. Signed-off-by: Dodji Seketeli <dodji@redhat.com> |
||
---|---|---|
.github | ||
autoconf-archive | ||
bash-completion | ||
big-tests@8447ddfd40 | ||
doc | ||
docker | ||
include | ||
m4 | ||
relicensing-scripts | ||
scripts | ||
src | ||
tests | ||
tools | ||
.clang-format | ||
.gitignore | ||
.gitmodules | ||
.mailmap | ||
abigail.m4 | ||
ABIXML-FORMAT-VERSIONS | ||
AUTHORS | ||
ChangeLog | ||
COMMIT-LOG-GUIDELINES | ||
COMPILING | ||
configure.ac | ||
CONTRIBUTING | ||
default.abignore | ||
gen-changelog.py | ||
install-sh | ||
libabigail.pc.in | ||
license-change-2020.txt | ||
LICENSE.txt | ||
ltmain.sh | ||
Makefile.am | ||
NEWS | ||
README | ||
README-DOCKER.md | ||
release-text-template.txt | ||
update-copyright.sh | ||
VISIBILITY |
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, functions 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 compare two ABI Corpora (apparently the plural of corpus is copora, heh, that's cool), provide detailed information about their differences, and help build tools to infer interesting conclusions about these differences. You are welcome to contribute to this project after reading the files CONTRIBUTING and COMMIT-LOG-GUIDELINES files in the source tree. Communicating with the maintainers of this project -- including sending patches to be include to the source code -- happens via email at libabigail@sourceware.org.