chiark / gitweb /
documentation/doxygen: support for STRIP_FROM{,_INC}_PATH.
authorMaxime Schmitt <maxime.schmitt91@gmail.com>
Sat, 12 Jun 2021 21:07:02 +0000 (23:07 +0200)
committerVladimír Vondruš <mosra@centrum.cz>
Sun, 15 Sep 2024 19:24:31 +0000 (21:24 +0200)
commitbaedbb9456426a1ae7e3278d100ce9d797784a41
tree92420e8024d9ec45c6e418064d1c39942b310eeb
parent69e3917348ced235d142021b2ae71435be45abc8
documentation/doxygen: support for STRIP_FROM{,_INC}_PATH.

Doxygen support for STRIP_FROM_INC_PATH is applied to class/struct and
enums through the <includes> xml tag. m.css additionaly shows such
information for functions, enum, namespaces, typedef, variables and
defines through the information extracted from the <location file="xx"/>
tag.

However the location available through the <location file="xx"/> is not
stripped using STRIP_FROM_INC_PATH, only STRIP_FROM_PATH.

This patch provides STRIP_FROM_INC_PATH support by building the prefixes
(STRIP_FROM_INC_PATH stripped from STRIP_FROM_PATH) and stripping the
longest match when constructing the include html.

Co-authored-by: Yuri Edward <nicolas1.fraysse@epitech.eu>
Co-authored-by: Vladimír Vondruš <mosra@centrum.cz>
documentation/doxygen.py
documentation/test_doxygen/test_doxyfile.py