Mirko Bonadei
25ab3228f3
Replace assert() with RTC_DCHECK().
...
CL partially auto-generated with:
git grep -l "\bassert(" | grep "\.[c|h]" | \
xargs sed -i 's/\bassert(/RTC_DCHECK(/g'
And with:
git grep -l "RTC_DCHECK(false)" | \
xargs sed -i 's/RTC_DCHECK(false)/RTC_NOTREACHED()/g'
With some manual changes to include "rtc_base/checks.h" where
needed.
A follow-up CL will remove assert() from Obj-C code as well
and remove the #include of <assert.h>.
The choice to replace with RTC_DCHECK is because assert()
is because RTC_DCHECK has similar behavior as assert()
based on NDEBUG.
This CL also contains manual changes to switch from
basic RTC_DCHECK to other (preferred) versions like
RTC_DCHECK_GT (and similar).
Bug: webrtc:6779
Change-Id: I00bed8886e03d685a2f42324e34aef2c9b7a63b0
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/224846
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#34442}
2021-07-09 07:49:43 +00:00
..
2021-04-12 18:25:58 +00:00
2021-07-06 10:39:00 +00:00
2019-04-01 07:18:13 +00:00
2020-03-19 08:58:57 +00:00
2021-07-09 07:49:43 +00:00
2021-03-29 12:00:36 +00:00
2019-03-06 14:37:33 +00:00
2021-05-10 08:47:48 +00:00
2021-06-09 11:39:06 +00:00
2021-07-06 10:39:00 +00:00
2021-07-06 10:39:00 +00:00
2021-07-09 07:49:43 +00:00
2021-07-08 12:00:01 +00:00
2020-05-04 18:10:00 +00:00
2020-04-27 08:03:47 +00:00
2020-06-04 09:55:12 +00:00
2021-07-06 10:39:00 +00:00
2019-09-16 11:20:55 +00:00
2019-09-16 11:20:55 +00:00
2019-01-15 00:51:29 +00:00
2021-06-14 16:54:07 +00:00
2021-02-15 18:08:17 +00:00
2020-10-28 16:00:27 +00:00
2020-09-23 12:51:30 +00:00
2020-11-17 21:07:56 +00:00
2021-07-06 10:39:00 +00:00
2021-07-06 10:39:00 +00:00
2021-02-10 15:04:55 +00:00
2021-05-21 04:34:11 +00:00
2021-05-21 04:34:11 +00:00
2021-04-27 17:01:59 +00:00
2019-07-08 13:45:15 +00:00
2020-06-17 10:33:02 +00:00
2020-06-17 10:33:02 +00:00
2021-04-08 20:07:22 +00:00
2021-04-08 20:07:22 +00:00
2020-10-23 13:43:32 +00:00
2021-02-10 15:04:55 +00:00
2021-04-27 17:01:59 +00:00
2018-07-18 11:26:01 +00:00
2018-05-14 06:57:38 +00:00
2021-01-14 13:33:22 +00:00
2021-01-14 13:33:22 +00:00
2020-09-29 19:29:29 +00:00
2020-09-29 19:29:29 +00:00
2021-02-10 15:04:55 +00:00
2019-06-11 14:11:06 +00:00
2019-06-11 14:11:06 +00:00
2020-07-08 12:21:08 +00:00
2020-07-08 12:21:08 +00:00
2020-05-15 08:15:02 +00:00
2020-12-16 09:01:44 +00:00
2020-07-08 14:31:00 +00:00
2021-07-09 07:49:43 +00:00
2021-02-16 12:41:35 +00:00
2020-07-08 14:31:00 +00:00
2019-07-08 13:45:15 +00:00
2019-01-25 20:29:58 +00:00
2018-12-03 08:34:50 +00:00
2018-04-05 08:21:23 +00:00
2020-04-23 13:21:45 +00:00
2019-12-10 17:37:46 +00:00
2019-03-06 14:37:33 +00:00
2020-05-04 15:01:26 +00:00
2021-04-27 17:01:59 +00:00
2021-03-22 13:35:35 +00:00
2021-04-27 17:01:59 +00:00
2020-05-15 08:15:02 +00:00
2020-05-15 08:15:02 +00:00
2018-02-22 12:53:38 +00:00
2020-08-20 16:07:41 +00:00
2020-05-06 07:26:44 +00:00
2020-05-04 15:17:54 +00:00
2018-03-09 16:04:35 +00:00
2020-05-15 08:15:02 +00:00
2018-06-19 14:00:39 +00:00
2020-12-02 16:34:41 +00:00
2019-03-06 14:37:33 +00:00
2019-03-06 14:37:33 +00:00
2019-06-03 16:28:34 +00:00
2019-06-03 16:28:34 +00:00
2019-07-08 13:45:15 +00:00
2021-07-09 07:49:43 +00:00
2019-03-15 18:48:43 +00:00
2019-07-08 13:45:15 +00:00
2019-07-08 13:45:15 +00:00
2018-11-20 16:28:39 +00:00
2021-07-06 10:39:00 +00:00
2021-07-06 10:39:00 +00:00
2021-07-06 10:39:00 +00:00
2020-05-15 10:20:03 +00:00
2020-05-04 18:10:00 +00:00
2020-05-04 18:10:00 +00:00
2018-11-28 18:25:07 +00:00
2018-06-19 14:00:39 +00:00
2020-08-11 11:46:50 +00:00
2020-08-11 11:46:50 +00:00
2020-08-11 11:46:50 +00:00
2020-07-08 14:31:00 +00:00
2020-07-08 14:31:00 +00:00
2019-07-08 13:45:15 +00:00
2019-01-25 20:29:58 +00:00
2020-10-19 10:42:23 +00:00
2021-01-14 13:33:22 +00:00
2020-08-04 07:56:49 +00:00
2018-07-25 14:59:26 +00:00
2018-06-19 14:00:39 +00:00