mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-09 06:46:55 +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;
|
struct ist i;
|
||||||
@@
|
@@
|
||||||
|
|
||||||
|
- (\(i.ptr\|istptr(i)\) + \(i.len\|istlen(i)\))
|
||||||
|
+ istend(i)
|
||||||
|
|
||||||
|
@@
|
||||||
|
struct ist i;
|
||||||
|
@@
|
||||||
|
|
||||||
- i.ptr != NULL
|
- i.ptr != NULL
|
||||||
+ isttest(i)
|
+ isttest(i)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user