Simplify Boolean expressions
This patch simplifies boolean expressions acorss LLDB. It was generated using clang-tidy with the following command: run-clang-tidy.py -checks='-*,readability-simplify-boolean-expr' -format -fix $PWD Differential revision: https://reviews.llvm.org/D55584 llvm-svn: 349215
This commit is contained in:
@@ -107,7 +107,7 @@ public:
|
||||
}
|
||||
|
||||
void FetchThreads() {
|
||||
if (m_thread_list_fetched == false) {
|
||||
if (!m_thread_list_fetched) {
|
||||
lldb::QueueSP queue_sp = m_queue_wp.lock();
|
||||
if (queue_sp) {
|
||||
Process::StopLocker stop_locker;
|
||||
@@ -127,7 +127,7 @@ public:
|
||||
}
|
||||
|
||||
void FetchItems() {
|
||||
if (m_pending_items_fetched == false) {
|
||||
if (!m_pending_items_fetched) {
|
||||
QueueSP queue_sp = m_queue_wp.lock();
|
||||
if (queue_sp) {
|
||||
Process::StopLocker stop_locker;
|
||||
@@ -178,7 +178,7 @@ public:
|
||||
uint32_t result = 0;
|
||||
|
||||
QueueSP queue_sp = m_queue_wp.lock();
|
||||
if (m_pending_items_fetched == false && queue_sp) {
|
||||
if (!m_pending_items_fetched && queue_sp) {
|
||||
result = queue_sp->GetNumPendingWorkItems();
|
||||
} else {
|
||||
result = m_pending_items.size();
|
||||
|
||||
Reference in New Issue
Block a user