diff options
author | Paul Wicking <paul.wicking@qt.io> | 2023-04-14 11:03:24 +0200 |
---|---|---|
committer | Paul Wicking <paul.wicking@qt.io> | 2023-04-28 11:03:50 +0200 |
commit | 3d814edf5710367bd1e281521a1a1d232d83eef1 (patch) | |
tree | 31189ff6c7d5dfd2622cbf6ad85ff504628c4462 /src/qdoc/CMakeLists.txt | |
parent | 94cbc12507c1a74df25160acf04ca4fd6db9bc25 (diff) | |
download | qttools-3d814edf5710367bd1e281521a1a1d232d83eef1.tar.gz |
QDoc: Extract method from DocParser::insertTarget
`DocParser::insertTarget` has a conditional check at the start of the
method, that, if satisfied, causes QDoc to generate a warning. The rest
of the method is contained in the else block that follows.
This patch extracts a method, `DocParser::warnAboutPreexistingTarget`,
that is responsible for issuing that warning, and modifies
`DocParser::insertTarget` to return early if the condition is
satisfied. This allows further refactoring of the latter method.
The new method is fully documented. As this new method impacts the
documentation for QDoc warnings, that is also modified in this patch.
Task-number: QTBUG-113126
Change-Id: Iba54e67862555fba71ec774261e0e0fbea638238
Reviewed-by: Topi Reiniƶ <topi.reinio@qt.io>
Diffstat (limited to 'src/qdoc/CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions