QDoc: Render SFINAE constraints as requires clauses


Qt's public API uses SFINAE-based type constraints on template
functions, expressed as unnamed non-type template parameters with
enable_if_t defaults. These appear in documentation as cryptic
boolean parameters that convey no meaning to readers. A signature
such as `template <typename T, if_integral<T> = true>` leaves
readers guessing what the constraint means and why the parameter
exists.

QDoc detects these SFINAE patterns and presents them as readable
requires clauses in the rendered signature. The opaque parameters
are replaced with `requires if_integral<T>`, giving documentation
readers immediate visibility into the type constraints that govern
API availability. When a function also carries an explicit requires
clause, the synthesized and explicit constraints are combined.
Namespace qualification is preserved so that aliases from different
scopes render unambiguously. End-to-end tests validate the rendering
across all three output formats.

[ChangeLog][QDoc] Functions using enable_if-based SFINAE constraints
now display requires clauses in the documentation output.

Fixes: QTBUG-145067
Change-Id: Iaff0469063fda0c70a6268fcf368249d209a5db9
Reviewed-by: Topi Reinio <topi.reinio@qt.io>
commitf2e56b6b07f2d9f0b03bd0ef89f7ed25c37708fb
parent2f9de2b3e613fb3f2782f0ae1c6bc61ae14b73d6
authorPaul Wicking <paul.wicking@qt.io>
committerPaul Wicking <paul.wicking@qt.io>
commit timeFri, 20 Mar 2026 09:30:05 +0100