[clang-tools-extra] [clang-tidy][doc] mention smart ptr in bugprone-unhandled-self-assignment.WarnOnlyIfThisHasSuspiciousField option (PR #121316)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Dec 29 19:07:59 PST 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang-tidy
Author: Congcong Cai (HerrCai0907)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/121316.diff
1 Files Affected:
- (modified) clang-tools-extra/docs/clang-tidy/checks/bugprone/unhandled-self-assignment.rst (+4-2)
``````````diff
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.
``````````
</details>
https://github.com/llvm/llvm-project/pull/121316
More information about the cfe-commits
mailing list