[clang] [llvm] [clang] Implement lifetime analysis for lifetime_capture_by(X) (PR #115921)

Utkarsh Saxena via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 20 03:56:33 PST 2024


================
@@ -3922,16 +3922,41 @@ def LifetimeCaptureByDocs : Documentation {
   let Category = DocCatFunction;
   let Content = [{
     Similar to `lifetimebound`_, the ``lifetime_capture_by(X)`` attribute on a function
-parameter or implicit object parameter indicates that that objects that are referred to
-by that parameter may also be referred to by the capturing entity ``X``.
+parameter or implicit object parameter indicates that the capturing entity
+``X`` may refer to the object referred by that parameter.
----------------
usx95 wrote:

The ``X``  didn't fit in 80 lines. Reformatted the para.

https://github.com/llvm/llvm-project/pull/115921


More information about the cfe-commits mailing list