Reformat the WebRTC code base

Running clang-format with chromium's style guide.

The goal is n-fold:
 * providing consistency and readability (that's what code guidelines are for)
 * preventing noise with presubmit checks and git cl format
 * building on the previous point: making it easier to automatically fix format issues
 * you name it

Please consider using git-hyper-blame to ignore this commit.

Bug: webrtc:9340
Change-Id: I694567c4cdf8cee2860958cfe82bfaf25848bb87
Reviewed-on: https://webrtc-review.googlesource.com/81185
Reviewed-by: Patrik Höglund <phoglund@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#23660}
This commit is contained in:
Yves Gerey
2018-06-19 15:03:05 +02:00
parent b602123a5a
commit 665174fdbb
1569 changed files with 30495 additions and 30309 deletions

View File

@ -160,13 +160,9 @@ struct SimulationConfig {
// Handler for the frame counters.
class FrameCounters {
public:
void IncreaseRenderCounter() {
rtc::AtomicOps::Increment(&render_count_);
}
void IncreaseRenderCounter() { rtc::AtomicOps::Increment(&render_count_); }
void IncreaseCaptureCounter() {
rtc::AtomicOps::Increment(&capture_count_);
}
void IncreaseCaptureCounter() { rtc::AtomicOps::Increment(&capture_count_); }
int CaptureMinusRenderCounters() const {
// The return value will be approximate, but that's good enough since
@ -196,9 +192,7 @@ class FrameCounters {
// Class that represents a flag that can only be raised.
class LockedFlag {
public:
bool get_flag() const {
return rtc::AtomicOps::AcquireLoad(&flag_);
}
bool get_flag() const { return rtc::AtomicOps::AcquireLoad(&flag_); }
void set_flag() {
if (!get_flag()) // read-only operation to avoid affecting the cache-line.
@ -248,9 +242,8 @@ class TimedThreadApiProcessor {
"_" + std::to_string(simulation_config_->sample_rate_hz) + "Hz";
webrtc::test::PrintResultMeanAndError(
"apm_timing", sample_rate_name, processor_name,
GetDurationAverage(), GetDurationStandardDeviation(),
"us", false);
"apm_timing", sample_rate_name, processor_name, GetDurationAverage(),
GetDurationStandardDeviation(), "us", false);
if (kPrintAllDurations) {
webrtc::test::PrintResultList("apm_call_durations", sample_rate_name,