cocci.inria.fr archive mirror
 help / color / mirror / Atom feed
From: Julia Lawall <julia.lawall@lip6.fr>
To: Michele Martone <michelemartone@users.sf.net>
Cc: cocci@systeme.lip6.fr
Subject: Re: [Cocci] [PATCH] --c++ --test will assume .cpp extension, not .c
Date: Wed, 26 Jun 2019 08:04:14 +0200 (CEST)	[thread overview]
Message-ID: <alpine.DEB.2.21.1906260804030.2496@hadrien> (raw)
In-Reply-To: <20190626055059.GA9241@localhost>



On Wed, 26 Jun 2019, Michele Martone wrote:

> --c++ --test will assume .cpp extension, not .c
>
> Signed-off-by: Michele Martone <michelemartone@users.sf.net>

Applied, thanks.

julia

> ---
> diff --git a/testing.ml b/testing.ml
> index 258e6c6f..784040fe 100644
> --- a/testing.ml
> +++ b/testing.ml
> @@ -97,7 +97,7 @@ let testone prefix x compare_with_expected =
>    let x    = if x =~ "\\(.*\\)_ver0$" then matched1 x else x in
>    let base = if x =~ "\\(.*\\)_ver[0-9]+$" then matched1 x else x in
>
> -  let cfile      = prefix ^ x ^ ".c" in
> +  let cfile      = if !Flag.c_plus_plus then prefix ^ x ^ ".cpp" else prefix ^ x ^ ".c" in
>    let cocci_file = prefix ^ base ^ ".cocci" in
>
>    let expected_out = prefix ^ base ^ out_suffix in
>
> _______________________________________________
> Cocci mailing list
> Cocci@systeme.lip6.fr
> https://systeme.lip6.fr/mailman/listinfo/cocci
>
_______________________________________________
Cocci mailing list
Cocci@systeme.lip6.fr
https://systeme.lip6.fr/mailman/listinfo/cocci

      reply	other threads:[~2019-06-26  6:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-26  5:50 [Cocci] [PATCH] --c++ --test will assume .cpp extension, not .c Michele Martone
2019-06-26  6:04 ` Julia Lawall [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=alpine.DEB.2.21.1906260804030.2496@hadrien \
    --to=julia.lawall@lip6.fr \
    --cc=cocci@systeme.lip6.fr \
    --cc=michelemartone@users.sf.net \
    /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 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).