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

@ -94,7 +94,7 @@ class SocketAddress {
const IPAddress& ipaddr() const;
int family() const {return ip_.family(); }
int family() const { return ip_.family(); }
// Returns the port part of this address.
uint16_t port() const;
@ -104,7 +104,7 @@ class SocketAddress {
// interfaces having different scope-ids for their link-local addresses.
// IPv4 address do not have scope_ids and sockaddr_in structures do not have
// a field for them.
int scope_id() const {return scope_id_; }
int scope_id() const { return scope_id_; }
void SetScopeID(int id) { scope_id_ = id; }
// Returns the 'host' portion of the address (hostname or IP) in a form
@ -154,13 +154,13 @@ class SocketAddress {
bool IsUnresolvedIP() const;
// Determines whether this address is identical to the given one.
bool operator ==(const SocketAddress& addr) const;
inline bool operator !=(const SocketAddress& addr) const {
return !this->operator ==(addr);
bool operator==(const SocketAddress& addr) const;
inline bool operator!=(const SocketAddress& addr) const {
return !this->operator==(addr);
}
// Compares based on IP and then port.
bool operator <(const SocketAddress& addr) const;
bool operator<(const SocketAddress& addr) const;
// Determines whether this address has the same IP as the one given.
bool EqualIPs(const SocketAddress& addr) const;