Devon Loehr
058c0059c8
Remove implicit this captures
...
When declaring a lambda with a value-capture default `[=, ...]`, the
this pointer is implicitly captured by value as well. This results
in potentially-unintuitive behavior and has been deprecated in C++20.
It produces a warning in newer versions of clang
(https://reviews.llvm.org/D142639 ).
Unfortunately, the preferred C++20 pattern `[=, this, ...]` is not compatible with previous C++ versions. To maintain compatibility with C++14, 17, and 20, this CL modifies all lambdas which capture `this` to explicitly capture all the necessary variables, with no capture-default.
Bug: chromium:351004963
Change-Id: I10c4a9669f340efba75a3e4016f0988a2d606d1d
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/357322
Reviewed-by: Artem Titov <titovartem@webrtc.org>
Reviewed-by: Taylor Brandstetter <deadbeef@webrtc.org>
Commit-Queue: Devon Loehr <dloehr@google.com>
Cr-Commit-Position: refs/heads/main@{#42886}
2024-08-29 19:30:52 +00:00
..
2024-02-23 23:57:11 +00:00
2024-08-27 08:27:20 +00:00
2022-12-06 12:09:23 +00:00
2024-05-23 15:09:46 +00:00
2021-07-22 14:00:26 +00:00
2024-05-23 15:09:46 +00:00
2024-08-26 15:56:43 +00:00
2024-08-29 19:30:52 +00:00
2024-08-13 15:28:34 +00:00
2024-08-26 11:11:43 +00:00
2024-07-29 07:17:14 +00:00
2024-08-22 10:37:00 +00:00
2024-05-23 15:09:46 +00:00
2022-04-22 14:07:19 +00:00
2021-11-15 21:44:59 +00:00
2020-06-04 09:55:12 +00:00
2024-08-16 14:34:37 +00:00
2023-01-31 11:58:43 +00:00
2023-01-31 11:58:43 +00:00
2022-05-22 10:54:38 +00:00
2024-07-29 07:17:14 +00:00
2024-07-29 07:17:14 +00:00
2024-03-13 11:08:37 +00:00
2023-02-15 17:26:07 +00:00
2023-04-13 13:59:46 +00:00
2023-04-13 13:59:46 +00:00
2024-04-30 08:47:29 +00:00
2021-07-06 10:39:00 +00:00
2023-08-15 13:20:21 +00:00
2023-08-15 13:20:21 +00:00
2021-05-21 04:34:11 +00:00
2022-05-13 08:52:15 +00:00
2024-04-17 12:53:30 +00:00
2024-04-17 12:53:30 +00:00
2022-10-24 09:12:30 +00:00
2022-10-24 09:12:30 +00:00
2024-03-13 11:08:37 +00:00
2023-08-30 10:38:35 +00:00
2024-07-03 12:27:55 +00:00
2024-07-03 12:27:55 +00:00
2024-07-02 14:15:52 +00:00
2024-04-16 08:43:09 +00:00
2024-03-13 11:08:37 +00:00
2024-03-13 11:08:37 +00:00
2023-08-30 10:38:35 +00:00
2024-04-12 07:42:48 +00:00
2024-04-16 08:43:09 +00:00
2024-04-12 07:42:48 +00:00
2022-04-08 18:15:35 +00:00
2022-04-08 18:15:35 +00:00
2020-07-08 12:21:08 +00:00
2021-07-27 12:50:31 +00:00
2023-04-13 13:59:46 +00:00
2024-08-01 14:38:52 +00:00
2024-07-24 09:30:22 +00:00
2022-10-07 14:30:31 +00:00
2023-02-17 13:20:32 +00:00
2023-02-27 14:19:04 +00:00
2024-03-13 11:08:37 +00:00
2022-10-07 14:30:31 +00:00
2024-08-16 14:34:37 +00:00
2024-04-30 11:15:05 +00:00
2024-04-30 11:15:05 +00:00
2023-08-15 13:20:21 +00:00
2023-08-15 13:20:21 +00:00
2023-06-21 17:46:33 +00:00
2023-03-25 21:35:23 +00:00
2024-03-13 11:08:37 +00:00
2024-06-07 09:47:26 +00:00
2024-08-16 14:34:37 +00:00
2020-05-15 08:15:02 +00:00
2024-07-11 13:15:01 +00:00
2024-02-07 09:47:16 +00:00
2023-08-15 13:20:21 +00:00
2023-08-15 13:20:21 +00:00
2023-08-15 13:20:21 +00:00
2023-12-13 16:10:11 +00:00
2023-08-15 13:20:21 +00:00
2023-08-15 13:20:21 +00:00
2021-07-26 13:35:08 +00:00
2024-08-01 16:17:09 +00:00
2024-04-23 12:28:46 +00:00
2023-01-03 11:22:17 +00:00
2023-01-03 11:22:17 +00:00
2023-10-10 08:59:10 +00:00
2024-01-19 10:04:54 +00:00
2022-08-25 13:01:34 +00:00
2022-08-25 13:01:34 +00:00
2022-10-24 09:12:30 +00:00
2022-10-24 09:12:30 +00:00
2023-10-10 08:59:10 +00:00
2023-10-10 08:59:10 +00:00
2024-05-08 10:15:10 +00:00
2020-08-11 11:46:50 +00:00
2022-11-22 11:03:33 +00:00
2023-06-21 17:46:33 +00:00
2023-06-21 17:46:33 +00:00
2023-03-25 21:35:23 +00:00
2023-06-21 17:46:33 +00:00
2021-07-27 12:50:31 +00:00
2024-06-03 20:19:56 +00:00
2024-07-30 18:17:27 +00:00
2024-05-14 11:36:42 +00:00
2024-02-23 13:09:44 +00:00
2024-03-18 18:51:47 +00:00
2024-03-18 18:51:47 +00:00
2023-09-20 09:25:32 +00:00