This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Access to source code from an analyser
- From: Diego Novillo <dnovillo at google dot com>
- To: Alberto Lozano Alelu <alelus at gmail dot com>
- Cc: Richard Guenther <richard dot guenther at gmail dot com>, gcc at gcc dot gnu dot org
- Date: Wed, 01 Feb 2012 18:24:48 -0800
- Subject: Re: Access to source code from an analyser
- References: <CAA71jMtrnsM92Cb-Wd6D+gvD49GWtvq_PHHttYJ+cDreVAO7fw@mail.gmail.com> <CAFiYyc0-Wyf+WLk3QUOnr74zS95bvR1_3kFg=gp8_f9v0V0A4Q@mail.gmail.com> <CAA71jMvUPw263bfJL2n0VHGVwhKozs9U8ZcTyBnegoB1xfBgLQ@mail.gmail.com>
On 12-01-19 05:06 , Alberto Lozano Alelu wrote:
I need to have source text
For that, you will need to read the file or get the line from libcpp's
buffers. Accessing libcpp's buffer will not be trivial, since they are
in libcpp's private structures. You're better off opening the file and
reading from that line/col.
Diego.