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>
This commit is contained in:
Volker Hilsheimer 2020-11-07 00:01:28 +01:00
parent 32e96667be
commit 1628e79a77
2 changed files with 7 additions and 7 deletions

View File

@ -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

View File

@ -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.