about preprocessed code

2012-11-08 Thread Alberto Lozano Alelu
Hello. In my plugin to analyze C++ code, I would like to detect elements (classes, methods, statements,...) that have been generated by preprocess with expansion of macros Is it possible? Can I get this information with TREE api? Thanks in advance

About trees and expanded code by macros

2012-05-14 Thread Alberto Lozano Alelu
Hello. I'am developing an statement detector for c++ and I would like to detect if an statement is expanded from macro. Can I detect in ast tree if an statement is expanded code from macro? Thanks.

Access to source code from an analyser

2012-01-19 Thread Alberto Lozano Alelu
Hello. I'm developing a C++ analyzer and I would like to get source text of file when I'm analyzing C++ code. When I'm analyzing source code I would like to get source text line from a location of a type. I have got type location but I don't know a function to get source line text from source

Re: Access to source code from an analyser

2012-01-19 Thread Alberto Lozano Alelu
need to have source text Thanks you very much. On 19 January 2012 13:12, Richard Guenther richard.guent...@gmail.com wrote: On Thu, Jan 19, 2012 at 12:56 PM, Alberto Lozano Alelu ale...@gmail.com wrote: Hello. I'm developing a C++ analyzer and I would like to get source text of file when

About TYPE_DECL, typedefs and TYPE_NEXT_VARIANT

2011-11-18 Thread Alberto Lozano Alelu
Hello. First at all. This is my first message in this mailing list. I'm developing a static source analyzer from c++ frontend (in future it will be a gcc plugin) and I get problems when I access to type of typedef. When I get a typedef, I would like to show the definition. I use: tree