[Linux-kernel-mentees] [PATCH 0/2] cocci: Align the C AST and Cocci AST for pointer

Jaskaran Singh jaskaransingh7654321 at gmail.com
Wed Feb 5 13:03:25 UTC 2020


This series is to address the type matching problem in Coccinelle.

Patch 1/2 is for aligning the C and Cocci AST so that
pointer to const pointer and its variants can be matched.

Patch 2/2 consists of a test case for matching a pointer to
const pointer and its variants.

 parsing_c/parser_c.mly      |    4 ++--
 parsing_c/pretty_print_c.ml |    6 ++++--
 tests/constptr.c            |    7 +++++++
 tests/constptr.cocci        |   19 +++++++++++++++++++
 tests/constptr.res          |    7 +++++++
 5 files changed, 39 insertions(+), 4 deletions(-)




More information about the Linux-kernel-mentees mailing list