mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Revert "[clang-tidy] Simplify boolean expressions"
This reverts commit 51870dff34
.
This commit is contained in:
parent
623d5ceb59
commit
364b4ea8bd
8 changed files with 51 additions and 25 deletions
11
src/CLI2.cpp
11
src/CLI2.cpp
|
@ -1492,9 +1492,11 @@ void CLI2::findIDs ()
|
|||
}
|
||||
|
||||
std::string raw = a.attribute ("raw");
|
||||
previousFilterArgWasAnOperator = a._lextype == Lexer::Type::op &&
|
||||
previousFilterArgWasAnOperator = (a._lextype == Lexer::Type::op &&
|
||||
raw != "(" &&
|
||||
raw != ")";
|
||||
raw != ")")
|
||||
? true
|
||||
: false;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1720,7 +1722,10 @@ void CLI2::insertIDExpr ()
|
|||
bool ascending = true;
|
||||
int low = strtol (r->first.c_str (), nullptr, 10);
|
||||
int high = strtol (r->second.c_str (), nullptr, 10);
|
||||
ascending = low <= high;
|
||||
if (low <= high)
|
||||
ascending = true;
|
||||
else
|
||||
ascending = false;
|
||||
|
||||
reconstructed.push_back (openParen);
|
||||
reconstructed.push_back (argID);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue