Skip to content

Commit d929603

Browse files
QUICHE teamcopybara-github
authored andcommitted
Fix 5 ClangTidyReadability findings:
* function 'QuicConnectionIdHasher' has inline specifier but is implicitly inlined. For more info, see go/clang_tidy/checks/readability-redundant-inline-specifier (2 times) * function 'ReviseFirstByteByVersion' has inline specifier but is implicitly inlined. For more info, see go/clang_tidy/checks/readability-redundant-inline-specifier (2 times) * function 'Hash' has inline specifier but is implicitly inlined. For more info, see go/clang_tidy/checks/readability-redundant-inline-specifier This CL looks good? Just grant approval! This CL doesn’t look good? This is what you can do: * Revert this CL, by replying "REVERT: <provide reason>" * File a bug under go/clang-tidy-bug for category ClangTidyReadability if there's an issue with the CL content. * File a bug under go/rosie-bug if there's an issue with how the CL was managed. * For all other issues such as the formatting of the CL, please file a bug under go/clrobot-bug. * Revert this CL and not get a CL that cleans up these paths in the future by replying "BLOCKLIST: <provide reason>". This is not reversible! We recommend to opt out the respective paths in your CL Robot configuration instead: go/clrobot-opt-out. This CL was generated by CL Robot - a tool that cleans up code findings (go/clrobot). The affected code paths have been enabled for CL Robot in //depot/google3/third_party/quiche/METADATA.common which is reachable following include_presubmits from //depot/google3/third_party/quic/METADATA by following go/clrobot#how-to-opt-in. Anything wrong with the signup? File a bug at go/clrobot-bug. #clrobot #readability-redundant-inline-specifier Tested: Local presubmit tests passed. PiperOrigin-RevId: 927644629
1 parent f3ce189 commit d929603

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

quiche/quic/core/quic_connection_id.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ namespace {
2828
// that they always land in the same hash bucket.
2929
class QuicConnectionIdHasher {
3030
public:
31-
inline QuicConnectionIdHasher()
31+
QuicConnectionIdHasher()
3232
: QuicConnectionIdHasher(QuicRandom::GetInstance()) {}
3333

34-
explicit inline QuicConnectionIdHasher(QuicRandom* random) {
34+
explicit QuicConnectionIdHasher(QuicRandom* random) {
3535
random->RandBytes(&sip_hash_key_, sizeof(sip_hash_key_));
3636
}
3737

38-
inline size_t Hash(const char* input, size_t input_len) const {
38+
size_t Hash(const char* input, size_t input_len) const {
3939
return static_cast<size_t>(SIPHASH_24(
4040
sip_hash_key_, reinterpret_cast<const uint8_t*>(input), input_len));
4141
}

quiche/quic/core/quic_framer_test.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -747,12 +747,12 @@ class QuicFramerTest : public QuicTestWithParam<ParsedQuicVersion> {
747747
// not needed for short header packets, but if sent, this function will exit
748748
// cleanly. It needs to be called twice for coalesced packets (see references
749749
// to length_of_first_coalesced_packet below for examples of how to do this).
750-
inline void ReviseFirstByteByVersion(unsigned char packet_ietf[]) {
750+
void ReviseFirstByteByVersion(unsigned char packet_ietf[]) {
751751
if (version_.UsesV2PacketTypes() && (packet_ietf[0] >= 0x80)) {
752752
packet_ietf[0] = (packet_ietf[0] + 0x10) | 0xc0;
753753
}
754754
}
755-
inline void ReviseFirstByteByVersion(PacketFragments& packet_ietf) {
755+
void ReviseFirstByteByVersion(PacketFragments& packet_ietf) {
756756
ReviseFirstByteByVersion(&packet_ietf[0].fragment[0]);
757757
}
758758

0 commit comments

Comments
 (0)