From: Vladimír Vondruš Date: Sat, 14 Sep 2024 00:21:06 +0000 (+0200) Subject: documentation/doxygen: use a type with known stable hash in a test. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=70ef45865ff253311158a75ea96b261db7aa3f43;p=blog.git 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. --- 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'),