[Linux-kernel-mentees] [Cocci] [PATCH 1/2] parsing_c: Align C AST and Cocci AST for const pointer variants

Markus Elfring Markus.Elfring at web.de
Sat Feb 8 08:30:36 UTC 2020

> For a pointer, the C parser constructed an AST dissimilar from that
> of the Cocci AST. This caused failures in matching with certain
> pointer types. For example, for the following case:
> char *1 const *2 id;
> The C AST constructed would be:
> const Pointer1 -> Pointer2 -> char
> The Cocci AST constructed would be:
> Pointer2 -> const Pointer1 -> char

Which software development tools support to check such information?


More information about the Linux-kernel-mentees mailing list