From: Michele Martone <michelemartone@users.sf.net>
To: cocci@systeme.lip6.fr
Subject: [Cocci] [PATCH] --c++ --test will assume .cpp extension, not .c
Date: Wed, 26 Jun 2019 07:50:59 +0200 [thread overview]
Message-ID: <20190626055059.GA9241@localhost> (raw)
--c++ --test will assume .cpp extension, not .c
Signed-off-by: Michele Martone <michelemartone@users.sf.net>
---
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
next reply other threads:[~2019-06-26 6:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-26 5:50 Michele Martone [this message]
2019-06-26 6:04 ` [Cocci] [PATCH] --c++ --test will assume .cpp extension, not .c Julia Lawall
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=20190626055059.GA9241@localhost \
--to=michelemartone@users.sf.net \
--cc=cocci@systeme.lip6.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.