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