Ken-Patrick Lehrmann a114bf0293 Fix false positives with condition with || and &&
The value of something in the middle of a condition with mixed || and &&
gives no information on which branch will be taken.
For instance with:
```
int f(int a, int b, bool x) {\n"
  if (a == 1 && (!(b == 2 && x))) {
  } else {
    if (x) {
    }
  }

  return 0;
}
```
We can enter the if part whether x is true or false, and similarly,
enter the else part whether x is true or false. Same thing with the
value of b.

This fixes the following false positive with above code:
```
:4:13: style: Condition 'x' is always true [knownConditionTrueFalse]
        if (x) {
            ^
:2:33: note: Assuming that condition 'x' is not redundant
    if (a == 6 && (!(b == 21 && x))) {
                                ^

```
2020-09-10 23:27:39 +02:00
..
2020-06-13 16:37:12 +02:00
2020-09-10 08:02:45 +02:00
2020-06-19 13:16:48 +02:00
2020-06-13 16:37:12 +02:00
2020-05-23 07:16:49 +02:00
2020-05-23 07:16:49 +02:00
2020-06-13 16:37:12 +02:00
2020-05-10 11:16:32 +02:00
2020-06-13 16:37:12 +02:00
2020-05-10 11:16:32 +02:00
2020-06-13 16:37:12 +02:00
2020-06-13 16:37:12 +02:00
2020-06-13 16:37:12 +02:00
2020-06-13 16:37:12 +02:00
2020-06-13 16:37:12 +02:00
2020-09-08 12:39:27 -05:00
2020-05-10 11:16:32 +02:00
2020-05-23 07:16:49 +02:00
2020-06-29 15:54:51 -05:00
2020-09-06 07:47:17 +02:00
2020-07-23 10:09:06 +02:00
2020-06-13 16:37:12 +02:00
2020-07-21 11:27:03 +02:00
2020-05-23 07:30:22 +02:00
2020-05-23 07:16:49 +02:00
2020-09-10 08:02:15 +02:00
2020-06-19 13:16:48 +02:00
2020-05-23 07:16:49 +02:00
2020-05-23 07:16:49 +02:00
2020-05-10 11:16:32 +02:00
2020-08-23 17:17:33 +02:00
2020-07-21 11:27:03 +02:00
2020-09-10 08:02:45 +02:00
2020-09-10 08:02:45 +02:00
2020-05-10 11:16:32 +02:00
2020-06-14 07:16:14 +02:00