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
..
2023-06-09 14:14:12 +00:00
2024-05-16 10:39:10 +00:00
2024-08-27 08:17:32 +00:00
2023-11-13 13:23:04 +00:00
2024-04-25 07:54:28 +00:00
2024-04-25 07:54:28 +00:00
2022-06-15 09:47:38 +00:00
2023-11-13 13:23:04 +00:00
2024-08-29 12:26:17 +00:00
2023-06-29 09:32:04 +00:00
2024-08-27 14:16:53 +00:00
2024-04-29 16:24:51 +00:00
2023-10-30 14:43:46 +00:00
2024-06-07 06:41:51 +00:00
2024-06-07 09:47:26 +00:00
2024-07-30 15:07:25 +00:00
2024-07-30 15:07:25 +00:00
2024-07-30 15:07:25 +00:00
2024-06-07 06:41:51 +00:00
2024-07-30 15:07:25 +00:00
2021-04-19 19:32:23 +00:00
2023-05-03 11:09:26 +00:00
2023-03-12 17:28:14 +00:00
2023-09-05 11:37:32 +00:00
2023-08-22 13:48:09 +00:00
2024-02-08 14:34:04 +00:00
2022-06-15 09:47:38 +00:00
2023-12-14 21:01:04 +00:00
2023-12-14 21:01:04 +00:00
2022-08-03 14:16:35 +00:00
2022-09-09 10:44:17 +00:00
2022-09-09 10:44:17 +00:00
2021-07-30 22:13:59 +00:00
2024-07-23 17:23:45 +00:00
2023-11-13 13:23:04 +00:00
2023-04-21 11:19:37 +00:00
2022-10-12 11:23:22 +00:00
2023-11-13 13:23:04 +00:00
2021-02-10 15:04:55 +00:00
2022-03-10 18:36:43 +00:00
2022-02-24 11:05:06 +00:00
2023-03-24 07:44:18 +00:00
2023-03-24 07:44:18 +00:00
2022-02-24 11:05:06 +00:00
2024-06-07 06:41:51 +00:00
2024-01-22 18:27:38 +00:00
2024-08-26 17:24:15 +00:00
2023-03-24 07:44:18 +00:00
2024-08-26 11:11:43 +00:00
2024-08-29 19:30:52 +00:00
2024-08-26 17:24:15 +00:00
2024-08-26 11:11:43 +00:00
2024-08-26 11:11:43 +00:00
2024-08-26 17:24:15 +00:00
2022-11-14 12:10:06 +00:00
2024-04-20 07:02:50 +00:00
2024-04-20 07:02:50 +00:00
2024-01-19 15:37:32 +00:00
2022-06-15 09:47:38 +00:00
2024-07-29 07:17:14 +00:00
2022-05-30 13:05:03 +00:00
2021-11-02 11:51:31 +00:00
2024-08-26 05:39:55 +00:00
2024-07-16 09:21:06 +00:00
2024-05-08 15:07:53 +00:00
2022-04-20 13:18:33 +00:00
2022-04-20 13:18:33 +00:00
2022-04-21 12:32:17 +00:00
2022-02-15 21:55:59 +00:00
2023-11-13 13:23:04 +00:00
2022-06-15 09:47:38 +00:00
2022-04-21 12:32:17 +00:00
2023-01-30 20:09:07 +00:00
2024-08-26 17:24:15 +00:00
2024-08-26 17:24:15 +00:00
2024-08-26 17:24:15 +00:00
2023-03-22 09:10:27 +00:00
2024-04-22 08:56:31 +00:00
2024-04-22 08:56:31 +00:00
2023-11-03 12:32:14 +00:00
2024-08-29 12:26:17 +00:00
2024-08-16 14:34:37 +00:00
2023-11-13 13:23:04 +00:00
2024-04-22 08:56:31 +00:00
2024-07-29 07:17:14 +00:00
2024-07-29 07:17:14 +00:00
2024-03-19 10:25:18 +00:00
2023-12-07 21:46:56 +00:00
2023-12-05 15:44:43 +00:00
2024-04-22 08:56:31 +00:00
2024-08-27 08:17:32 +00:00
2024-08-26 11:11:43 +00:00
2024-08-26 11:11:43 +00:00
2024-04-22 08:56:31 +00:00
2024-06-07 09:47:26 +00:00
2022-11-11 10:29:25 +00:00
2022-11-11 10:29:25 +00:00
2024-06-18 08:04:03 +00:00
2024-06-07 06:41:51 +00:00
2024-04-22 08:56:31 +00:00
2024-04-22 08:56:31 +00:00
2024-07-09 10:30:26 +00:00
2024-06-07 06:41:51 +00:00
2023-11-13 13:23:04 +00:00
2023-02-10 12:24:47 +00:00
2024-08-26 11:11:43 +00:00
2024-08-26 11:11:43 +00:00
2024-06-07 09:47:26 +00:00
2024-06-07 09:47:26 +00:00
2022-12-14 11:00:17 +00:00
2022-12-14 11:00:17 +00:00
2024-06-18 08:05:28 +00:00
2024-06-18 08:05:28 +00:00
2024-06-07 09:47:26 +00:00
2024-06-18 08:05:28 +00:00
2023-11-13 13:23:04 +00:00
2024-01-25 21:56:08 +00:00
2021-07-30 22:13:59 +00:00
2021-08-11 21:50:08 +00:00
2021-11-15 21:44:59 +00:00
2024-07-03 12:27:55 +00:00
2024-04-29 16:24:51 +00:00
2023-06-15 15:53:29 +00:00
2023-06-15 15:53:29 +00:00
2024-06-05 08:59:49 +00:00
2024-06-05 08:59:49 +00:00
2024-06-05 08:59:49 +00:00
2024-04-25 07:54:28 +00:00
2024-06-05 08:59:49 +00:00
2024-06-07 06:41:51 +00:00
2024-04-25 07:54:28 +00:00
2024-01-26 06:08:28 +00:00
2024-06-05 08:59:49 +00:00
2023-11-13 13:23:04 +00:00
2024-06-07 06:41:51 +00:00
2023-08-28 12:36:39 +00:00
2023-11-13 13:23:04 +00:00
2024-08-27 14:16:53 +00:00
2024-08-27 14:16:53 +00:00
2024-08-27 14:16:53 +00:00
2024-07-30 15:07:25 +00:00
2024-07-30 15:07:25 +00:00
2024-07-30 15:07:25 +00:00
2024-07-30 15:07:25 +00:00
2024-07-30 15:07:25 +00:00
2024-07-30 15:07:25 +00:00
2024-07-30 15:07:25 +00:00
2024-07-30 15:07:25 +00:00
2024-05-27 12:51:11 +00:00
2024-06-07 06:41:51 +00:00
2024-06-05 08:59:49 +00:00
2020-10-26 10:22:46 +00:00
2022-02-24 11:05:06 +00:00
2021-01-29 16:14:10 +00:00
2022-02-24 11:05:06 +00:00
2023-05-03 11:09:26 +00:00
2024-02-08 14:34:04 +00:00
2022-01-25 08:25:50 +00:00
2022-01-25 08:25:50 +00:00
2023-09-18 10:09:02 +00:00
2023-09-18 10:09:02 +00:00
2023-09-18 10:09:02 +00:00
2023-11-23 10:40:56 +00:00
2024-08-19 05:17:18 +00:00
2023-11-08 10:24:10 +00:00
2023-11-08 10:24:10 +00:00
2024-07-08 15:33:47 +00:00
2024-08-27 14:16:53 +00:00
2024-02-27 17:46:18 +00:00
2022-04-20 13:18:33 +00:00
2023-05-24 12:26:56 +00:00
2023-05-24 12:26:56 +00:00
2023-05-24 12:26:56 +00:00
2022-05-02 18:07:24 +00:00
2022-05-02 18:07:24 +00:00
2023-10-06 12:25:37 +00:00
2020-10-09 08:29:45 +00:00
2021-07-30 22:13:59 +00:00
2024-02-08 12:52:58 +00:00
2024-02-08 12:52:58 +00:00
2023-11-13 13:23:04 +00:00
2024-04-25 07:54:28 +00:00
2024-04-25 07:54:28 +00:00
2023-11-13 13:23:04 +00:00
2023-03-24 07:44:18 +00:00
2023-03-24 07:44:18 +00:00
2022-03-18 16:17:24 +00:00
2023-11-13 13:23:04 +00:00
2023-03-24 07:44:18 +00:00
2023-03-24 07:44:18 +00:00
2022-06-15 09:47:38 +00:00
2022-09-09 10:44:17 +00:00
2023-11-13 13:23:04 +00:00
2024-05-16 10:22:23 +00:00
2024-06-07 06:41:51 +00:00
2024-05-16 10:22:23 +00:00
2024-02-08 14:34:04 +00:00
2024-02-08 14:34:04 +00:00