diff options
author | Topi Reinio <topi.reinio@qt.io> | 2020-05-13 16:37:29 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypickbot@codereview.qt-project.org> | 2020-05-14 10:29:44 +0000 |
commit | ef0ea4f2cfa3dbcf2f3347a661670b38eeea2106 (patch) | |
tree | 55d0a1015d0d1bf4a4234b6615c12d55a70e0fb1 /tests/auto/qdoc/generatedoutput/testdata | |
parent | 62999f3f6d432de97f0aedaffeb54596a6544aae (diff) |
qdoc: QML parser: Fix parsing of function parameters
The parameter name was passed incorrectly as the default value, and
the default value was not retrieved.
Fixes: QTBUG-84089
Change-Id: I9f35702b431da3e58a8cb422f0b41475dd99f604
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
(cherry picked from commit 5364f88463bca65cd7ba1a1f48f6c444586957eb)
Reviewed-by: Qt Cherry-pick Bot
Diffstat (limited to 'tests/auto/qdoc/generatedoutput/testdata')
-rw-r--r-- | tests/auto/qdoc/generatedoutput/testdata/qml/DocTest.qml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/auto/qdoc/generatedoutput/testdata/qml/DocTest.qml b/tests/auto/qdoc/generatedoutput/testdata/qml/DocTest.qml index 2e581335e..f9eeb49d1 100644 --- a/tests/auto/qdoc/generatedoutput/testdata/qml/DocTest.qml +++ b/tests/auto/qdoc/generatedoutput/testdata/qml/DocTest.qml @@ -92,4 +92,14 @@ Item { if (msg === undefined) msg = ""; } + + /*! + \brief Fails the current test case, hard. + \list + \li Prints out \a msg. + \li Accepts a random \a option. + \endlist + */ + function fail_hard(msg = "facepalm", option = 123) { + } } |