qt6-bb10/doc/global
Marc Mutz e1f46ee8ae Create qdoc macros for C++ class docs 1.2: member-swap(), simplified phrasing
We have some patterns for how to document certain functions, but we
also vary the sentences a lot, and you have to look up one
documentation piece and copy it, essentially. If we ever want to
change them, we end up with shotgun surgery.

So apply DRY to the documentation and start a collection of macros to
help with repetitive C++ class documentation tasks.

The first macro is for member-swap(), and this second patch is for
documentation that used the simplified phrasing ("Swaps this X with \a
other."), which this patch adopts as the text for \memberswap, too,
because it doesn't repeat the macro argument, making it easier to find a
grammatically-fitting argument than in the traditional phrasing.

This doesn't change the documentation, except as follows:

* standardizes on simpified instead of traditional phrasing for docs
  that already use the \memberswap macro
* adds the "very fast and never fails" blurb, if it was missing
* changes the function's argument name to `other`, as required by
  the macro.

Task-number: QTBUG-129573
Pick-to: 6.7 6.5 6.2
Change-Id: I1123e783ce0da76c5997ff74007d77504ac5b334
Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
(cherry picked from commit 5627e113793df3df24742d7af502a075c2c9e95d)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2024-11-12 13:09:02 +00:00
..
externalsites Doc: Fix broken links 2024-06-26 22:52:29 +00:00
includes Doc: Fix wrong markup in QStandardPaths::findExecutable 2023-11-29 18:20:06 +01:00
includes-online Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
snippets/code Change doc snippet license 2024-02-02 16:52:11 +00:00
template Docs: Broken layout on landing page (offline style) 2024-09-26 10:12:35 +00:00
compat.qdocconf Doc: Ignore QML/JavaScript parsing errors 2017-02-07 08:34:39 +00:00
config.qdocconf Doc: Update copyright year to 2024 2024-01-22 14:51:21 +00:00
cpp-doc-macros.qdocconf Create qdoc macros for C++ class docs 1.2: member-swap(), simplified phrasing 2024-11-12 13:09:02 +00:00
externalsites.qdocconf Doc: Do not include the external sites by default 2014-09-03 09:40:59 +02:00
fileextensions.qdocconf qdoc: Add *.webp as an default image suffix 2023-02-21 18:56:07 +00:00
grid.qdocconf Doc: Drop parentheses and fifth macro argument in offline '\grid' 2024-09-20 15:23:59 +00:00
html-config.qdocconf Adapt qdoc macros and documentation for DocBook 2022-11-04 18:39:03 +01:00
html-footer-online.qdocconf Doc: Update copyright year to 2024 2024-01-22 14:51:21 +00:00
html-footer.qdocconf Doc: Replace obsolete <acronym> with <abbr> html tags 2024-03-22 16:28:12 +01:00
html-header-offline.qdocconf Doc: Add CSS styling and icon for 'technical preview' items 2023-05-10 04:40:38 +00:00
html-header-online.qdocconf Doc: Add CSS styling and icon for 'technical preview' items 2023-05-10 04:40:38 +00:00
htmltabs.qdocconf Doc: Fix syntax in \tab macro example 2022-05-09 19:12:14 +02:00
macros-online.qdocconf Doc: Add DocBook version of youtube macro 2023-06-14 16:18:55 +02:00
macros.qdocconf Create qdoc macros for C++ class docs 1.1: member-swap(), traditional phrasing 2024-11-12 13:09:01 +00:00
manifest-meta.qdocconf Doc: Remove dead links to Concentric Circle Example 2024-01-09 18:54:46 +01:00
qt-cpp-defines.qdocconf Doc: Add convenience macros for specifying C++ type ordering information 2023-12-01 11:58:36 +00:00
qt-html-templates-offline-simple.qdocconf Fix typos in docs and comments 2022-06-15 21:31:02 +02:00
qt-html-templates-offline.qdocconf Doc: Add a dark offline CSS 2022-11-11 18:48:50 +02:00
qt-html-templates-online.qdocconf Merge remote-tracking branch 'origin/5.12' into 5.13 2019-05-09 13:06:11 +00:00
qt-module-defaults-offline.qdocconf doc/global: Remove references to Qt 5 in comments 2020-11-19 17:27:30 +01:00
qt-module-defaults-online-commercial.qdocconf Doc: Fix online macros for commercial template 2022-06-21 22:08:34 +00:00
qt-module-defaults-online.qdocconf Doc: Replace obsolete <acronym> with <abbr> html tags 2024-03-22 16:28:12 +01:00
qt-module-defaults.qdocconf doc/global: Remove references to Qt 5 in comments 2020-11-19 17:27:30 +01:00
warninglimit.qdocconf Doc: Move the warninglimit configuration to doc/global 2023-06-29 12:08:34 +00:00