mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-15 21:59:41 -04:00
DEV: coccinelle: Add rule to use istend() where possible
This replaces `i.ptr + i.len` by `istend()`.
This commit is contained in:
parent
9c523f1042
commit
958f50454a
1 changed files with 7 additions and 0 deletions
|
|
@ -41,6 +41,13 @@ struct ist i;
|
|||
struct ist i;
|
||||
@@
|
||||
|
||||
- (\(i.ptr\|istptr(i)\) + \(i.len\|istlen(i)\))
|
||||
+ istend(i)
|
||||
|
||||
@@
|
||||
struct ist i;
|
||||
@@
|
||||
|
||||
- i.ptr != NULL
|
||||
+ isttest(i)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue