mc-imperial / dredd

A mutation testing tool designed to work with large C++ (and C) codebases.
Apache License 2.0
13 stars 3 forks source link

Consider not bitwise-negating boolean expressions #108

Closed afd closed 2 years ago

afd commented 2 years ago

We see a lot of this warning:

warning: bitwise negation of a boolean expression always evaluates to 'true'; did you mean logical negation? [-Wbool-operation]

We should also consider other cases where mutations will end up being redundant.

afd commented 2 years ago

I think it indeed makes sense to avoid applying ~ to a boolean expression.

@JamesLee-Jones would you be able to do a PR to fix this? I don't think this should count as an optimisation.