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:
@@ -571,7 +571,7 @@ bool SBThread::GetInfoItemByPathAsString(const char *path, SBStream &strm) {
|
||||
success = true;
|
||||
}
|
||||
if (node->GetType() == eStructuredDataTypeBoolean) {
|
||||
if (node->GetAsBoolean()->GetValue() == true)
|
||||
if (node->GetAsBoolean()->GetValue())
|
||||
strm.Printf("true");
|
||||
else
|
||||
strm.Printf("false");
|
||||
@@ -1470,7 +1470,7 @@ SBThread SBThread::GetExtendedBacktraceThread(const char *type) {
|
||||
}
|
||||
}
|
||||
|
||||
if (log && sb_origin_thread.IsValid() == false)
|
||||
if (log && !sb_origin_thread.IsValid())
|
||||
log->Printf("SBThread(%p)::GetExtendedBacktraceThread() is not returning a "
|
||||
"Valid thread",
|
||||
static_cast<void *>(exe_ctx.GetThreadPtr()));
|
||||
|
||||
Reference in New Issue
Block a user