[Cocci] [PATCH 0/4] parsing_c: parser: Add end_attributes_opt rule

2020-06-08 Thread Jaskaran Singh
Patches for improving the C parsing of attributes[1] introduced a lot
redundant code in the C parser. This patch series resolves this by adding
a rule for optional end attributes and merging the redundant code
together.

[1]
[PATCH v2 00/25] cocci: Improve C parsing of attributes
https://lore.kernel.org/cocci/20200528122428.4212-1-jaskaransingh7654...@gmail.com/

Jaskaran Singh (4):
  parsing_c: parser: Add end_attributes_opt rule
  parsing_c: parser: Use end_attributes_opt in decl2
  parsing_c: parser: Use end_attributes_opt in field_declaration
  parsing_c: parser: Use end_attributes_opt in cpp_other

 parser_c.mly |   96 +--
 1 file changed, 9 insertions(+), 87 deletions(-)



___
Cocci mailing list
Cocci@systeme.lip6.fr
https://systeme.lip6.fr/mailman/listinfo/cocci


Re: [Cocci] [PATCH 0/4] parsing_c: parser: Add end_attributes_opt rule

2020-06-08 Thread Markus Elfring
> Patches for improving the C parsing of attributes[1] introduced a lot
> redundant code in the C parser. This patch series resolves this by adding
> a rule for optional end attributes and merging the redundant code
> together.
>
> [1]
> [PATCH v2 00/25] cocci: Improve C parsing of attributes
> https://lore.kernel.org/cocci/20200528122428.4212-1-jaskaransingh7654...@gmail.com/

Could questionable source code have been avoided before?

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


Re: [Cocci] [PATCH 0/4] parsing_c: parser: Add end_attributes_opt rule

2020-06-09 Thread Julia Lawall



On Mon, 8 Jun 2020, Jaskaran Singh wrote:

> Patches for improving the C parsing of attributes[1] introduced a lot
> redundant code in the C parser. This patch series resolves this by adding
> a rule for optional end attributes and merging the redundant code
> together.

All are applied, thanks.

julia

>
> [1]
> [PATCH v2 00/25] cocci: Improve C parsing of attributes
> https://lore.kernel.org/cocci/20200528122428.4212-1-jaskaransingh7654...@gmail.com/
>
> Jaskaran Singh (4):
>   parsing_c: parser: Add end_attributes_opt rule
>   parsing_c: parser: Use end_attributes_opt in decl2
>   parsing_c: parser: Use end_attributes_opt in field_declaration
>   parsing_c: parser: Use end_attributes_opt in cpp_other
>
>  parser_c.mly |   96 
> +--
>  1 file changed, 9 insertions(+), 87 deletions(-)
>
>
>
>
___
Cocci mailing list
Cocci@systeme.lip6.fr
https://systeme.lip6.fr/mailman/listinfo/cocci