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