bind9/cocci
Ondřej Surý 9dfa33050b Add semantic patch to find void f() { ... return ((void)g())); ... }
When a function returns void, it can be used as an argument to return in
function returning also void, e.g.:

void in(void) {
  return;
}

void out(void) {
  return (in());
}

while this is legal, it should be rewritten as:

void out(void) {
  in();
  return;
}

The semantic patch just find the occurrences, and they need to be fixed
by hand.
2019-12-06 13:42:18 +01:00
..
.gitignore Add unreachable.spatch coccinelle recipe and run it in precheck CI phase 2018-11-22 09:28:00 -05:00
config-h.spatch Add semantic patch to remove occurences of '#include <config.h>' 2019-03-08 15:15:05 +01:00
dns_name_copy-with-result.spatch Add semantic patches to correctly check dns_name_copy(..., NULL) return code 2019-10-01 10:43:26 +10:00
dns_name_copy.spatch Add semantic patches to correctly check dns_name_copy(..., NULL) return code 2019-10-01 10:43:26 +10:00
dns_name_copynf.spatch Add semantic patch to replace RUNTIME_CHECK(dns_name_copy(..., NULL)) with dns_name_copynf 2019-10-01 10:43:26 +10:00
dns_name_dup.disabled Disable no longer useful semantic patches 2019-11-29 14:26:14 +01:00
dns_rbtnodechain_init.disabled Disable no longer useful semantic patches 2019-11-29 14:26:14 +01:00
isc_event_allocat_never_fail.spatch isc_event_allocate() can't fail now, add spatch to remove the checks 2019-08-30 01:04:28 -04:00
isc_mem_allocate_never_fail.spatch Add spatch for isc_mem_allocate; it also cannot fail gracefully 2019-07-23 15:32:35 -04:00
isc_mem_create_never_fail.disabled Disable no longer useful semantic patches 2019-11-29 14:26:14 +01:00
isc_mem_get_never_fail.spatch Add semantic patch to remove checking for isc_mem_get() return value 2019-07-23 15:32:35 -04:00
isc_mem_putanddetach.spatch Add spatch to replace isc_mem_put+isc_mem_detach with isc_mem_putanddetach 2019-07-31 10:26:40 +02:00
isc_mem_strdup_never_fail.spatch Add spatch for isc_mem_strdup; it also cannot fail gracefully 2019-07-23 15:32:35 -04:00
memcpy.spatch Add spatch to replace memcpy usage with memmove 2019-07-12 15:27:06 +02:00
return-void-from-void.spatch Add semantic patch to find void f() { ... return ((void)g())); ... } 2019-12-06 13:42:18 +01:00
unreachable.spatch Add unreachable.spatch coccinelle recipe and run it in precheck CI phase 2018-11-22 09:28:00 -05:00