cocci.inria.fr archive mirror
 help / color / mirror / Atom feed
* Re: [Cocci] [PATCH 1/2] parsing_c: Align C AST and Cocci AST for const pointer variants
@ 2020-02-08  8:30 Markus Elfring
  2020-02-08 12:41 ` Jaskaran Singh
  0 siblings, 1 reply; 4+ messages in thread
From: Markus Elfring @ 2020-02-08  8:30 UTC (permalink / raw)
  To: Jaskaran Singh, cocci; +Cc: linux-kernel-mentees

> 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?

Regards,
Markus
_______________________________________________
Cocci mailing list
Cocci@systeme.lip6.fr
https://systeme.lip6.fr/mailman/listinfo/cocci

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-02-08 12:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-08  8:30 [Cocci] [PATCH 1/2] parsing_c: Align C AST and Cocci AST for const pointer variants Markus Elfring
2020-02-08 12:41 ` Jaskaran Singh
2020-02-08 12:56   ` [Cocci] Linux dev-tools: Handling complex types and attributes in Coccinelle Markus Elfring
2020-02-08 12:56   ` Markus Elfring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).