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:
@@ -88,7 +88,7 @@ bool CFCMutableArray::SetValueAtIndex(CFIndex idx, const void *value) {
|
||||
bool CFCMutableArray::AppendValue(const void *value, bool can_create) {
|
||||
CFMutableArrayRef array = get();
|
||||
if (array == NULL) {
|
||||
if (can_create == false)
|
||||
if (!can_create)
|
||||
return false;
|
||||
array =
|
||||
::CFArrayCreateMutable(kCFAllocatorDefault, 0, &kCFTypeArrayCallBacks);
|
||||
@@ -106,7 +106,7 @@ bool CFCMutableArray::AppendCStringAsCFString(const char *s,
|
||||
bool can_create) {
|
||||
CFMutableArrayRef array = get();
|
||||
if (array == NULL) {
|
||||
if (can_create == false)
|
||||
if (!can_create)
|
||||
return false;
|
||||
array =
|
||||
::CFArrayCreateMutable(kCFAllocatorDefault, 0, &kCFTypeArrayCallBacks);
|
||||
@@ -124,7 +124,7 @@ bool CFCMutableArray::AppendFileSystemRepresentationAsCFString(
|
||||
const char *s, bool can_create) {
|
||||
CFMutableArrayRef array = get();
|
||||
if (array == NULL) {
|
||||
if (can_create == false)
|
||||
if (!can_create)
|
||||
return false;
|
||||
array =
|
||||
::CFArrayCreateMutable(kCFAllocatorDefault, 0, &kCFTypeArrayCallBacks);
|
||||
|
||||
Reference in New Issue
Block a user