Mentions légales du service

Skip to content

Add struct end attributes to SmPL

LAWALL Julia requested to merge struct_end into master

This patch series aims to add struct/union end attributes to SmPL, and is a continuation of the series "cocci: Improve C parsing of attributes"[1].

Three test cases are included:

  • detect_struct_endattr: Test case to detect a struct end attribute.

  • remove_struct_endattr: Test case to remove a struct end attribute as per the given SmPL.

  • remove_struct_endattr_allminus: Test case to remove a struct definition and check if the end attribute is removed as well.

This series is rebased on [2].

[1]: [RFC PATCH 00/25] cocci: Improve C parsing of attributes https://lore.kernel.org/cocci/20200424091801.13871-1-jaskaransingh7654321@gmail.com/

[2]: [PATCH 00/30] cocci: Add macrodecl attributes to C and SmPL ASTs https://lore.kernel.org/cocci/20200524171935.2504-1-jaskaransingh7654321@gmail.com/

Merge request reports