Skip to contentSkip to conversation

Replacing the type casting

Cocci Markus Elfring 1 participant 1 message Feb 8, 2020

lore
Share & tools
lore
#0 lore raw
Quoted 3 lines
Quoted 1 line

I must be missing something very obvious as just removing the type works, but adding the + (dns_rdatacommon_t *) line makes the rule fail.

Coccinelle is not able to infer typedefs in casts.

Under which circumstances can this software situation be reconsidered?

How long will an extra metavariable specification like “typedef dns_rdatacommon_t;” be needed for the mentioned transformation approach?

Regards,
Markus
_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci