/usr/share/doc/git/contrib/coccinelle
NameSizeModeActions
array.cocci12220644editdlrm
commit.cocci7620644editdlrm
flex_alloc.cocci2660644editdlrm
free.cocci1460644editdlrm
hashmap.cocci2800644editdlrm
object_id.cocci12800644editdlrm
preincr.cocci500644editdlrm
qsort.cocci6100644editdlrm
README21300644editdlrm
strbuf.cocci8670644editdlrm
swap.cocci2800644editdlrm
the_repository.pending.cocci20420644editdlrm
xstrdup_or_null.cocci1610644editdlrm
Edit: /usr/share/doc/git/contrib/coccinelle/object_id.cocci (1280B)
@@ struct object_id OID; @@ - is_null_sha1(OID.hash) + is_null_oid(&OID) @@ struct object_id *OIDPTR; @@ - is_null_sha1(OIDPTR->hash) + is_null_oid(OIDPTR) @@ struct object_id OID; @@ - hashclr(OID.hash) + oidclr(&OID) @@ identifier f != oidclr; struct object_id *OIDPTR; @@ f(...) {<... - hashclr(OIDPTR->hash) + oidclr(OIDPTR) ...>} @@ struct object_id OID1, OID2; @@ - hashcmp(OID1.hash, OID2.hash) + oidcmp(&OID1, &OID2) @@ identifier f != oidcmp; struct object_id *OIDPTR1, OIDPTR2; @@ f(...) {<... - hashcmp(OIDPTR1->hash, OIDPTR2->hash) + oidcmp(OIDPTR1, OIDPTR2) ...>} @@ struct object_id *OIDPTR; struct object_id OID; @@ - hashcmp(OIDPTR->hash, OID.hash) + oidcmp(OIDPTR, &OID) @@ struct object_id *OIDPTR; struct object_id OID; @@ - hashcmp(OID.hash, OIDPTR->hash) + oidcmp(&OID, OIDPTR) @@ struct object_id *OIDPTR1; struct object_id *OIDPTR2; @@ - oidcmp(OIDPTR1, OIDPTR2) == 0 + oideq(OIDPTR1, OIDPTR2) @@ identifier f != hasheq; expression E1, E2; @@ f(...) {<... - hashcmp(E1, E2) == 0 + hasheq(E1, E2) ...>} @@ struct object_id *OIDPTR1; struct object_id *OIDPTR2; @@ - oidcmp(OIDPTR1, OIDPTR2) != 0 + !oideq(OIDPTR1, OIDPTR2) @@ identifier f != hasheq; expression E1, E2; @@ f(...) {<... - hashcmp(E1, E2) != 0 + !hasheq(E1, E2) ...>}