From 70ef45865ff253311158a75ea96b261db7aa3f43 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sat, 14 Sep 2024 02:21:06 +0200 Subject: [PATCH] documentation/doxygen: use a type with known stable hash in a test. Because every const, < or > matters with this thing. Every new release is different hashes, FFS. This handcrafted name fortunately has the same URL hash in both 1.8.16 and 1.12. --- .../test_doxygen/search_long_suffix_length/File.h | 8 +++----- documentation/test_doxygen/test_search.py | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/documentation/test_doxygen/search_long_suffix_length/File.h b/documentation/test_doxygen/search_long_suffix_length/File.h index 8326f7cb..fd7b6b0f 100644 --- a/documentation/test_doxygen/search_long_suffix_length/File.h +++ b/documentation/test_doxygen/search_long_suffix_length/File.h @@ -1,10 +1,8 @@ -#include -#include -#include - /** @file * @brief A file */ +typedef int ThisIsALongTypeForWhichIWantDoxygenToCalculateTheSameHashAlways; + /** @brief One fun function */ -bool aVeryLongFunctionName(const std::reference_wrapper>& a, const std::reference_wrapper>& b, const std::reference_wrapper>& c, const std::reference_wrapper>& d, const std::reference_wrapper>& e, const std::reference_wrapper>& f, const std::reference_wrapper>& g); +bool aVeryLongFunctionName(ThisIsALongTypeForWhichIWantDoxygenToCalculateTheSameHashAlways a, ThisIsALongTypeForWhichIWantDoxygenToCalculateTheSameHashAlways b, ThisIsALongTypeForWhichIWantDoxygenToCalculateTheSameHashAlways c, ThisIsALongTypeForWhichIWantDoxygenToCalculateTheSameHashAlways d, ThisIsALongTypeForWhichIWantDoxygenToCalculateTheSameHashAlways e, ThisIsALongTypeForWhichIWantDoxygenToCalculateTheSameHashAlways f, ThisIsALongTypeForWhichIWantDoxygenToCalculateTheSameHashAlways g); diff --git a/documentation/test_doxygen/test_search.py b/documentation/test_doxygen/test_search.py index 7807ab2e..2d988e8e 100755 --- a/documentation/test_doxygen/test_search.py +++ b/documentation/test_doxygen/test_search.py @@ -262,7 +262,7 @@ file.h [2] averylongfunctionname [0] | ($ | ) [1] -0: ::aVeryLongFunctionName(const std::reference_wrapper #a1e9a11887275938ef5541070955c9d9c +0: ::aVeryLongFunctionName(ThisIsALongTypeForWhichIWantDoxygenToCalculateTh…) [prefix=2[:12], suffix_length=53, type=FUNC] -> #a59c56fdef398e152efce8bc46793d455 1: [prefix=0[:46], suffix_length=51, type=FUNC] -> 2: File.h [type=FILE] -> File_8h.html (EntryType.PAGE, CssClass.SUCCESS, 'page'), -- 2.30.2