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

Boaz Brickner via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 18 06:23:29 PST 2024


================
@@ -3951,7 +3958,7 @@ The capturing entity ``X`` can be one of the following:
       std::set<std::string_view> s;
     };
 
-- 'global', 'unknown' (without quotes).
+- `global`, `unknown`.
----------------
bricknerb wrote:

Parameter names have enough constraints given local style guides and readability, so I'm not sure we want to add another constraint here.

`__global` makes sense to me.
I think it reduces the likelihood enough to make this a non-issue.
Probably worth doing in a separate PR.

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


More information about the cfe-commits mailing list