[lldb] Add NOLINT(modernize-use-nullptr)

thread_result_t is defined as unsigned on Windows.

This patch prevents clang-tidy from replacing 0 with nullptr.
This commit is contained in:
Kazu Hirata 2022-01-01 13:14:59 -08:00
parent f4ffcab178
commit 8b649f98f6
2 changed files with 4 additions and 4 deletions

View File

@ -46,7 +46,7 @@ protected:
ThreadCreateTrampoline(lldb::thread_arg_t arg);
lldb::thread_t m_thread = LLDB_INVALID_HOST_THREAD;
lldb::thread_result_t m_result = 0;
lldb::thread_result_t m_result = 0; // NOLINT(modernize-use-nullptr)
};
}

View File

@ -18,7 +18,7 @@ using namespace lldb;
using namespace lldb_private;
HostNativeThreadBase::HostNativeThreadBase(thread_t thread)
: m_thread(thread), m_result(0) {}
: m_thread(thread), m_result(0) {} // NOLINT(modernize-use-nullptr)
lldb::thread_t HostNativeThreadBase::GetSystemHandle() const {
return m_thread;
@ -34,7 +34,7 @@ bool HostNativeThreadBase::IsJoinable() const {
void HostNativeThreadBase::Reset() {
m_thread = LLDB_INVALID_HOST_THREAD;
m_result = 0;
m_result = 0; // NOLINT(modernize-use-nullptr)
}
bool HostNativeThreadBase::EqualsThread(lldb::thread_t thread) const {
@ -44,7 +44,7 @@ bool HostNativeThreadBase::EqualsThread(lldb::thread_t thread) const {
lldb::thread_t HostNativeThreadBase::Release() {
lldb::thread_t result = m_thread;
m_thread = LLDB_INVALID_HOST_THREAD;
m_result = 0;
m_result = 0; // NOLINT(modernize-use-nullptr)
return result;
}