Mentions légales du service

Skip to content

cast attributes

LAWALL Julia requested to merge cast_attr2 into master

This patch series aims to add cast attributes to the C and SmPL ASTs, and match them in C source code. This is a continuation of the series "cocci: Improve C parsing of attributes"[1].

Three test cases are included:

  • detect_cast_attr: Test case to detect a parameter attribute.

  • remove_cast_attr: Test case to remove a parameter attribute as per the given SmPL.

  • remove_cast_attr_allminus: Test case to replace a type in a cast and checking if the attribute is removed as well.

[1]https://www.mail-archive.com/cocci@systeme.lip6.fr/msg07133.html

Merge request reports