From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2181) id 53164385771A; Fri, 28 Apr 2023 12:07:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 53164385771A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1682683648; bh=wXPAKOJ88cdd9BBMEaVufODxLVQAYUPlqzvUrJLaspM=; h=From:To:Subject:Date:From; b=FAFY45seqcu6zDsV32ofVBD7dJnjquUjgV0fyCAIx0JZMx1dcuOwtGNNixZWpLMaa HZUA1OmTGYwTtpmDY1DHczelsT08PAem60efFV6vAajiTl6/9dZX4HeodyI0GRe7eZ HA74zNor4nXsFw7uKjfuAxwcmkRsf6+jTzbHYmLw= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Jonathan Wakely To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc r14-328] libstdc++: Strip absolute paths from files shown in Doxygen docs X-Act-Checkin: gcc X-Git-Author: Jonathan Wakely X-Git-Refname: refs/heads/master X-Git-Oldrev: 5c8b154c56a65faf64dfc5f8852e801150cb2f26 X-Git-Newrev: 975e8e836ead0e9055a125a2a23463db5d847cb3 Message-Id: <20230428120728.53164385771A@sourceware.org> Date: Fri, 28 Apr 2023 12:07:28 +0000 (GMT) List-Id: https://gcc.gnu.org/g:975e8e836ead0e9055a125a2a23463db5d847cb3 commit r14-328-g975e8e836ead0e9055a125a2a23463db5d847cb3 Author: Jonathan Wakely Date: Fri Apr 28 11:22:26 2023 +0100 libstdc++: Strip absolute paths from files shown in Doxygen docs 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. Diff: --- libstdc++-v3/doc/doxygen/user.cfg.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libstdc++-v3/doc/doxygen/user.cfg.in b/libstdc++-v3/doc/doxygen/user.cfg.in index 75108604a07..14981c96f95 100644 --- a/libstdc++-v3/doc/doxygen/user.cfg.in +++ b/libstdc++-v3/doc/doxygen/user.cfg.in @@ -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 @@ -837,6 +837,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 \