]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Strip absolute paths from files shown in Doxygen docs
authorJonathan Wakely <jwakely@redhat.com>
Fri, 28 Apr 2023 10:22:26 +0000 (11:22 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Wed, 3 May 2023 16:33:30 +0000 (17:33 +0100)
This avoids showing absolute paths from the expansion of
@srcdir@/libsupc++/ in the doxygen File List view.

libstdc++-v3/ChangeLog:

* doc/doxygen/user.cfg.in (STRIP_FROM_PATH): Remove prefixes
from header paths.

(cherry picked from commit 975e8e836ead0e9055a125a2a23463db5d847cb3)

libstdc++-v3/doc/doxygen/user.cfg.in

index b5ab9e9413b81de9183d1c4fe0d497ad81409735..b02de4f29f36fa7d9e595044edf45e7793a09394 100644 (file)
@@ -152,7 +152,7 @@ FULL_PATH_NAMES        = NO
 # will be relative from the directory where doxygen is started.
 # This tag requires that the tag FULL_PATH_NAMES is set to YES.
 
-STRIP_FROM_PATH        =
+STRIP_FROM_PATH        = @srcdir@/doc/ @srcdir@/libsupc++/ include/
 
 # The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of the
 # path mentioned in the documentation of a class, which tells the reader which
@@ -786,6 +786,7 @@ WARN_LOGFILE           =
 # spaces. See also FILE_PATTERNS and EXTENSION_MAPPING
 # Note: If this tag is empty the current directory is searched.
 
+# N.B. update STRIP_FROM_PATH to sanitize paths outside the build tree.
 INPUT                  = @srcdir@/doc/doxygen/doxygroups.cc \
                          @srcdir@/libsupc++/compare \
                          @srcdir@/libsupc++/cxxabi.h \