summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTopi Reinio <topi.reinio@qt.io>2023-01-03 20:48:04 +0000
committerTopi Reiniƶ <topi.reinio@qt.io>2023-01-05 12:18:25 +0000
commit03af089b10e510f2e7eec4776cf9b126d520f901 (patch)
tree3e6afee941ba19dafce54c193a69478cafd34546 /tests
parentf95c699b4896dd1d790cf2367437b6ceb811ccf3 (diff)
downloadqttools-03af089b10e510f2e7eec4776cf9b126d520f901.tar.gz
qdoc: Allow snippet marker comments to be indented
Snippet marker tags must follow a QDoc-style comment sequence '//!' - but there's no need to require these comments to start from the beginning of the line. Allow whitespace to appear before the comment by trimming the line before comparison. Pick-to: 6.5 6.4 6.2 Fixes: QTBUG-109735 Change-Id: I23e5703bdf518ecf8511075a295b3c404704a065 Reviewed-by: Paul Wicking <paul.wicking@qt.io> Reviewed-by: Luca Di Sera <luca.disera@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qdoc/generatedoutput/testdata/includefromexampledirs/excludes/parentinclude.qdoc5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/auto/qdoc/generatedoutput/testdata/includefromexampledirs/excludes/parentinclude.qdoc b/tests/auto/qdoc/generatedoutput/testdata/includefromexampledirs/excludes/parentinclude.qdoc
index 1cc47fd56..04007ac12 100644
--- a/tests/auto/qdoc/generatedoutput/testdata/includefromexampledirs/excludes/parentinclude.qdoc
+++ b/tests/auto/qdoc/generatedoutput/testdata/includefromexampledirs/excludes/parentinclude.qdoc
@@ -12,11 +12,12 @@
*/
/*!
-//! children-qmlproperty
+ //! --- Observe the indented snippet tag:
+ //! children-qmlproperty
\qmlproperty list<Child> AbstractParent::children
\qmldefault
\brief Children of the type.
-//! children-qmlproperty
+ //! children-qmlproperty
*/
/*!