https://github.com/HerrCai0907 created https://github.com/llvm/llvm-project/pull/121316
None >From 4cbe19c9acedd68dccc4f7211b1d2f8e93e1492c Mon Sep 17 00:00:00 2001 From: Congcong Cai <congcongcai0...@163.com> Date: Mon, 30 Dec 2024 11:06:59 +0800 Subject: [PATCH] [clang-tidy][doc] mention smart ptr in bugprone-unhandled-self-assignment.WarnOnlyIfThisHasSuspiciousField option --- .../checks/bugprone/unhandled-self-assignment.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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. _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits