forked from OSchip/llvm-project
[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:
parent
f4ffcab178
commit
8b649f98f6
|
@ -46,7 +46,7 @@ protected:
|
||||||
ThreadCreateTrampoline(lldb::thread_arg_t arg);
|
ThreadCreateTrampoline(lldb::thread_arg_t arg);
|
||||||
|
|
||||||
lldb::thread_t m_thread = LLDB_INVALID_HOST_THREAD;
|
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)
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@ using namespace lldb;
|
||||||
using namespace lldb_private;
|
using namespace lldb_private;
|
||||||
|
|
||||||
HostNativeThreadBase::HostNativeThreadBase(thread_t thread)
|
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 {
|
lldb::thread_t HostNativeThreadBase::GetSystemHandle() const {
|
||||||
return m_thread;
|
return m_thread;
|
||||||
|
@ -34,7 +34,7 @@ bool HostNativeThreadBase::IsJoinable() const {
|
||||||
|
|
||||||
void HostNativeThreadBase::Reset() {
|
void HostNativeThreadBase::Reset() {
|
||||||
m_thread = LLDB_INVALID_HOST_THREAD;
|
m_thread = LLDB_INVALID_HOST_THREAD;
|
||||||
m_result = 0;
|
m_result = 0; // NOLINT(modernize-use-nullptr)
|
||||||
}
|
}
|
||||||
|
|
||||||
bool HostNativeThreadBase::EqualsThread(lldb::thread_t thread) const {
|
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 HostNativeThreadBase::Release() {
|
||||||
lldb::thread_t result = m_thread;
|
lldb::thread_t result = m_thread;
|
||||||
m_thread = LLDB_INVALID_HOST_THREAD;
|
m_thread = LLDB_INVALID_HOST_THREAD;
|
||||||
m_result = 0;
|
m_result = 0; // NOLINT(modernize-use-nullptr)
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue