Rikard Falkeborn 82a1e3c61c CheckInternal: Extend redundant null pointer check before Token::Match() (#1789)
Improve the internal check for redundant null pointer check before
calling Token::Match() (and friends). Now, warn about code snippets like

    if (a && tok && Token::Match(tok, "foo"))

Also, extend the check for the inverted case.

There is still no warning for

    if (tok && a && Token::Match(tok, "foo"))

since that would require checking if a is independent of tok.
2019-04-06 07:44:44 +02:00
..
2018-10-13 18:20:31 +02:00
2019-02-09 07:24:06 +01:00
2019-03-16 09:17:50 +01:00
2018-10-13 18:20:31 +02:00
2019-03-16 09:17:50 +01:00
2019-02-09 07:24:06 +01:00
2019-03-16 09:17:50 +01:00
2019-03-16 09:17:50 +01:00
2019-03-16 09:17:50 +01:00
2019-03-16 09:17:50 +01:00
2019-03-16 09:17:50 +01:00
2019-03-16 09:17:50 +01:00
2019-03-16 09:17:50 +01:00
2019-02-09 07:24:06 +01:00
2019-03-16 09:17:50 +01:00
2019-02-09 07:24:06 +01:00
2019-03-16 09:17:50 +01:00
2019-03-16 09:17:50 +01:00
2019-04-06 06:54:38 +02:00
2019-04-06 06:54:38 +02:00
2019-02-09 07:24:06 +01:00
2019-03-16 09:17:50 +01:00
2019-03-16 09:17:50 +01:00
2019-02-09 07:24:06 +01:00
2019-03-16 09:17:50 +01:00
2019-02-09 07:24:06 +01:00
2019-03-16 09:17:50 +01:00
2019-03-17 10:50:06 +01:00
2019-03-17 08:19:56 +01:00
2019-03-23 08:36:10 +01:00
2019-02-09 07:24:06 +01:00
2019-02-09 07:24:06 +01:00
2019-03-27 18:15:12 +01:00
2019-02-09 07:24:06 +01:00
2018-12-25 21:11:23 +01:00
2019-02-09 07:24:06 +01:00
2019-02-09 07:24:06 +01:00
2019-02-09 07:24:06 +01:00
2019-02-09 07:24:06 +01:00
2018-10-13 18:20:31 +02:00
2018-10-13 18:20:31 +02:00
2018-03-31 20:59:09 +02:00
2018-10-20 15:28:34 +02:00
2018-06-17 09:06:16 +02:00
2019-03-17 08:19:56 +01:00
2019-02-09 07:24:06 +01:00
2018-06-17 17:20:16 +02:00
2019-02-09 07:24:06 +01:00
2019-03-31 09:34:19 +02:00
2019-02-27 21:30:54 +01:00