[clang-tools-extra] [clang-tidy][NFC][doc] Improve documentation for modernize-use-equals… (PR #65231)
Piotr Zegar via cfe-commits
cfe-commits at lists.llvm.org
Sun Sep 3 12:14:51 PDT 2023
Carlos =?utf-8?q?Gálvez?= <carlos.galvez at zenseact.com>,
Carlos =?utf-8?q?Gálvez?= <carlos.galvez at zenseact.com>,
Carlos =?utf-8?q?Gálvez?= <carlos.galvez at zenseact.com>,
Carlos =?utf-8?q?Gálvez?= <carlos.galvez at zenseact.com>,
Carlos =?utf-8?q?Gálvez?= <carlos.galvez at zenseact.com>
================
@@ -13,22 +13,9 @@
namespace clang::tidy::modernize {
-/// Mark unimplemented private special member functions with '= delete'.
-/// \code
-/// struct A {
-/// private:
-/// A(const A&);
-/// A& operator=(const A&);
-/// };
-/// \endcode
-/// Is converted to:
-/// \code
-/// struct A {
-/// private:
-/// A(const A&) = delete;
-/// A& operator=(const A&) = delete;
-/// };
-/// \endcode
+/// Identifies unimplemented private special member functions, and recommends
+/// using ``= delete`` for them, as well as relocating them from the ``private``
+/// to the ``public`` section.
----------------
PiotrZSL wrote:
looks like check currently does not limit private -> public to only special member functions, in such case we could write:
`as well as relocating deleted functions from the ``private`` to the ``public`` section.`
https://github.com/llvm/llvm-project/pull/65231
More information about the cfe-commits
mailing list