clang-tidy: fix readability-simplify-boolean-expr warnings

This commit is contained in:
Ben Boeckel
2021-01-22 10:38:50 -05:00
parent ca505718f4
commit 9ac8dbbb94
2 changed files with 2 additions and 3 deletions

View File

@@ -26,7 +26,6 @@ readability-*,\
-readability-magic-numbers,\
-readability-named-parameter,\
-readability-redundant-declaration,\
-readability-simplify-boolean-expr,\
-readability-uppercase-literal-suffix,\
-readability-use-anyofallof,\
"

View File

@@ -221,8 +221,8 @@ void CCONV cmAddUtilityCommand(void* arg, const char* utilityName,
// Pass the call to the makefile instance.
std::vector<std::string> no_byproducts;
mf->AddUtilityCommand(utilityName, (all ? false : true), nullptr,
no_byproducts, depends2, commandLines);
mf->AddUtilityCommand(utilityName, !all, nullptr, no_byproducts, depends2,
commandLines);
}
void CCONV cmAddCustomCommand(void* arg, const char* source,