summaryrefslogtreecommitdiff
path: root/src/qdoc/CMakeLists.txt
diff options
context:
space:
mode:
authorPaul Wicking <paul.wicking@qt.io>2023-04-14 11:03:24 +0200
committerPaul Wicking <paul.wicking@qt.io>2023-04-28 11:03:50 +0200
commit3d814edf5710367bd1e281521a1a1d232d83eef1 (patch)
tree31189ff6c7d5dfd2622cbf6ad85ff504628c4462 /src/qdoc/CMakeLists.txt
parent94cbc12507c1a74df25160acf04ca4fd6db9bc25 (diff)
downloadqttools-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