Skip to content

Commit a6682a4

Browse files
committedDec 15, 2018
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
1 parent 9d18273 commit a6682a4

File tree

177 files changed

+599
-1018
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

177 files changed

+599
-1018
lines changed
 

‎lldb/include/lldb/Core/ModuleSpec.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -255,20 +255,20 @@ class ModuleSpec {
255255
if (match_module_spec.GetFileSpecPtr()) {
256256
const FileSpec &fspec = match_module_spec.GetFileSpec();
257257
if (!FileSpec::Equal(fspec, GetFileSpec(),
258-
fspec.GetDirectory().IsEmpty() == false))
258+
!fspec.GetDirectory().IsEmpty()))
259259
return false;
260260
}
261261
if (GetPlatformFileSpec() && match_module_spec.GetPlatformFileSpecPtr()) {
262262
const FileSpec &fspec = match_module_spec.GetPlatformFileSpec();
263263
if (!FileSpec::Equal(fspec, GetPlatformFileSpec(),
264-
fspec.GetDirectory().IsEmpty() == false))
264+
!fspec.GetDirectory().IsEmpty()))
265265
return false;
266266
}
267267
// Only match the symbol file spec if there is one in this ModuleSpec
268268
if (GetSymbolFileSpec() && match_module_spec.GetSymbolFileSpecPtr()) {
269269
const FileSpec &fspec = match_module_spec.GetSymbolFileSpec();
270270
if (!FileSpec::Equal(fspec, GetSymbolFileSpec(),
271-
fspec.GetDirectory().IsEmpty() == false))
271+
!fspec.GetDirectory().IsEmpty()))
272272
return false;
273273
}
274274
if (match_module_spec.GetArchitecturePtr()) {

‎lldb/include/lldb/DataFormatters/TypeCategory.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ class TypeCategoryImpl {
344344
bool IsEnabled() const { return m_enabled; }
345345

346346
uint32_t GetEnabledPosition() {
347-
if (m_enabled == false)
347+
if (!m_enabled)
348348
return UINT32_MAX;
349349
else
350350
return m_enabled_position;

0 commit comments

Comments
 (0)
Please sign in to comment.