[clang-tools-extra] 08f7724 - [clang-tidy][doc] mention smart ptr in bugprone-unhandled-self-assignment.WarnOnlyIfThisHasSuspiciousField option (#121316)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Dec 30 13:11:16 PST 2024
Author: Congcong Cai
Date: 2024-12-31T05:11:13+08:00
New Revision: 08f77241c0d90737f1818b948978876a0822be32
URL: https://github.com/llvm/llvm-project/commit/08f77241c0d90737f1818b948978876a0822be32
DIFF: https://github.com/llvm/llvm-project/commit/08f77241c0d90737f1818b948978876a0822be32.diff
LOG: [clang-tidy][doc] mention smart ptr in bugprone-unhandled-self-assignment.WarnOnlyIfThisHasSuspiciousField option (#121316)
Added:
Modified:
clang-tools-extra/docs/clang-tidy/checks/bugprone/unhandled-self-assignment.rst
Removed:
################################################################################
diff --git a/clang-tools-extra/docs/clang-tidy/checks/bugprone/unhandled-self-assignment.rst b/clang-tools-extra/docs/clang-tidy/checks/bugprone/unhandled-self-assignment.rst
index dee139861c8cfe..d3cdd5a12fdca3 100644
--- a/clang-tools-extra/docs/clang-tidy/checks/bugprone/unhandled-self-assignment.rst
+++ b/clang-tools-extra/docs/clang-tidy/checks/bugprone/unhandled-self-assignment.rst
@@ -120,5 +120,7 @@ temporary object into ``this`` (needs a move assignment operator):
.. option:: WarnOnlyIfThisHasSuspiciousField
- When `true`, the check will warn only if the container class of the copy assignment operator
- has any suspicious fields (pointer or C array). This option is set to `true` by default.
+ When `true`, the check will warn only if the container class of the copy
+ assignment operator has any suspicious fields (pointer, C array and C++ smart
+ pointer).
+ This option is set to `true` by default.
More information about the cfe-commits
mailing list