libabigail/src
Dodji Seketeli 7cae79e0d8 On changed fn, show symbol info when name is different from linkage name in C
In change reports for function sub-type changes, for the C language,
when the name of the function is different from its linkage name, even
when the function symbol has no aliases, show the symbol information
of the function.

	* include/abg-ir.h (translation_unit::language): New enum type.
	(translation_unit::{get_language, set_language}): Declare new
	accessors.
	(translation_unit_language_to_string)
	(string_to_translation_unit_language, is_c_language)
	(is_cplus_plus_language): Declare new functions.
	* src/abg-ir.cc (translation_unit::priv::language_): New data
	member.
	(translation_unit::priv::language_): Initialize it.
	(translation_unit::{set_language, get_language}): Define new
	member functions.
	(translation_unit_language_to_string)
	(string_to_translation_unit_language, is_c_language)
	(is_cplus_plus_language): Define new functions.
	* src/abg-dwarf-reader.cc (dwarf_language_to_tu_language): New
	static function.
	(build_translation_unit_and_add_to_ir): Read the language of the
	translation unit.
	* src/abg-comparison.cc (corpus_diff::report): When reporting a
	change in a function sub-type, if we are in C language translation
	unit, if the function name is different from its linkage name,
	even if the symbol doesn't have any alias, show symbol
	information.
	* src/abg-reader.cc (read_translation_unit_from_input): Read the
	'language' property of the translation unit, if present.
	* src/abg-writer.cc (write_translation_unit): Write the 'language'
	property to the translation unit, if present.
	* tests/data/test-read-dwarf/test0.abi: Adjust for the new
	'language' property of the 'abi-instr' element.
	* tests/data/test-read-dwarf/test1.abi: Likewise.
	* tests/data/test-read-dwarf/test2.so.abi: Likewise.
	* tests/data/test-read-dwarf/test3.so.abi: Likewise.
	* tests/data/test-read-dwarf/test4.so.abi: Likewise.
	* tests/data/test-read-dwarf/test5.o.abi: Likewise.
	* tests/data/test-read-dwarf/test6.so.abi: Likewise.
	* tests/data/test-read-dwarf/test7.so.abi: Likewise.
	* tests/data/test-read-dwarf/test8-qualified-this-pointer.so.abi:
	Likewise.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
2015-07-19 19:52:01 +02:00
..
abg-comp-filter.cc Fix symbols comparison 2015-06-02 00:07:02 +02:00
abg-comparison.cc On changed fn, show symbol info when name is different from linkage name in C 2015-07-19 19:52:01 +02:00
abg-config.cc Update copyright years 2015-01-07 17:52:10 +01:00
abg-corpus.cc Fix symbols comparison 2015-06-02 00:07:02 +02:00
abg-diff-utils.cc Update copyright years 2015-01-07 17:52:10 +01:00
abg-dwarf-reader.cc On changed fn, show symbol info when name is different from linkage name in C 2015-07-19 19:52:01 +02:00
abg-hash.cc Do not compare static data members when comparing types 2015-06-23 13:17:37 +02:00
abg-ini.cc Support specifying data member insertion in suppressions 2015-05-24 23:43:02 +02:00
abg-ir.cc On changed fn, show symbol info when name is different from linkage name in C 2015-07-19 19:52:01 +02:00
abg-libxml-utils.cc Update copyright years 2015-01-07 17:52:10 +01:00
abg-libzip-utils.cc Update copyright years 2015-01-07 17:52:10 +01:00
abg-reader.cc On changed fn, show symbol info when name is different from linkage name in C 2015-07-19 19:52:01 +02:00
abg-tools-utils.cc Guess RPM file type 2015-07-17 10:07:37 +02:00
abg-traverse.cc Update copyright years 2015-01-07 17:52:10 +01:00
abg-viz-common.cc Update copyright years 2015-01-07 17:52:10 +01:00
abg-viz-dot.cc Update copyright years 2015-01-07 17:52:10 +01:00
abg-viz-svg.cc Update copyright years 2015-01-07 17:52:10 +01:00
abg-writer.cc On changed fn, show symbol info when name is different from linkage name in C 2015-07-19 19:52:01 +02:00
Makefile.am Expose a new libabigail::tools_utils namespace 2015-01-08 12:28:14 +01:00