Utkarsh Saxena
c22bb6f5b1
[clang] Implement lifetime analysis for lifetime_capture_by(X) ( #115921 )
...
This PR uses the existing lifetime analysis for the `capture_by`
attribute.
The analysis is behind `-Wdangling-capture` warning and is disabled by
default for now. Once it is found to be stable, it will be default
enabled.
Planned followup:
- add implicit inference of this attribute on STL container methods like
`std::vector::push_back`.
- (consider) warning if capturing `X` cannot capture anything. It should
be a reference, pointer or a view type.
- refactoring temporary visitors and other related handlers.
- start discussing `__global` vs `global` in the annotation in a
separate PR.
---------
Co-authored-by: Boaz Brickner <brickner@google.com >
2024-11-20 15:17:00 +01:00
..
2024-11-18 15:59:48 -08:00
2024-11-20 15:17:00 +01:00
2024-11-20 15:17:00 +01:00
2024-10-03 02:14:51 +02:00
2024-11-16 07:37:33 -08:00
2024-11-16 07:37:33 -08:00
2024-11-19 10:33:54 -08:00
2024-11-20 08:59:43 +01:00
2024-08-29 12:37:56 +08:00
2024-05-20 09:37:53 +02:00
2024-11-16 07:37:33 -08:00
2024-06-06 07:29:26 -05:00
2024-11-16 07:37:33 -08:00
2024-11-16 07:37:33 -08:00
2024-11-16 07:37:33 -08:00
2024-10-31 02:19:20 -07:00
2024-11-16 07:37:33 -08:00
2024-11-15 06:58:36 -06:00
2024-11-16 07:37:33 -08:00
2024-11-15 08:04:08 +01:00
2024-06-05 09:46:37 +04:00
2024-09-18 11:46:25 -04:00
2024-08-06 10:04:25 -07:00
2024-06-05 09:46:37 +04:00
2024-11-16 07:37:33 -08:00
2024-11-20 15:17:00 +01:00
2024-11-16 07:37:33 -08:00
2024-11-16 07:37:33 -08:00
2024-11-16 07:37:33 -08:00
2024-11-16 07:37:33 -08:00
2024-11-16 07:37:33 -08:00
2024-11-19 10:38:49 +01:00
2024-11-19 13:14:45 -08:00
2024-11-16 07:37:33 -08:00
2024-11-16 07:37:33 -08:00
2024-11-16 07:37:33 -08:00
2024-11-20 15:17:00 +01:00
2024-11-15 06:58:36 -06:00
2024-11-16 07:37:33 -08:00
2024-11-16 07:37:33 -08:00
2024-11-15 06:58:36 -06:00
2024-11-18 16:04:10 -08:00
2024-05-30 19:59:59 +04:00
2024-11-14 23:34:07 -08:00
2024-11-20 15:17:00 +01:00
2024-11-18 16:04:10 -08:00
2024-11-16 07:37:33 -08:00
2024-05-30 19:59:59 +04:00
2024-06-05 09:46:37 +04:00
2024-08-17 14:57:59 +03:00
2024-11-16 07:37:33 -08:00
2024-06-05 09:46:37 +04:00
2024-05-30 19:59:59 +04:00
2024-11-15 06:58:36 -06:00
2024-11-16 07:37:33 -08:00
2024-11-14 11:18:06 -08:00
2024-06-27 18:57:34 +04:00
2024-11-16 07:37:33 -08:00
2024-11-20 15:17:00 +01:00
2024-08-17 14:57:59 +03:00
2024-11-16 07:37:33 -08:00
2024-11-11 09:50:38 +08:00
2024-11-19 11:04:53 +01:00
2024-11-16 07:37:33 -08:00
2024-11-16 07:37:33 -08:00
2024-10-31 11:15:22 +00:00
2024-11-16 07:37:33 -08:00
2024-05-30 19:59:59 +04:00
2024-11-16 07:37:33 -08:00
2024-11-15 06:58:36 -06:00
2024-11-16 07:37:33 -08:00
2024-11-16 07:37:33 -08:00
2024-11-16 07:37:33 -08:00
2024-11-15 08:04:08 +01:00
2024-11-19 10:37:38 +01:00
2024-05-30 19:59:59 +04:00
2024-11-14 13:51:04 +08:00
2024-11-12 09:26:25 -08:00