Revert "QDoc: Clean anonymous type names in matching"
This reverts commit a1c5e8c1f5d7c2b4c2339b90337d14540d77f2ee.
Reason for revert:
Setting `AnonymousTagLocations = false` strips both file paths and type
keywords from anonymous type names, producing bare `(unnamed)` instead
of `(unnamed struct)`. This conflates two independent concerns:
path removal and keyword preservation. This makes it impossible to
stabilize type strings across LLVM versions without cascading expected
output changes.
The follow-up commit suppresses file paths at the printing policy
level and recovers the tag keyword from the AST, giving consistent
output regardless of LLVM version.
Task-number: QTBUG-144620
Change-Id: I85da60f57b11bcf8e8d173eb91f21110b36a24da
Reviewed-by: Topi Reinio <topi.reinio@qt.io>
| commit | 3471fb18ef4a4d040a2d681f3d504939b5d95f75 |
| parent | f2e56b6b07f2d9f0b03bd0ef89f7ed25c37708fb |
| author | Paul Wicking <paul.wicking@qt.io> |
| committer | Paul Wicking <paul.wicking@qt.io> |
| commit time | Fri, 20 Mar 2026 15:46:58 +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