cocci.inria.fr archive mirror
 help / color / mirror / Atom feed
* [Cocci] [PATCH 0/4] parsing_c: parser: Add end_attributes_opt rule
@ 2020-06-08 12:20 Jaskaran Singh
  2020-06-08 12:20 ` [Cocci] [PATCH 1/4] " Jaskaran Singh
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Jaskaran Singh @ 2020-06-08 12:20 UTC (permalink / raw)
  To: cocci; +Cc: linux-kernel-mentees

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-jaskaransingh7654321@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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-06-09 10:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-08 12:20 [Cocci] [PATCH 0/4] parsing_c: parser: Add end_attributes_opt rule Jaskaran Singh
2020-06-08 12:20 ` [Cocci] [PATCH 1/4] " Jaskaran Singh
2020-06-08 12:20 ` [Cocci] [PATCH 2/4] parsing_c: parser: Use end_attributes_opt in decl2 Jaskaran Singh
2020-06-08 12:20 ` [Cocci] [PATCH 3/4] parsing_c: parser: Use end_attributes_opt in field_declaration Jaskaran Singh
2020-06-08 12:20 ` [Cocci] [PATCH 4/4] parsing_c: parser: Use end_attributes_opt in cpp_other Jaskaran Singh
2020-06-09 10:00 ` [Cocci] [PATCH 0/4] parsing_c: parser: Add end_attributes_opt rule Julia Lawall

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).