git
[Ported from github.com/git/git] Sync with Git 2.56.1
Brought by drakestapleton
git / tools / coccinelle / equals-null.cocci
| 1 | /* SPDX-License-Identifier: LGPL-2.1-or-later */ |
| 2 | @@ |
| 3 | expression e; |
| 4 | statement s; |
| 5 | @@ |
| 6 | if ( |
| 7 | ( |
| 8 | !e |
| 9 | | |
| 10 | - e == NULL |
| 11 | + !e |
| 12 | ) |
| 13 | ) |
| 14 | {...} |
| 15 | else s |
| 16 | |
| 17 | @@ |
| 18 | expression e; |
| 19 | statement s; |
| 20 | @@ |
| 21 | if ( |
| 22 | ( |
| 23 | e |
| 24 | | |
| 25 | - e != NULL |
| 26 | + e |
| 27 | ) |
| 28 | ) |
| 29 | {...} |
| 30 | else s |