提交 cfb1a06f authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo

Deal with clang-tidy

上级 5cb9129d
---
Checks: '*,-boost-use-to-string,-cert-*,-clang-analyzer-osx.*,-clang-analyzer-optin.osx.*,-cppcoreguidelines-pro-bounds-array-to-pointer-decay,-cppcoreguidelines-pro-bounds-constant-array-index,-cppcoreguidelines-pro-bounds-pointer-arithmetic,-cppcoreguidelines-pro-type-vararg,-cppcoreguidelines-pro-type-const-cast,-cppcoreguidelines-pro-type-reinterpret-cast,-cppcoreguidelines-pro-type-static-cast-downcast,-cppcoreguidelines-pro-type-union-access,-cppcoreguidelines-special-member-functions,-google-readability-*,-llvm-include-order,-readability-else-after-return,-readability-implicit-bool-cast,-modernize-pass-by-value,-cppcoreguidelines-no-malloc,-modernize-make-unique'
Checks: '*,-boost-use-to-string,-cert-*,-clang-analyzer-osx.*,-clang-analyzer-optin.osx.*,-cppcoreguidelines-pro-bounds-array-to-pointer-decay,-cppcoreguidelines-pro-bounds-constant-array-index,-cppcoreguidelines-pro-bounds-pointer-arithmetic,-cppcoreguidelines-pro-type-vararg,-cppcoreguidelines-pro-type-const-cast,-cppcoreguidelines-pro-type-reinterpret-cast,-cppcoreguidelines-pro-type-static-cast-downcast,-cppcoreguidelines-pro-type-union-access,-cppcoreguidelines-special-member-functions,-google-readability-*,-llvm-include-order,-readability-else-after-return,-readability-implicit-bool-cast,-modernize-pass-by-value,-cppcoreguidelines-no-malloc,-modernize-make-unique,-google-default-arguments'
HeaderFilterRegex: ''
AnalyzeTemporaryDtors: false
......
......@@ -14,7 +14,7 @@ namespace RTC
class Listener
{
public:
virtual void OnRembClientAvailableBitrate(RTC::RembClient* rembClient, uint32_t bitrate) = 0;
virtual void OnRembClientAvailableBitrate(RTC::RembClient* rembClient, uint32_t availableBitrate) = 0;
virtual void OnRembClientSendProbationRtpPacket(
RTC::RembClient* rembClient, RTC::RtpPacket* packet) = 0;
};
......
......@@ -109,7 +109,7 @@ namespace RTC
/* Pure virtual methods inherited from RTC::RembClient::Listener. */
public:
void OnRembClientAvailableBitrate(RTC::RembClient* rembClient, uint32_t bitrate) override;
void OnRembClientAvailableBitrate(RTC::RembClient* rembClient, uint32_t availableBitrate) override;
void OnRembClientSendProbationRtpPacket(RTC::RembClient* rembClient, RTC::RtpPacket* packet) override;
/* Pure virtual methods inherited from RTC::RembServer::RemoteBitrateEstimator::Listener. */
......
......@@ -331,7 +331,7 @@ namespace RTC
{
MS_TRACE();
MS_ASSERT(this->externallyManagedBitrate == true, "bitrate is not externally managed");
MS_ASSERT(this->externallyManagedBitrate, "bitrate is not externally managed");
if (!RTC::Consumer::IsActive())
return 0;
......@@ -450,7 +450,7 @@ namespace RTC
{
MS_TRACE();
MS_ASSERT(this->externallyManagedBitrate == true, "bitrate is not externally managed");
MS_ASSERT(this->externallyManagedBitrate, "bitrate is not externally managed");
if (!RTC::Consumer::IsActive())
return 0;
......@@ -537,7 +537,7 @@ namespace RTC
{
MS_TRACE();
MS_ASSERT(this->externallyManagedBitrate == true, "bitrate is not externally managed");
MS_ASSERT(this->externallyManagedBitrate, "bitrate is not externally managed");
if (!RTC::Consumer::IsActive())
return;
......
......@@ -318,7 +318,7 @@ inline void UdpSocket::OnUvRecv(
}
}
inline void UdpSocket::OnUvSendError(int error)
inline void UdpSocket::OnUvSendError(int error) // NOLINT(misc-unused-parameters)
{
MS_TRACE();
......
......@@ -150,8 +150,7 @@ void IgnoreSignals()
};
// clang-format on
// Ignore clang-tidy cppcoreguidelines-pro-type-cstyle-cast.
act.sa_handler = SIG_IGN; // NOLINT
act.sa_handler = SIG_IGN; // NOLINT(cppcoreguidelines-pro-type-cstyle-cast)
act.sa_flags = 0;
err = sigfillset(&act.sa_mask);
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论