summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2020-11-07 00:01:28 +0100
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2020-11-09 07:21:34 +0100
commit1628e79a7764eb9a0db42a302e522188e429c41b (patch)
treee9cf49587310e0e5cf344a01c4a86422c197a247
parent32e96667beb904ae756e01494105090e73d4d782 (diff)
Fix QAnyStringView comparison documentation
qdoc's clang knows about spaceship operator, but we still need to document the regular ones. Also add missing return types. Change-Id: If382ac2f51a49c9adbe4a99025403a3e8332fabd Reviewed-by: Paul Wicking <paul.wicking@qt.io>
-rw-r--r--src/corelib/text/qanystringview.h2
-rw-r--r--src/corelib/text/qanystringview.qdoc12
2 files changed, 7 insertions, 7 deletions
diff --git a/src/corelib/text/qanystringview.h b/src/corelib/text/qanystringview.h
index c073eda3b6..a760625344 100644
--- a/src/corelib/text/qanystringview.h
+++ b/src/corelib/text/qanystringview.h
@@ -229,7 +229,7 @@ private:
[[nodiscard]] friend inline bool operator!=(QAnyStringView lhs, QAnyStringView rhs) noexcept
{ return !QAnyStringView::equal(lhs, rhs); }
-#ifdef __cpp_impl_three_way_comparison
+#if defined(__cpp_impl_three_way_comparison) && !defined(Q_QDOC)
[[nodiscard]] friend inline auto operator<=>(QAnyStringView lhs, QAnyStringView rhs) noexcept
{ return QAnyStringView::compare(lhs, rhs) <=> 0; }
#else
diff --git a/src/corelib/text/qanystringview.qdoc b/src/corelib/text/qanystringview.qdoc
index baec2f89b5..c1a1681695 100644
--- a/src/corelib/text/qanystringview.qdoc
+++ b/src/corelib/text/qanystringview.qdoc
@@ -374,12 +374,12 @@
*/
/*!
- \fn QAnyStringView::operator==(QAnyStringView lhs, QAnyStringView rhs)
- \fn QAnyStringView::operator!=(QAnyStringView lhs, QAnyStringView rhs)
- \fn QAnyStringView::operator<=(QAnyStringView lhs, QAnyStringView rhs)
- \fn QAnyStringView::operator>=(QAnyStringView lhs, QAnyStringView rhs)
- \fn QAnyStringView::operator<(QAnyStringView lhs, QAnyStringView rhs)
- \fn QAnyStringView::operator>(QAnyStringView lhs, QAnyStringView rhs)
+ \fn bool QAnyStringView::operator==(QAnyStringView lhs, QAnyStringView rhs)
+ \fn bool QAnyStringView::operator!=(QAnyStringView lhs, QAnyStringView rhs)
+ \fn bool QAnyStringView::operator<=(QAnyStringView lhs, QAnyStringView rhs)
+ \fn bool QAnyStringView::operator>=(QAnyStringView lhs, QAnyStringView rhs)
+ \fn bool QAnyStringView::operator<(QAnyStringView lhs, QAnyStringView rhs)
+ \fn bool QAnyStringView::operator>(QAnyStringView lhs, QAnyStringView rhs)
Operators that compare \a lhs to \a rhs.