Format almost everything.
This CL was generated by running
git ls-files | grep -P "(\.h|\.cc)$" | grep -v 'sdk/' | grep -v 'rtc_base/ssl_' | \
grep -v 'fake_rtc_certificate_generator.h' | grep -v 'modules/audio_device/win/' | \
grep -v 'system_wrappers/source/clock.cc' | grep -v 'rtc_base/trace_event.h' | \
grep -v 'modules/audio_coding/codecs/ilbc/' | grep -v 'screen_capturer_mac.h' | \
grep -v 'spl_inl_mips.h' | grep -v 'data_size_unittest.cc' | grep -v 'timestamp_unittest.cc' \
| xargs clang-format -i ; git cl format
Most of these changes are clang-format grouping and reordering includes
differently.
Bug: webrtc:9340
Change-Id: Ic83ddbc169bfacd21883e381b5181c3dd4fe8a63
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/144051
Commit-Queue: Jonas Olsson <jonasolsson@webrtc.org>
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#28505}
diff --git a/rtc_base/logging.h b/rtc_base/logging.h
index 7931daa..17c6c24 100644
--- a/rtc_base/logging.h
+++ b/rtc_base/logging.h
@@ -91,12 +91,12 @@
// LogErrorContext assists in interpreting the meaning of an error value.
enum LogErrorContext {
ERRCTX_NONE,
- ERRCTX_ERRNO, // System-local errno
- ERRCTX_HRESULT, // Windows HRESULT
+ ERRCTX_ERRNO, // System-local errno
+ ERRCTX_HRESULT, // Windows HRESULT
// Abbreviations for LOG_E macro
- ERRCTX_EN = ERRCTX_ERRNO, // LOG_E(sev, EN, x)
- ERRCTX_HR = ERRCTX_HRESULT, // LOG_E(sev, HR, x)
+ ERRCTX_EN = ERRCTX_ERRNO, // LOG_E(sev, EN, x)
+ ERRCTX_HR = ERRCTX_HRESULT, // LOG_E(sev, HR, x)
};
// Virtual sink interface that can receive log messages.
@@ -541,12 +541,12 @@
return (LogMessage::GetMinLogSeverity() <= sev);
}
-#define RTC_LOG_E(sev, ctx, err) \
- rtc::webrtc_logging_impl::LogCall() & \
- rtc::webrtc_logging_impl::LogStreamer<>() \
- << rtc::webrtc_logging_impl::LogMetadataErr { \
- {__FILE__, __LINE__, rtc::sev}, rtc::ERRCTX_##ctx, (err) \
- }
+#define RTC_LOG_E(sev, ctx, err) \
+ rtc::webrtc_logging_impl::LogCall() & \
+ rtc::webrtc_logging_impl::LogStreamer<>() \
+ << rtc::webrtc_logging_impl::LogMetadataErr { \
+ {__FILE__, __LINE__, rtc::sev}, rtc::ERRCTX_##ctx, (err) \
+ }
#define RTC_LOG_T(sev) RTC_LOG(sev) << this << ": "
@@ -578,12 +578,12 @@
}
} // namespace webrtc_logging_impl
-#define RTC_LOG_TAG(sev, tag) \
- rtc::webrtc_logging_impl::LogCall() & \
- rtc::webrtc_logging_impl::LogStreamer<>() \
- << rtc::webrtc_logging_impl::LogMetadataTag { \
- sev, rtc::webrtc_logging_impl::AdaptString(tag) \
- }
+#define RTC_LOG_TAG(sev, tag) \
+ rtc::webrtc_logging_impl::LogCall() & \
+ rtc::webrtc_logging_impl::LogStreamer<>() \
+ << rtc::webrtc_logging_impl::LogMetadataTag { \
+ sev, rtc::webrtc_logging_impl::AdaptString(tag) \
+ }
#else