Simplify boolean expressions using true and false with clang-tidy
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
On all three instances, please, keep the parenthesis, to avoid future problems with order of operators.
Comment Actions
Do you find the order of operations unclear as it is now or do you expect confusion later if the code is changed?
I personally find return a < b; nicer and more consistent with existing code than return (a < b);.
Comment Actions
I guess you're right. Let it be for whomever change this to make sure operator precedence is followed. LGTM, Thanks!
Comment Actions
Can someone commit this for me, please? I don't have commit access.
Patch by Richard Thomson
Comment Actions
Can someone commit this for me, please? I don't have commit access.
Patch by Richard Thomson