================
@@ -196,9 +196,10 @@ Any occurrence of the moved variable that is not a 
reinitialization (see below)
 is considered to be a use.
 
 An exception to this are objects of type ``std::unique_ptr``,
-``std::shared_ptr`` and ``std::weak_ptr``, which have defined move behavior
-(objects of these classes are guaranteed to be empty after they have been moved
-from). Therefore, an object of these classes will only be considered to be used
+``std::shared_ptr``, ``std::weak_ptr``, ``std::optional``, and ``std::any``,
+which have defined move behavior (objects of these classes are guaranteed to be
+empty after they have been moved from).
----------------
5chmidti wrote:

The docs look fine now, but I found an issue with adding `std::optional` and 
`std::any` like this

https://github.com/llvm/llvm-project/pull/114255
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to