QDoc: Fix synopsis rendering for inside-out declarators
Parameters with inside-out declarator syntax, such as references
to arrays or pointers to functions, display incorrectly in HTML
and DocBook output. The parameter name appears appended after the
full type string instead of embedded within it, producing
malformed signatures that don't match valid C++ syntax.
The insertion point logic from Parameter::signature() is exposed
as Parameter::nameInsertionPoint() so that all output generators
can split the type string and place the marked-up name correctly.
Fixes: QTBUG-111970
Change-Id: I10f752333b31620ede96e8eced9a14f4d935fbed
Reviewed-by: Topi Reinio <topi.reinio@qt.io>
| commit | 2b9082b0a31d8969fa66fbc878e3a375d05c2649 |
| parent | b66bd26c9dd8d787eade96dfac7d39459b6de14d |
| author | Paul Wicking <paul.wicking@qt.io> |
| committer | Paul Wicking <paul.wicking@qt.io> |
| commit time | Tue, 24 Mar 2026 18:35:32 +0100 |
- M src/qdoc/qdoc/src/qdoc/cppcodemarker.cpp
- M src/qdoc/qdoc/src/qdoc/docbookgenerator.cpp
- M src/qdoc/qdoc/src/qdoc/parameter.cpp
- M src/qdoc/qdoc/src/qdoc/parameter.h
- M src/qdoc/qdoc/tests/qdoc/parameters/catch_parameter.cpp
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/templatedcallables/expected/docbook/templated-callables-h.xml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/templatedcallables/expected/html/templated-callables-h.html