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.


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to