All of lore.kernel.org
 help / color / mirror / Atom feed
* [cocci] Reducing parentheses (with SmPL)?
@ 2025-07-19 12:04 Markus Elfring
  2025-07-19 19:16 ` Julia Lawall
  0 siblings, 1 reply; 26+ messages in thread
From: Markus Elfring @ 2025-07-19 12:04 UTC (permalink / raw)
  To: cocci

Hello,

Some information is provided also according to the question “How to remove
useless parentheses?” in the documentation of the semantic patch language.
https://gitlab.inria.fr/coccinelle/coccinelle/-/blob/2548098a0c8b148555f4bf11a12898ecaf023dea/docs/manual/tips.tex#L6-41

Another corresponding file contains a todo tag.
https://gitlab.inria.fr/coccinelle/coccinelle/-/blob/2548098a0c8b148555f4bf11a12898ecaf023dea/standard.iso#L382-397

It seems that some conditions should be reconsidered.

I would occasionally like to capture detailed expression code by metavariables.
I am unsure about the properties of the found expressions which should be reused somehow.
Thus I would tend to enclose such data by extra parentheses.
A manual inspection would indicate then for an adjusted code place that this
addition would occasionally be redundant.
Can this aspect be better supported automatically?

Regards,
Markus

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

end of thread, other threads:[~2025-07-22 11:26 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-19 12:04 [cocci] Reducing parentheses (with SmPL)? Markus Elfring
2025-07-19 19:16 ` Julia Lawall
2025-07-20  7:21   ` Markus Elfring
2025-07-20 14:10     ` Julia Lawall
2025-07-20 18:08       ` Markus Elfring
2025-07-21  5:30       ` Markus Elfring
2025-07-21  5:48         ` Julia Lawall
2025-07-21  6:30           ` Markus Elfring
2025-07-21  6:46             ` Julia Lawall
2025-07-21  6:58               ` Markus Elfring
2025-07-21  7:45                 ` Julia Lawall
2025-07-21  7:55                   ` Markus Elfring
2025-07-21  7:58                     ` Julia Lawall
2025-07-21  8:10                       ` Markus Elfring
2025-07-21  8:23                         ` Julia Lawall
2025-07-21  8:45                           ` Markus Elfring
2025-07-21  9:51                       ` Markus Elfring
2025-07-21 11:00                         ` Julia Lawall
2025-07-21 11:21                           ` Markus Elfring
2025-07-21 11:54                             ` Julia Lawall
2025-07-21 12:14                               ` Markus Elfring
2025-07-22  6:21                               ` Markus Elfring
2025-07-22  7:33                           ` Markus Elfring
     [not found]                             ` <479a2492-62de-2b9d-4899-4d4f35f653e9@inria.fr>
2025-07-22 11:10                               ` Markus Elfring
2025-07-22 11:12                                 ` Julia Lawall
2025-07-22 11:26                                   ` Markus Elfring

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.