This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Access to source code from an analyser


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.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]