gcc/libstdc++-v3/scripts
Jonathan Wakely 394f60e6ed libstdc++: Improve generated man pages for libstdc++
The man pages generated by Doxygen show internal header files, not the
standard headers that users actually care about. The run_doxygen script
uses the doc/doxygen/stdheader.cc program to address that, but it
doesn't work. It only tries to fix headers with underscores in the
names, which doesn't work for <bits/align.h> or <bits/fsteam.tcc>.  It
isn't prepared for the strings like "bits/stl_set\&.h" that are produced
by Doxygen. It doesn't know about many headers that have been added
since it was written. And the run_doxygen script fails to use its output
correctly to modify the man pages. Additionally, run_doxygen doesn't
know about new nested namespaces like std::filesystem and std::ranges.

This change rewrites the stdheader.cc program to do a better job of
finding the right header. The run_doxygen script now uses the just-built
compiler to build stdheader.cc and actually uses its output. And the
script now knows about other nested namespaces.

The stdheader.cc program might be unnecessary if we consistently used
@headername tags in the Doxygen comments, but we don't (and probably
never will).

A problem that remains after this change is that all the free function
defined in namespace std get dumped into a single man page for std(3),
without detailed descriptions. We don't even install that std(3) page,
but remove it before installation. That means only classes are
documented in man pages (including many internal ones that should not be
publicly documented such as _Deque_base and _Tuple_impl).

libstdc++-v3/ChangeLog:

	* doc/doxygen/stdheader.cc: Refactor. Use C++23. Add new
	headers.
	* scripts/run_doxygen: Fix post-processing of #include
	directives in man pages. Use new xg++ to compile helper program.
2021-10-21 22:24:57 +01:00
..
check_compile Fix comments in testsuite script 2018-08-23 16:10:35 +01:00
check_performance libstdc++: Pass CXXFLAGS to check_performance script 2020-10-09 14:01:55 +01:00
check_simd libstdc++: Add simd testsuite 2021-01-27 16:37:26 +00:00
create_testsuite_files libstdc++: Add simd testsuite 2021-01-27 16:37:26 +00:00
extract_symvers.in Update copyright years. 2021-01-04 10:26:59 +01:00
extract_symvers.pl Update copyright years. 2021-01-04 10:26:59 +01:00
gen_bind_includers.pl
gen_includers.pl
gen_includers2.pl
make_exports.pl Darwin fix libstdc++ build warnings. 2018-12-06 19:42:21 +00:00
make_graph.py make_graph_test_infos.xml: Edit. 2011-08-15 00:51:06 +00:00
run_doxygen libstdc++: Improve generated man pages for libstdc++ 2021-10-21 22:24:57 +01:00
testsuite_flags.in testsuite_hooks.h: Rewrite VERIFY in terms of __builtin_printf and __builtin_abort. 2016-10-12 16:13:06 +00:00