QDoc: Move pure text helpers into QDocLib
The Utilities namespace bundles a mix of helpers that touch driver
types such as Node, Tree, and Config with a smaller set that is
purely string manipulation. Because the two share a translation unit,
the dep-free helpers inherit the driver-layer dependencies of the
entire file, so components resident in QDocLib cannot use them
without dragging the whole driver along. That leaves code in the
library reinventing list punctuation, HTML escaping, and filename
sanitization it would otherwise get for free.
The pure text helpers move into a new TextUtils namespace shipped by
QDocLib; Utilities keeps the helpers that genuinely depend on the
driver. Callsites across the existing generators switch to the new
namespace. The move is mechanical and no helper's API changes, so
rendered output stays byte-identical across every generator and
every test scenario.
Task-number: QTBUG-145963
Change-Id: Ib1f846e0564089772bc2787ec77db119d046e066
Reviewed-by: Topi Reinio <topi.reinio@qt.io>
| commit | 2f47db763fb0622b4b98cc7c2c6ba6d270442567 |
| parent | 2f84a0b134bf66157a2ebd4ff7c3c51adfdfa9a6 |
| author | Paul Wicking <paul.wicking@qt.io> |
| committer | Paul Wicking <paul.wicking@qt.io> |
| commit time | Thu, 23 Apr 2026 19:27:26 +0000 |
- M src/qdoc/qdoc/CMakeLists.txt
- M src/qdoc/qdoc/src/qdoc/codemarker.cpp
- M src/qdoc/qdoc/src/qdoc/cppcodeparser.h
- M src/qdoc/qdoc/src/qdoc/docbookgenerator.cpp
- M src/qdoc/qdoc/src/qdoc/filebase.cpp
- M src/qdoc/qdoc/src/qdoc/generator.cpp
- M src/qdoc/qdoc/src/qdoc/htmlgenerator.cpp
- M src/qdoc/qdoc/src/qdoc/ir/member.cpp
- M src/qdoc/qdoc/src/qdoc/nodeextractor.cpp
- M src/qdoc/qdoc/src/qdoc/qdocindexfiles.cpp
- M src/qdoc/qdoc/src/qdoc/qmlmarkupvisitor.cpp
- A src/qdoc/qdoc/src/qdoc/textutils.cpp
- A src/qdoc/qdoc/src/qdoc/textutils.h
- M src/qdoc/qdoc/src/qdoc/tree.cpp
- M src/qdoc/qdoc/src/qdoc/utilities.cpp
- M src/qdoc/qdoc/src/qdoc/utilities.h
- M src/qdoc/qdoc/src/qdoc/webxmlgenerator.cpp
- M src/qdoc/qdoc/tests/config/CMakeLists.txt
- M src/qdoc/qdoc/tests/qdoc/CMakeLists.txt
- M src/qdoc/qdoc/tests/qdoccommandlineparser/CMakeLists.txt
- M src/qdoc/qdoc/tests/utilities/CMakeLists.txt
- M src/qdoc/qdoc/tests/utilities/tst_utilities.cpp