Skip to content

Commit

Permalink
Format almost everything.
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Karl Wiberg <[email protected]>
Cr-Commit-Position: refs/heads/master@{#28505}
  • Loading branch information
Jonas Olsson authored and Commit Bot committed Jul 8, 2019
1 parent c93bfcf commit a4d8737
Show file tree
Hide file tree
Showing 1,202 changed files with 2,989 additions and 1,993 deletions.
3 changes: 2 additions & 1 deletion api/array_view_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@
* be found in the AUTHORS file in the root of the source tree.
*/

#include "api/array_view.h"

#include <algorithm>
#include <array>
#include <string>
#include <utility>
#include <vector>

#include "api/array_view.h"
#include "rtc_base/buffer.h"
#include "rtc_base/checks.h"
#include "rtc_base/gunit.h"
Expand Down
1 change: 1 addition & 0 deletions api/audio/echo_canceller3_config_json.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include "api/audio/echo_canceller3_config_json.h"

#include <stddef.h>

#include <string>
#include <vector>

Expand Down
3 changes: 2 additions & 1 deletion api/audio/test/audio_frame_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@
* be found in the AUTHORS file in the root of the source tree.
*/

#include "api/audio/audio_frame.h"

#include <stdint.h>
#include <string.h> // memcmp

#include "api/audio/audio_frame.h"
#include "test/gtest.h"

namespace webrtc {
Expand Down
1 change: 1 addition & 0 deletions api/audio/test/echo_canceller3_config_json_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*/

#include "api/audio/echo_canceller3_config_json.h"

#include "api/audio/echo_canceller3_config.h"
#include "test/gtest.h"

Expand Down
1 change: 1 addition & 0 deletions api/audio/test/echo_canceller3_config_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*/

#include "api/audio/echo_canceller3_config.h"

#include "api/audio/echo_canceller3_config_json.h"
#include "test/gtest.h"

Expand Down
1 change: 1 addition & 0 deletions api/audio_codecs/audio_decoder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include "api/audio_codecs/audio_decoder.h"

#include <assert.h>

#include <memory>
#include <utility>

Expand Down
1 change: 1 addition & 0 deletions api/audio_codecs/audio_decoder.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

#include <stddef.h>
#include <stdint.h>

#include <memory>
#include <vector>

Expand Down
1 change: 1 addition & 0 deletions api/audio_codecs/audio_format.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#define API_AUDIO_CODECS_AUDIO_FORMAT_H_

#include <stddef.h>

#include <map>
#include <string>

Expand Down
4 changes: 3 additions & 1 deletion api/audio_codecs/g711/audio_encoder_g711.cc
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ std::unique_ptr<AudioEncoder> AudioEncoderG711::MakeAudioEncoder(
impl_config.payload_type = payload_type;
return absl::make_unique<AudioEncoderPcmA>(impl_config);
}
default: { return nullptr; }
default: {
return nullptr;
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*/

#include "api/audio_codecs/audio_decoder_factory_template.h"

#include "absl/memory/memory.h"
#include "api/audio_codecs/L16/audio_decoder_L16.h"
#include "api/audio_codecs/g711/audio_decoder_g711.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*/

#include "api/audio_codecs/audio_encoder_factory_template.h"

#include "absl/memory/memory.h"
#include "api/audio_codecs/L16/audio_encoder_L16.h"
#include "api/audio_codecs/g711/audio_encoder_g711.h"
Expand Down
1 change: 1 addition & 0 deletions api/audio_options.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#define API_AUDIO_OPTIONS_H_

#include <stdint.h>

#include <string>

#include "absl/types/optional.h"
Expand Down
1 change: 1 addition & 0 deletions api/call/transport.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

#include <stddef.h>
#include <stdint.h>

#include <vector>

namespace webrtc {
Expand Down
1 change: 1 addition & 0 deletions api/crypto/crypto_options.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*/

#include "api/crypto/crypto_options.h"

#include "rtc_base/ssl_stream_adapter.h"

namespace webrtc {
Expand Down
1 change: 1 addition & 0 deletions api/data_channel_interface.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

#include <stddef.h>
#include <stdint.h>

#include <string>

#include "absl/types/optional.h"
Expand Down
3 changes: 2 additions & 1 deletion api/function_view_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@
* be found in the AUTHORS file in the root of the source tree.
*/

#include "api/function_view.h"

#include <memory>
#include <utility>

#include "api/function_view.h"
#include "test/gtest.h"

namespace rtc {
Expand Down
1 change: 1 addition & 0 deletions api/jsep_ice_candidate.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#define API_JSEP_ICE_CANDIDATE_H_

#include <stddef.h>

#include <string>
#include <vector>

Expand Down
4 changes: 2 additions & 2 deletions api/media_transport_interface.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@
// enable different media transport implementations, including QUIC-based
// media transport.

#include "api/media_transport_interface.h"

#include <cstdint>
#include <utility>

#include "api/datagram_transport_interface.h"
#include "api/media_transport_interface.h"

namespace webrtc {

Expand All @@ -30,7 +31,6 @@ MediaTransportSettings& MediaTransportSettings::operator=(
const MediaTransportSettings&) = default;
MediaTransportSettings::~MediaTransportSettings() = default;


SendDataParams::SendDataParams() = default;
SendDataParams::SendDataParams(const SendDataParams&) = default;

Expand Down
1 change: 1 addition & 0 deletions api/peer_connection_interface.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*/

#include "api/peer_connection_interface.h"

#include "api/dtls_transport_interface.h"
#include "api/sctp_transport_interface.h"

Expand Down
3 changes: 2 additions & 1 deletion api/rtc_error_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@
* be found in the AUTHORS file in the root of the source tree.
*/

#include "api/rtc_error.h"

#include <utility>

#include "api/rtc_error.h"
#include "test/gtest.h"

namespace {
Expand Down
3 changes: 2 additions & 1 deletion api/rtc_event_log_output_file.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@
* be found in the AUTHORS file in the root of the source tree.
*/

#include "api/rtc_event_log_output_file.h"

#include <limits>
#include <utility>

#include "api/rtc_event_log/rtc_event_log.h"
#include "api/rtc_event_log_output_file.h"
#include "rtc_base/checks.h"
#include "rtc_base/logging.h"

Expand Down
1 change: 1 addition & 0 deletions api/rtc_event_log_output_file.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

#include <stddef.h>
#include <stdio.h>

#include <string>

#include "api/rtc_event_log_output.h"
Expand Down
1 change: 1 addition & 0 deletions api/rtp_headers.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

#include <stddef.h>
#include <stdint.h>

#include <string>

#include "absl/types/optional.h"
Expand Down
1 change: 0 additions & 1 deletion api/rtp_packet_info_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
*/

#include "api/rtp_packet_infos.h"

#include "test/gmock.h"
#include "test/gtest.h"

Expand Down
1 change: 1 addition & 0 deletions api/rtp_parameters.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#define API_RTP_PARAMETERS_H_

#include <stdint.h>

#include <string>
#include <unordered_map>
#include <vector>
Expand Down
1 change: 1 addition & 0 deletions api/rtp_parameters_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*/

#include "api/rtp_parameters.h"

#include "test/gtest.h"

namespace webrtc {
Expand Down
4 changes: 2 additions & 2 deletions api/sctp_transport_interface.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
* be found in the AUTHORS file in the root of the source tree.
*/

#include <utility>

#include "api/sctp_transport_interface.h"

#include <utility>

namespace webrtc {

SctpTransportInformation::SctpTransportInformation(SctpTransportState state)
Expand Down
1 change: 1 addition & 0 deletions api/stats/rtc_stats.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

#include <stddef.h>
#include <stdint.h>

#include <memory>
#include <string>
#include <utility>
Expand Down
1 change: 1 addition & 0 deletions api/stats/rtc_stats_report.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

#include <stddef.h>
#include <stdint.h>

#include <map>
#include <memory>
#include <string>
Expand Down
3 changes: 2 additions & 1 deletion api/stats/rtcstats_objects.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#define API_STATS_RTCSTATS_OBJECTS_H_

#include <stdint.h>

#include <memory>
#include <string>
#include <vector>
Expand Down Expand Up @@ -376,7 +377,7 @@ class RTC_EXPORT RTCRTPStreamStats : public RTCStats {
RTCStatsMember<std::string> associate_stats_id;
// TODO(hbos): Remote case not supported by |RTCStatsCollector|.
// crbug.com/657855, 657856
RTCStatsMember<bool> is_remote; // = false
RTCStatsMember<bool> is_remote; // = false
RTCStatsMember<std::string> media_type; // renamed to kind.
RTCStatsMember<std::string> kind;
RTCStatsMember<std::string> track_id;
Expand Down
8 changes: 3 additions & 5 deletions api/test/create_video_quality_test_fixture.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@
* be found in the AUTHORS file in the root of the source tree.
*/

#include "api/test/create_video_quality_test_fixture.h"

#include <memory>
#include <utility>

#include "absl/memory/memory.h"
#include "api/test/create_video_quality_test_fixture.h"
#include "video/video_quality_test.h"

namespace webrtc {
Expand All @@ -23,8 +24,7 @@ CreateVideoQualityTestFixture() {
return absl::make_unique<VideoQualityTest>(nullptr);
}

std::unique_ptr<VideoQualityTestFixtureInterface>
CreateVideoQualityTestFixture(
std::unique_ptr<VideoQualityTestFixtureInterface> CreateVideoQualityTestFixture(
std::unique_ptr<FecControllerFactoryInterface> fec_controller_factory) {
auto components = absl::make_unique<
VideoQualityTestFixtureInterface::InjectionComponents>();
Expand All @@ -39,5 +39,3 @@ std::unique_ptr<VideoQualityTestFixtureInterface> CreateVideoQualityTestFixture(
}

} // namespace webrtc


3 changes: 1 addition & 2 deletions api/test/create_video_quality_test_fixture.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ namespace webrtc {
std::unique_ptr<VideoQualityTestFixtureInterface>
CreateVideoQualityTestFixture();

std::unique_ptr<VideoQualityTestFixtureInterface>
CreateVideoQualityTestFixture(
std::unique_ptr<VideoQualityTestFixtureInterface> CreateVideoQualityTestFixture(
std::unique_ptr<FecControllerFactoryInterface> fec_controller_factory);

std::unique_ptr<VideoQualityTestFixtureInterface> CreateVideoQualityTestFixture(
Expand Down
2 changes: 2 additions & 0 deletions api/test/fake_frame_decryptor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
*/

#include "api/test/fake_frame_decryptor.h"

#include <vector>

#include "rtc_base/checks.h"

namespace webrtc {
Expand Down
1 change: 1 addition & 0 deletions api/test/fake_frame_decryptor.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

#include <stddef.h>
#include <stdint.h>

#include <vector>

#include "api/array_view.h"
Expand Down
1 change: 1 addition & 0 deletions api/test/fake_frame_encryptor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*/

#include "api/test/fake_frame_encryptor.h"

#include "rtc_base/checks.h"

namespace webrtc {
Expand Down
3 changes: 2 additions & 1 deletion api/test/loopback_media_transport_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@
* be found in the AUTHORS file in the root of the source tree.
*/

#include "api/test/loopback_media_transport.h"

#include <algorithm>
#include <memory>
#include <vector>

#include "api/test/loopback_media_transport.h"
#include "test/gmock.h"

namespace webrtc {
Expand Down
1 change: 0 additions & 1 deletion api/test/mock_audio_mixer.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#define API_TEST_MOCK_AUDIO_MIXER_H_

#include "api/audio/audio_mixer.h"

#include "test/gmock.h"

namespace webrtc {
Expand Down
1 change: 1 addition & 0 deletions api/test/mock_frame_encryptor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*/

#include "api/test/mock_frame_encryptor.h"

#include "test/gmock.h"

namespace webrtc {
Expand Down
Loading

0 comments on commit a4d8737

Please sign in to comment.