summaryrefslogtreecommitdiff
path: root/app-text/doxygen
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-08-26 12:00:09 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-08-26 12:00:09 +0100
commitf300354de9fe5d997850456a9e1f400193e6544f (patch)
tree402fd6a7727db790bf57f683894052e8791d389e /app-text/doxygen
parent5c42677148c717eb9f4673237db807f74740b4e9 (diff)
gentoo auto-resync : 26:08:2024 - 12:00:09
Diffstat (limited to 'app-text/doxygen')
-rw-r--r--app-text/doxygen/Manifest6
-rw-r--r--app-text/doxygen/doxygen-1.12.0.ebuild165
-rw-r--r--app-text/doxygen/doxygen-9999.ebuild30
-rw-r--r--app-text/doxygen/files/doxygen-1.12.0-clang-19.patch43
-rw-r--r--app-text/doxygen/files/doxygen-1.12.0-libfmt-11.patch112
5 files changed, 345 insertions, 11 deletions
diff --git a/app-text/doxygen/Manifest b/app-text/doxygen/Manifest
index b0eab9e462d2..b9cbd202bf4d 100644
--- a/app-text/doxygen/Manifest
+++ b/app-text/doxygen/Manifest
@@ -1,3 +1,5 @@
+AUX doxygen-1.12.0-clang-19.patch 2328 BLAKE2B c71996986679ddfab17c7de019a572f6e85f13dcb3c6d21b7f8a4e510cd978fe5e1ad6661c2f9661035c246ae5df6eb8b55fdb0bca235d7272a4433109a794a3 SHA512 86839ba8c5ef39729c5379a8397240b76ce065eefa3c9a9a168a572c5e796698547befb2b22a222188e68b8b42c7f26fcbf1b4ed46e17af29f937e45cc86edfc
+AUX doxygen-1.12.0-libfmt-11.patch 4820 BLAKE2B 548dd1c74b2c81551409053d7196ea07d0300efe5b7e42aa7a9c18f6313543478f5a6a9fa0c503797b5fb1129c462241ba9663939c044036d321f0d0cd2355a4 SHA512 32f6952390e08ec5d5bb7c35aa0010c6027c9a6bffc6de1d6e3e45255b62dd563bfc12ad94efd656207c161ee81b81f156ffec49be5160c3acd49a8949aeaecd
AUX doxygen-1.9.4-link_with_pthread.patch 1116 BLAKE2B 864adde5d9c0c852dba8fdaee9021f16e7e119a660d5d8657f320686c0d86c29b5695f367c2af2846e9861bca5a70889b6dd56a9734485527ae504a134e30594 SHA512 f9a1089585f83a09b89c813f51bbb7914fb27be2b3e554148387fd322c88153c2aca1af4215d90b6f2fc9eae25814085fb468f0ef2dacfa092662a4609d52929
AUX doxygen-1.9.7-musl-1.2.4.patch 1126 BLAKE2B 050fa56a7786c557ce03c9275e152f2b2d2285209f8ea9aed5019c96c2e545ce46208f783092addfcd8ae00b0ed257d4f588ae4036b65752087901d616cc4979 SHA512 eb89ca38cee0431528240c9b354adeef5e2c3ed89db762e7e12e12fa17ca596752b9da0cb75fb9d09dcfbecc302a7e63f811b8fb2f43baf3b4d2230f259ad96f
AUX doxygen-1.9.8-spdlog-link.patch 1571 BLAKE2B 954d701bdcbabf8b9ebb52d4be6a947189661a55cbab72b7651fb956b53778a968c6c88fb2b3967a8bfa5f0951e9fe046e69a8567938a8243558af807d657714 SHA512 7d3d4363313ace1823b4570c94fcd2f8099f6f7ec42d45f4fd341df9071fb9807e03fe5094a12c8fcf86ca8da06aa681ac0b8e1e0bec70fe2555f70cf39c5b8f
@@ -5,9 +7,11 @@ AUX doxygen-1.9.8-suppress-unused-option-libcxx.patch 828 BLAKE2B db41297d3ad3fc
AUX doxygen-1.9.8-unbundle-sqlite.patch 4510 BLAKE2B afd24516a20c4378a611c836bc51276528a3983ef21db7a036d53e910b8627f5800b871d2cd13c14fc36e04eebee8bca31c40819c9b4051b1007a3ad799351d0 SHA512 548a3e550bc552007116a9bf500e1cf953b23488e825ac2ee55ef90ae001c189e5a85f84b9957c5670be7d83166a5e8df266c6a96f8b195199d45c264b67e846
DIST doxygen-1.10.0.src.tar.gz 8400410 BLAKE2B dc7882dfb8b023e9250592375105cc79d4744362d96f4518b931ac264259257d27e0f2c5456580f3676bb54cc29fbc2ab3b2ffc37da6441297091c60a38dc13b SHA512 885de36fa0b4364cdd1eddd5e02517e08da7a52274c6fda2c22cbe85f0840e2ddf7358f613c018dc39b4a6dfce2ddd627e9318e73b903f954bbad1a39d03a416
DIST doxygen-1.11.0.src.tar.gz 8447729 BLAKE2B e4825494099850b648df570a1ae53b858d196f7c6ada4565eae1e04ac119f4f9b1ed9d6e07dc26a5e50d41b74299720d7cde4ff43a7350b083d74eabce7624e3 SHA512 54f4a15e459d1d9cc3b4f021b5264191146bd8e0e780b57c4c31f4f9dcbfc7fe7a9db58e8cda4c6df1b4b354dd432dac0b3089fd547afe7cbe313771b2c6aaa4
+DIST doxygen-1.12.0.src.tar.gz 8472577 BLAKE2B de823aa8dee0e22ec49bbb97cf5b53272cdaea249250556b07602d501d45774be19dbd40ecc4324942840d3fe90b0224aa5c61ec7d42098f1797d75f3795268d SHA512 e407e29c5e232e1f8dca291dd2d00b1dd400be709400225339408fad2cd758563b69f290cbd7c0efeb76b1335c4672fb1d6d580b9e6ed570708cf9b7d78951b1
DIST doxygen-1.9.8.src.tar.gz 8087770 BLAKE2B 9b93bd394e9fdafef1c274596f790db0956028332a945e0359b7b24440aefa5362b2126649c529e71341bba172cd1fa514455567ffffd37243a740a1ffbc1944 SHA512 edcd382538ecf0afd9d1c891afe302092cd541a30840dda6b00dc0f1d6c5b39a696ab98042c5bb4012c1c051609bfdbfa7d29e3098a72f6cb504d90097767ebb
EBUILD doxygen-1.10.0-r1.ebuild 3819 BLAKE2B 8c1af5fce64d55fe06434b8160f53acf435d8121b5dab1cdcb73e3f3458bc716dc9c152f76ca2064b776a09d6133812b0cde24c77bf5951d721350151b85f4d7 SHA512 be3d81a0e3031048b93b2412dfe8df7ccf6e5265b6498ef3e4fb35f319bcf3d148517c1944b24eb226957ec8efa48fd9ec4635592039a396ec6f4b75f9826303
EBUILD doxygen-1.11.0.ebuild 3819 BLAKE2B a4d1280e2e6ded50699e9db5b6f3d62238c1310bd26405a10900e99bb2903cf40b88c1bfc378f1b8c5fda60cf841883c2a224e8a0a3621eaebec2c70823dcba2 SHA512 3a8c7838eaf7f633048a61172aae3066cb1075a595b96fba9cd269220384301de9d6799640f80d8d5f977502e93b33926c985d532e2afa1479ff399545389ab0
+EBUILD doxygen-1.12.0.ebuild 3930 BLAKE2B b31a322d8d3fc6f65cc6ee926a43da68e1fa285c186d045765bfb255dc26fa60bcf9ac75f7cba7a61c8001ac71c38e6cfe3027c2e887ce686ac4d8bb57e1e562 SHA512 05bd3f8b3937d094dd41b4280cea53fc88b346dbe9d930723f9efd35376fc242a1f956a2ed52f8a5be737077e508def4c2a497ee67405205b7c4c8c8a6339cbe
EBUILD doxygen-1.9.8.ebuild 3667 BLAKE2B b596827cfd08a822adbe93ee33d981a98d8aa6052eb5542da52eb0a1ca7ca6ab00037228a3dfb9d7e82be75b160c4cb2a9bb9981f543176c93098750a5a41dc1 SHA512 12d7879642e9e372caa5930d7bafc1f983d3edf43d56a94d76d71513795d369239831e5621d108d833e15902dafdb12e706ee8299d44991394cc4cd10017bd90
-EBUILD doxygen-9999.ebuild 3595 BLAKE2B f77632d211c66370a73ab9f12ae125f783a10dd9c3b079a71ef13ab93b2918280e0c18ce1ce3c13670da7845f4d2022137ecb6bfe5e678c7e57746c39b4b8b20 SHA512 681bb0cbec9969517ccf5e07c7df01668dff6c68a23a1cb5f1215ebd43a26921cd7dee4a5554c4a70d2dc4fa8778eb2dddd4a9d16a2bac6954ca630783710464
+EBUILD doxygen-9999.ebuild 3843 BLAKE2B 8e16e5188d4c1eefae9c699a4e5ae16dad00558085774653677a1ed74d4fa946f5af72e74185836d22cdb31692ff756c9fabe540b0b7b5a6739758281e203fa5 SHA512 806fe81b4c2dcb2aca9d3f6bb37f78d5a2c4511fc7f30721316329fcf08cb7d35d6bfa9825b7f83bc7dcad9ef49585cf49dd9ee9681931b4e05324590bb817ef
MISC metadata.xml 1024 BLAKE2B 884363174e8a83eecb926c962185d1f1cc3263ed216b26e149035b47b424b5baf1da222805f5ed04f25b4e97f12c79cface7bd6ce59ca9d37388c696a9a13117 SHA512 12c91be3f02f1ef99db00a48f2dd252f4bab85078f308c921a1a07062d971090f8dd39480b5b72e2bb21f8e2df69bc10c7828c1c91f2f83ce64be50a233eef15
diff --git a/app-text/doxygen/doxygen-1.12.0.ebuild b/app-text/doxygen/doxygen-1.12.0.ebuild
new file mode 100644
index 000000000000..7e15463915fc
--- /dev/null
+++ b/app-text/doxygen/doxygen-1.12.0.ebuild
@@ -0,0 +1,165 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+LLVM_COMPAT=( 18 )
+PYTHON_COMPAT=( python3_{10..13} )
+PYTHON_REQ_USE="xml(+)"
+
+inherit cmake flag-o-matic llvm-r1 python-any-r1
+
+DESCRIPTION="Documentation system for most programming languages"
+HOMEPAGE="https://www.doxygen.nl/"
+
+if [[ ${PV} == *9999* ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/doxygen/doxygen.git"
+else
+ SRC_URI="https://doxygen.nl/files/${P}.src.tar.gz"
+ SRC_URI+=" https://downloads.sourceforge.net/doxygen/rel-${PV}/${P}.src.tar.gz"
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
+fi
+
+# GPL-2 also for bundled libmscgen
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="clang debug doc dot doxysearch gui test"
+# - We need TeX for tests, bug #765472
+# - We keep the odd construct of noop USE=test because of
+# the special relationship b/t RESTRICT & USE for tests.
+# Also, it's a hint which avoids tests being silently skipped during arch testing.
+REQUIRED_USE="test? ( doc )"
+RESTRICT="!test? ( test )"
+
+BDEPEND="
+ app-alternatives/yacc
+ app-alternatives/lex
+ ${PYTHON_DEPS}
+"
+RDEPEND="
+ app-text/ghostscript-gpl
+ dev-db/sqlite:3
+ dev-lang/perl
+ dev-libs/libfmt:=
+ dev-libs/spdlog:=
+ virtual/libiconv
+ clang? (
+ $(llvm_gen_dep '
+ sys-devel/clang:${LLVM_SLOT}=
+ sys-devel/llvm:${LLVM_SLOT}=
+ ')
+ )
+ dot? (
+ media-gfx/graphviz[freetype(+)]
+ )
+ doc? (
+ dev-texlive/texlive-bibtexextra
+ dev-texlive/texlive-fontsextra
+ dev-texlive/texlive-fontutils
+ dev-texlive/texlive-latex
+ dev-texlive/texlive-latexextra
+ dev-texlive/texlive-plaingeneric
+ )
+ doxysearch? ( dev-libs/xapian:= )
+ gui? (
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtwidgets:5
+ dev-qt/qtxml:5
+ )
+"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-1.9.4-link_with_pthread.patch"
+ "${FILESDIR}/${PN}-1.9.8-suppress-unused-option-libcxx.patch"
+ "${FILESDIR}/${PN}-1.12.0-libfmt-11.patch"
+
+ # Backports
+ "${FILESDIR}/${PN}-1.12.0-clang-19.patch"
+)
+
+DOCS=( LANGUAGE.HOWTO README.md )
+
+pkg_setup() {
+ use clang && llvm-r1_pkg_setup
+ python-any-r1_pkg_setup
+}
+
+src_prepare() {
+ cmake_src_prepare
+
+ # Call dot with -Teps instead of -Tps for EPS generation - bug #282150
+ sed -i -e '/addJob("ps"/ s/"ps"/"eps"/g' src/dot.cpp || die
+
+ # fix pdf doc
+ sed -i.orig -e "s:g_kowal:g kowal:" \
+ doc/maintainers.txt || die
+
+ if is-flagq "-O3" ; then
+ # TODO: Investigate this and report a bug accordingly...
+ ewarn "Compiling with -O3 is known to produce incorrectly"
+ ewarn "optimized code which breaks doxygen. Using -O2 instead."
+ replace-flags "-O3" "-O2"
+ fi
+}
+
+src_configure() {
+ # Very slow to compile, bug #920092
+ filter-flags -fipa-pta
+ # -Wodr warnings, see bug #854357 and https://github.com/doxygen/doxygen/issues/9287
+ filter-lto
+
+ local mycmakeargs=(
+ -Duse_libclang=$(usex clang)
+ # Let the user choose instead, see also bug #822615
+ -Duse_libc++=OFF
+ -Dbuild_doc=$(usex doc)
+ -Dbuild_search=$(usex doxysearch)
+ -Dbuild_wizard=$(usex gui)
+ -Duse_sys_spdlog=ON
+ -Duse_sys_sqlite3=ON
+ -DBUILD_SHARED_LIBS=OFF
+ -DGIT_EXECUTABLE="false"
+
+ # Noisy and irrelevant downstream
+ -Wno-dev
+ )
+
+ use doc && mycmakeargs+=(
+ -DDOC_INSTALL_DIR="share/doc/${P}"
+ )
+
+ cmake_src_configure
+}
+
+src_compile() {
+ cmake_src_compile
+
+ if use doc; then
+ export VARTEXFONTS="${T}/fonts" # bug #564944
+
+ if ! use dot; then
+ sed -i -e "s/HAVE_DOT = YES/HAVE_DOT = NO/" \
+ {testing/Doxyfile,doc/Doxyfile} \
+ || die "disabling dot failed"
+ fi
+
+ # -j1 for bug #770070
+ cmake_src_compile docs -j1
+ fi
+}
+
+src_install() {
+ cmake_src_install
+
+ # manpages are only automatically installed when docs are
+ # https://github.com/doxygen/doxygen/pull/10647
+ doman doc/doxygen.1
+ use gui && doman doc/doxywizard.1
+ use doxysearch && {
+ doman doc/doxyindexer.1
+ doman doc/doxysearch.1
+ }
+}
diff --git a/app-text/doxygen/doxygen-9999.ebuild b/app-text/doxygen/doxygen-9999.ebuild
index 563834fb7d62..a16e28ba2ca6 100644
--- a/app-text/doxygen/doxygen-9999.ebuild
+++ b/app-text/doxygen/doxygen-9999.ebuild
@@ -3,11 +3,11 @@
EAPI=8
-LLVM_MAX_SLOT=17
-PYTHON_COMPAT=( python3_{10..12} )
+LLVM_COMPAT=( 18 )
+PYTHON_COMPAT=( python3_{10..13} )
PYTHON_REQ_USE="xml(+)"
-inherit cmake flag-o-matic llvm python-any-r1
+inherit cmake flag-o-matic llvm-r1 python-any-r1
DESCRIPTION="Documentation system for most programming languages"
HOMEPAGE="https://www.doxygen.nl/"
@@ -43,14 +43,15 @@ RDEPEND="
dev-lang/perl
dev-libs/libfmt:=
dev-libs/spdlog:=
- media-libs/libpng:=
virtual/libiconv
clang? (
- <sys-devel/clang-$((${LLVM_MAX_SLOT} + 1)):=
+ $(llvm_gen_dep '
+ sys-devel/clang:${LLVM_SLOT}=
+ sys-devel/llvm:${LLVM_SLOT}=
+ ')
)
dot? (
- media-gfx/graphviz
- media-libs/freetype
+ media-gfx/graphviz[freetype(+)]
)
doc? (
dev-texlive/texlive-bibtexextra
@@ -72,7 +73,6 @@ DEPEND="${RDEPEND}"
PATCHES=(
"${FILESDIR}/${PN}-1.9.4-link_with_pthread.patch"
- "${FILESDIR}/${PN}-1.9.7-musl-1.2.4.patch"
"${FILESDIR}/${PN}-1.9.8-suppress-unused-option-libcxx.patch"
# Backports
@@ -81,7 +81,7 @@ PATCHES=(
DOCS=( LANGUAGE.HOWTO README.md )
pkg_setup() {
- use clang && llvm_pkg_setup
+ use clang && llvm-r1_pkg_setup
python-any-r1_pkg_setup
}
@@ -120,6 +120,9 @@ src_configure() {
-Duse_sys_sqlite3=ON
-DBUILD_SHARED_LIBS=OFF
-DGIT_EXECUTABLE="false"
+
+ # Noisy and irrelevant downstream
+ -Wno-dev
)
use doc && mycmakeargs+=(
@@ -149,5 +152,12 @@ src_compile() {
src_install() {
cmake_src_install
- doman doc/*.1
+ # manpages are only automatically installed when docs are
+ # https://github.com/doxygen/doxygen/pull/10647
+ doman doc/doxygen.1
+ use gui && doman doc/doxywizard.1
+ use doxysearch && {
+ doman doc/doxyindexer.1
+ doman doc/doxysearch.1
+ }
}
diff --git a/app-text/doxygen/files/doxygen-1.12.0-clang-19.patch b/app-text/doxygen/files/doxygen-1.12.0-clang-19.patch
new file mode 100644
index 000000000000..acca39a18d51
--- /dev/null
+++ b/app-text/doxygen/files/doxygen-1.12.0-clang-19.patch
@@ -0,0 +1,43 @@
+https://github.com/doxygen/doxygen/commit/cff64a87dea7596fd506a85521d4df4616dc845f
+https://github.com/doxygen/doxygen/pull/11064
+https://github.com/bisqwit/TinyDeflate/commit/68ced8bd5c819264e628d4f063500753b77f613d
+https://github.com/bisqwit/TinyDeflate/pull/9
+
+From cff64a87dea7596fd506a85521d4df4616dc845f Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Bernhard=20Rosenkr=C3=A4nzer?= <bero@lindev.ch>
+Date: Fri, 9 Aug 2024 14:13:34 +0200
+Subject: [PATCH] Fix build with clang >= 19.0
+
+Clang >= 19.0 requires a template argument list after the template
+keyword for CWG96 compliance, see
+https://github.com/llvm/llvm-project/pull/80801
+
+This patch has also been submitted to upstream TinyDeflate as
+https://github.com/bisqwit/TinyDeflate/pull/9
+--- a/deps/TinyDeflate/gunzip.hh
++++ b/deps/TinyDeflate/gunzip.hh
+@@ -1141,21 +1141,21 @@ namespace gunzip_ns
+ //fprintf(stderr, "both track flag\n");
+ SizeTracker<DeflateTrackBothSize> tracker;
+ return tracker(Gunzip<code & Flag_NoTrackFlagMask>
+- (tracker.template ForwardInput(i), tracker.template ForwardOutput(o), tracker.template ForwardWindow(c), std::forward<B>(b)));
++ (tracker.template ForwardInput<I>(i), tracker.template ForwardOutput<O>(o), tracker.template ForwardWindow<C>(c), std::forward<B>(b)));
+ }
+ else if constexpr(code & Flag_TrackIn)
+ {
+ //fprintf(stderr, "in track flag\n");
+ SizeTracker<DeflateTrackInSize> tracker;
+ return tracker(Gunzip<code & Flag_NoTrackFlagMask>
+- (tracker.template ForwardInput(i),std::forward<O>(o),std::forward<C>(c),std::forward<B>(b)));
++ (tracker.template ForwardInput<I>(i),std::forward<O>(o),std::forward<C>(c),std::forward<B>(b)));
+ }
+ else if constexpr(code & Flag_TrackOut)
+ {
+ //fprintf(stderr, "out track flag\n");
+ SizeTracker<DeflateTrackOutSize> tracker;
+ return tracker(Gunzip<code & Flag_NoTrackFlagMask>
+- (std::forward<I>(i), tracker.template ForwardOutput(o), tracker.template ForwardWindow(c), std::forward<B>(b)));
++ (std::forward<I>(i), tracker.template ForwardOutput<O>(o), tracker.template ForwardWindow<C>(c), std::forward<B>(b)));
+ }
+ else
+ {
diff --git a/app-text/doxygen/files/doxygen-1.12.0-libfmt-11.patch b/app-text/doxygen/files/doxygen-1.12.0-libfmt-11.patch
new file mode 100644
index 000000000000..a73f6ad58514
--- /dev/null
+++ b/app-text/doxygen/files/doxygen-1.12.0-libfmt-11.patch
@@ -0,0 +1,112 @@
+https://bugs.gentoo.org/937599
+https://github.com/doxygen/doxygen/pull/11083
+
+From 567aca983f70b01103271e431bc71a13ac79213c Mon Sep 17 00:00:00 2001
+From: Alfred Wingate <parona@protonmail.com>
+Date: Fri, 9 Aug 2024 03:00:05 +0300
+Subject: [PATCH] Adjust to libfmt-11 changes
+
+Bug: https://bugs.gentoo.org/937599
+See-Also: https://github.com/fmtlib/fmt/commit/d70729215fba1d54862e407b626abf86ddf409bf
+Signed-off-by: Alfred Wingate <parona@protonmail.com>
+--- a/src/trace.h
++++ b/src/trace.h
+@@ -156,7 +156,7 @@ namespace fmt { template<typename T> struct formatter {}; }
+ //! adds support for formatting QCString
+ template<> struct fmt::formatter<QCString> : formatter<std::string>
+ {
+- auto format(const QCString &c, format_context& ctx) {
++ auto format(const QCString &c, format_context& ctx) const {
+ return formatter<std::string>::format(c.str(), ctx);
+ }
+ };
+@@ -164,7 +164,7 @@ template<> struct fmt::formatter<QCString> : formatter<std::string>
+ //! adds support for formatting Protected
+ template<> struct fmt::formatter<Protection> : formatter<std::string>
+ {
+- auto format(Protection prot, format_context& ctx) {
++ auto format(Protection prot, format_context& ctx) const {
+ std::string result="Unknown";
+ switch (prot)
+ {
+@@ -180,7 +180,7 @@ template<> struct fmt::formatter<Protection> : formatter<std::string>
+ //! adds support for formatting Specifier
+ template<> struct fmt::formatter<Specifier> : formatter<std::string>
+ {
+- auto format(Specifier spec, format_context& ctx) {
++ auto format(Specifier spec, format_context& ctx) const {
+ std::string result="Unknown";
+ switch (spec)
+ {
+@@ -195,7 +195,7 @@ template<> struct fmt::formatter<Specifier> : formatter<std::string>
+ //! adds support for formatting MethodTypes
+ template<> struct fmt::formatter<MethodTypes> : formatter<std::string>
+ {
+- auto format(MethodTypes mtype, format_context& ctx) {
++ auto format(MethodTypes mtype, format_context& ctx) const {
+ std::string result="Unknown";
+ switch (mtype)
+ {
+@@ -213,7 +213,7 @@ template<> struct fmt::formatter<MethodTypes> : formatter<std::string>
+ //! adds support for formatting RelatesType
+ template<> struct fmt::formatter<RelatesType> : formatter<std::string>
+ {
+- auto format(RelatesType type, format_context& ctx) {
++ auto format(RelatesType type, format_context& ctx) const {
+ std::string result="Unknown";
+ switch (type)
+ {
+@@ -228,7 +228,7 @@ template<> struct fmt::formatter<RelatesType> : formatter<std::string>
+ //! adds support for formatting RelationShip
+ template<> struct fmt::formatter<Relationship> : formatter<std::string>
+ {
+- auto format(Relationship relation, format_context& ctx) {
++ auto format(Relationship relation, format_context& ctx) const {
+ std::string result="Unknown";
+ switch (relation)
+ {
+@@ -243,7 +243,7 @@ template<> struct fmt::formatter<Relationship> : formatter<std::string>
+ //! adds support for formatting SrcLangExt
+ template<> struct fmt::formatter<SrcLangExt> : formatter<std::string>
+ {
+- auto format(SrcLangExt lang, format_context& ctx) {
++ auto format(SrcLangExt lang, format_context& ctx) const {
+ std::string result="Unknown";
+ switch (lang)
+ {
+@@ -273,7 +273,7 @@ template<> struct fmt::formatter<SrcLangExt> : formatter<std::string>
+ //! adds support for formatting MemberType
+ template<> struct fmt::formatter<MemberType> : formatter<std::string>
+ {
+- auto format(MemberType mtype, format_context& ctx) {
++ auto format(MemberType mtype, format_context& ctx) const {
+ std::string result="Unknown";
+ switch (mtype)
+ {
+@@ -301,7 +301,7 @@ template<> struct fmt::formatter<MemberType> : formatter<std::string>
+ //! adds support for formatting TypeSpecifier
+ template<> struct fmt::formatter<TypeSpecifier> : formatter<std::string>
+ {
+- auto format(TypeSpecifier type, format_context& ctx) {
++ auto format(TypeSpecifier type, format_context& ctx) const {
+ return formatter<std::string>::format(type.to_string(),ctx);
+ }
+ };
+@@ -309,7 +309,7 @@ template<> struct fmt::formatter<TypeSpecifier> : formatter<std::string>
+ //! adds support for formatting EntryType
+ template<> struct fmt::formatter<EntryType> : formatter<std::string>
+ {
+- auto format(EntryType type, format_context& ctx) {
++ auto format(EntryType type, format_context& ctx) const {
+ return formatter<std::string>::format(type.to_string(),ctx);
+ }
+ };
+@@ -317,7 +317,7 @@ template<> struct fmt::formatter<EntryType> : formatter<std::string>
+ //! adds support for formatting MemberListType
+ template<> struct fmt::formatter<MemberListType> : formatter<std::string>
+ {
+- auto format(MemberListType type, format_context& ctx) {
++ auto format(MemberListType type, format_context& ctx) const {
+ return formatter<std::string>::format(type.to_string(),ctx);
+ }
+ };