libabigail/tools
Mark Wielaard 9fe85b370c Add --header-file option to add individual public header files.
Sometimes public header files are in the same directory as private
header files. In such cases --headers-dir cannot be used. Add
--header-file to add individual public header files.

	* include/abg-tools-utils.h (gen_suppr_spec_from_headers): Add
	hdr_files string vector argument.
	* src/abg-tools-utils.cc (handle_file_entry): New function that
	adds one specific file to the type_suppression. Implementation
	lifted from...
	(handle_fts_entry): ...here. Call handle_file_entry for each file.
	(gen_suppr_spec_from_headers): Also takes a header_files string
	vector as argument. Call handle_file_entry for each file entry.
	* tools/abidiff.cc (options): Add header_files1 and header_files2
	string vectors.
	(display_usage): Print --header-file1 and --header-file2 usage.
	(parse_command_line): Handle --header-file1, --hf1 and
	--header-file2, --hf2.
	(set_diff_context_from_opts): Call gen_suppr_spec_from_headers
	with header_files1 and header_files2.
	(set_suppressions): Likewise.
	* tools/abidw.cc (options): Add header_files string vector.
	(display_usage): Print --header-file usage.
	(parse_command_line): Handle --header-file1, --hf1.
	(maybe_check_header_files): New function.
	(set_suppressions): Call gen_suppr_spec_from_headers with
	header_files.
	(main): Call maybe_check_header_files.
	* tools/abilint.cc (options): Add header_files string vector.
	(display_usage): Print --header-file usage.
	(parse_command_line): Handle --header-file1, --hf1.
	(set_suppressions): Call gen_suppr_spec_from_headers with
	header_files.
	* doc/manuals/abidiff.rst: Document --header-file1, --hf1 and
	--header-file2, --hf2. Add new options to documentation of
	--drop-private-types.
	* doc/manuals/abidw.rst: Document --header-file, --hf.
	* doc/manuals/abilint.rst: Likewise.

Signed-off-by: Mark Wielaard <mark@klomp.org>
Signed-off-by: Dodji Seketeli <dodji@redhat.com>
2020-04-14 17:17:28 +02:00
..
.gitignore Update .gitignore files to ignore typical dev side products 2019-04-16 16:32:52 +02:00
abiar.cc Update copyright year to 2020 2020-02-21 17:05:01 +01:00
abicompat.cc Update copyright year to 2020 2020-02-21 17:05:01 +01:00
abidiff.cc Add --header-file option to add individual public header files. 2020-04-14 17:17:28 +02:00
abidw.cc Add --header-file option to add individual public header files. 2020-04-14 17:17:28 +02:00
abilint.cc Add --header-file option to add individual public header files. 2020-04-14 17:17:28 +02:00
abipkgdiff.cc abipkgdiff: fix documentation of --impacted-interface 2020-03-18 17:33:03 +01:00
abisym.cc abisym: Remove leading space in output. 2020-03-10 18:03:03 +01:00
binilint.cc Update copyright year to 2020 2020-02-21 17:05:01 +01:00
fedabipkgdiff Bug 22722 - Make fedabipkgdiff and its tests support both python 3 and 2 2018-03-29 13:46:50 +02:00
kmidiff.cc Update copyright year to 2020 2020-02-21 17:05:01 +01:00
Makefile.am Support loading and comparing two kernel trees 2017-07-03 17:45:36 +02:00