QDoc: Clean anonymous type names in matching
Anonymous type names appear in function signatures when classes
contain unnamed structs or unions. The normalization that simplifies
these names during header parsing doesn't run during function
matching. This asymmetry causes silent matching failures when the
two paths produce different representations for the same type.
Both paths produce consistent type names. The normalization also
handles the simplified anonymous name format that recent Clang
versions produce.
Task-number: QTBUG-144620
Change-Id: I95e2b8ccee004b8769a3c13dbad446d1e32b50e5
Reviewed-by: Topi Reinio <topi.reinio@qt.io>
| commit | a1c5e8c1f5d7c2b4c2339b90337d14540d77f2ee |
| parent | e9a7754708d9146cca0828c53fe773ee8ae30a60 |
| author | Paul Wicking <paul.wicking@qt.io> |
| committer | Paul Wicking <paul.wicking@qt.io> |
| commit time | Thu, 12 Mar 2026 13:08:31 +0100 |
- M src/qdoc/qdoc/src/qdoc/clangcodeparser.cpp
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/privateheaders/expected/docbook/publicclass-privatedata.xml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/privateheaders/expected/html/privateheaders.index
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/privateheaders/expected/html/publicclass-privatedata-members.html
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/privateheaders/expected/html/publicclass-privatedata.html
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/privateheaders/expected/webxml/publicclass-privatedata-unnamed-union.webxml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/privateheaders/expected/webxml/publicclass-privatedata.webxml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/privateheaders/expected/webxml/publicclass.webxml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/unnamedstruct/expected/docbook/axisandangle.xml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/unnamedstruct/expected/html/axisandangle-members.html
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/unnamedstruct/expected/html/axisandangle.html
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/unnamedstruct/expected/html/unnamedstruct.index
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/unnamedstruct/expected/webxml/axisandangle.webxml