Concatenate string literals at compile time.

This CL was generated by running:
git ls-files | grep ".cc" | xargs perl -i -ne 'BEGIN {undef $/}; s/("[\s\n]*<<[\s\n]*")/" "/g; print;'; git cl format

After that I manually edited modules/audio_processing/gain_controller2.cc to preserve its original
formatting.

This primary benefit of this change is a small reduction in binary size.

Bug: None
Change-Id: I689fa7ba9c717c314bb167e5d592c3c4e0871e29
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/165961
Reviewed-by: Alessio Bazzica <alessiob@webrtc.org>
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Commit-Queue: Jonas Olsson <jonasolsson@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#30251}
This commit is contained in:
Jonas Olsson
2020-01-14 12:11:31 +01:00
committed by Commit Bot
parent 6153e15d31
commit b2b2031457
98 changed files with 544 additions and 353 deletions

View File

@ -2174,21 +2174,36 @@ std::string ProduceDebugText(int render_input_sample_rate_hz,
size_t capture_output_num_channels) {
rtc::StringBuilder ss;
ss << "Sample rates:"
"\n"
" Render input: "
<< render_input_sample_rate_hz
<< " Hz"
"\n"
" Render output: "
<< render_output_sample_rate_hz
<< " Hz"
"\n"
" Capture input: "
<< capture_input_sample_rate_hz
<< " Hz"
"\n"
" Capture output: "
<< capture_output_sample_rate_hz
<< " Hz"
"\n"
"Number of channels:"
"\n"
" Render input: "
<< render_input_num_channels
<< "\n"
<< " Render input: " << render_input_sample_rate_hz << " Hz"
" Render output: "
<< render_output_num_channels
<< "\n"
<< " Render output: " << render_output_sample_rate_hz << " Hz"
" Capture input: "
<< capture_input_num_channels
<< "\n"
<< " Capture input: " << capture_input_sample_rate_hz << " Hz"
<< "\n"
<< " Capture output: " << capture_output_sample_rate_hz << " Hz"
<< "\n"
<< "Number of channels:"
<< "\n"
<< " Render input: " << render_input_num_channels << "\n"
<< " Render output: " << render_output_num_channels << "\n"
<< " Capture input: " << capture_input_num_channels << "\n"
<< " Capture output: " << capture_output_num_channels;
" Capture output: "
<< capture_output_num_channels;
return ss.Release();
}