mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-03 03:52:38 +00: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
@ -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 New Issue
Block a user