]> git.ipfire.org Git - thirdparty/git.git/commit
Merge branch 'ab/cocci-unused'
authorJunio C Hamano <gitster@pobox.com>
Mon, 18 Jul 2022 20:31:56 +0000 (13:31 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 18 Jul 2022 20:31:57 +0000 (13:31 -0700)
commit7f8d098b1b1ca1e5b91b17d05b51bc5b7a7ad6bf
tree5f4b1b70e19b990092cecc676422042ad12e642a
parent6d003858e5cb82a4ac1892fa6c02604b0aa27fba
parent06f5f8940c0335f2a5b0a7bbd086115f4659eaa8
Merge branch 'ab/cocci-unused'

Add Coccinelle rules to detect the pattern of initializing and then
finalizing a structure without using it in between at all, which
happens after code restructuring and the compilers fail to
recognize as an unused variable.

* ab/cocci-unused:
  cocci: generalize "unused" rule to cover more than "strbuf"
  cocci: add and apply a rule to find "unused" strbufs
  cocci: have "coccicheck{,-pending}" depend on "coccicheck-test"
  cocci: add a "coccicheck-test" target and test *.cocci rules
  Makefile & .gitignore: ignore & clean "git.res", not "*.res"
  Makefile: remove mandatory "spatch" arguments from SPATCH_FLAGS
Makefile
builtin/fetch.c
diff.c