[Linux-kernel-mentees] [PATCH 0/3] parsing_cocci: Improve attr management in context_neg et al

Jaskaran Singh jaskaransingh7654321 at gmail.com
Fri Jun 12 06:45:41 UTC 2020


Introduction of recent patches[1][2][3] for adding additional attributes to the SmPL AST introduced some poor management of attributes in the following files:
	parsing_cocci/context_neg.ml
	parsing_cocci/arity.ml
	parsing_cocci/unify_ast.ml
This patch series is for fixing these issues, by modifying cases wherever necessary.

[1]
[PATCH v3 00/23] cocci: Add parameter attributes to SmPL
https://lore.kernel.org/cocci/20200511101300.11101-1-jaskaransingh7654321@gmail.com/T/#t

[2]
[PATCH v3 00/32] cocci: Add cast attributes to C and SmPL ASTs
https://lore.kernel.org/cocci/20200529120703.31145-1-jaskaransingh7654321@gmail.com

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


Jaskaran Singh (3):
      parsing_cocci: arity: Apply mcode2arity on macrodecl/param attrs
      parsing_cocci: context_neg: Apply equal_mcode for cast/param attrs
      parsing_cocci: unify_ast: Apply unify_mcode to macrodecl attrs


 arity.ml       |   26 ++++++++++++++++++--------
 context_neg.ml |   12 ++++++++----
 unify_ast.ml   |    3 ++-
 3 files changed, 28 insertions(+), 13 deletions(-)




More information about the Linux-kernel-mentees mailing list