This will be not detected:
void func2(void)
{
int x = 0;
int y = 1;
if (x < 0)
{
y++;
}
else if (0 > x) // same condition
{
y--;
}
}
but I'm not sure if there is already a ticket.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This will be not detected:
void func2(void)
{
int x = 0;
int y = 1;
if (x < 0)
{
y++;
}
else if (0 > x) // same condition
{
y--;
}
}
but I'm not sure if there is already a ticket.
hmm.. I vaguely think that there is a ticket for such a problem. It's a simple fix so probably it has the "simple" keyword.