All of lore.kernel.org
 help / color / mirror / Atom feed
From: Markus Elfring <Markus.Elfring@web.de>
To: Julia Lawall <julia.lawall@inria.fr>
Cc: Coccinelle <cocci@systeme.lip6.fr>
Subject: Re: [Cocci] Checking SmPL data processing for enumerations
Date: Fri, 1 May 2020 07:15:25 +0200	[thread overview]
Message-ID: <69ddcc1f-77d2-a1cd-8b2d-e64daa13d00a@web.de> (raw)
In-Reply-To: <alpine.DEB.2.21.2004301913110.13683@hadrien>

>> @display@
>> int i;
>> @@
>>  return
>> *       -i
>>  ;
>> Why are source code places presented which do not contain a key word
>> I was looking for this test approach?
>
> I don't know.  With --debug you can see that there are only two matches.
> So maybe it is a pretty printing problem.

Can another tiny source file example help here for further clarification?

elfring@Sonne:~/Projekte/Coccinelle/janitor> spatch show_returns_of_negative_integers2.cocci ../Probe/enum-test1.c
…
@@ -1,5 +1,3 @@
 int my_test(void)
 {
-enum { x } e;
-return -1;
 }


How can such a software situation be improved?

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

      reply	other threads:[~2020-05-01  5:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-30 17:06 [Cocci] Checking search results for two enumerations Markus Elfring
2020-04-30 17:16 ` Julia Lawall
2020-05-01  5:15   ` Markus Elfring [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=69ddcc1f-77d2-a1cd-8b2d-e64daa13d00a@web.de \
    --to=markus.elfring@web.de \
    --cc=cocci@systeme.lip6.fr \
    --cc=julia.lawall@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.