From: "Martin Liška" <mliska@suse.cz>
To: GCC Development <gcc@gcc.gnu.org>,
Jason Merrill <jason@redhat.com>,
Marek Polacek <polacek@redhat.com>,
David Malcolm <dmalcolm@redhat.com>
Subject: Re: DECL_SOURCE_LOCATION including return type and template type
Date: Tue, 07 May 2019 07:07:00 -0000 [thread overview]
Message-ID: <6e6acd5e-b865-d198-236b-08965c7e0abf@suse.cz> (raw)
In-Reply-To: <8c36e7b1-ea8a-45bc-5795-314a851783e1@suse.cz>
PING^1
On 3/11/19 1:12 PM, Martin Liška wrote:
> Hi.
>
> For a test-case like:
>
> ââââââââ¬âââââââââââââââââââââââââââââââââ
> â File: test.cpp
> ââââââââ¼âââââââââââââââââââââââââââââââââ
> 1 â template <class T>
> 2 â T
> 3 â abs(T x) {
> 4 â if (x < 0) {
> 5 â return -x;
> 6 â } else {
> 7 â return x;
> 8 â }
> 9 â }
> 10 â
> 11 â int main(int argc, char **argv)
> 12 â {
> 13 â return abs<int> (argc);
> 14 â }
>
> it would be handy in GCOV to provide extended source location
> which would include return type and template type.
> Right now, DECL_SOURCE_LOCATION is:
> test.cpp:3:1-9:1
>
> Would it be possible to achieve?
> Thanks,
> Martin
>
prev parent reply other threads:[~2019-05-07 7:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-11 12:12 Martin Liška
2019-05-07 7:07 ` Martin Liška [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=6e6acd5e-b865-d198-236b-08965c7e0abf@suse.cz \
--to=mliska@suse.cz \
--cc=dmalcolm@redhat.com \
--cc=gcc@gcc.gnu.org \
--cc=jason@redhat.com \
--cc=polacek@redhat.com \
/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 read-only IMAP folder(s) and NNTP newsgroup(s).