Re: Debugging the tree object constructed by cp_parser

2023-12-05 Thread Stan Srednyak via Gcc
Hi David, Thanks for your suggestion. I really appreciate it. But I would like to modify the trees as they are constructed. So the first step is to understand how to print them out ( using debug_tree() or even printf()) from inside cp_parser.cc. I think it is a reasonable question: where are the

Re: Debugging the tree object constructed by cp_parser

2023-12-04 Thread David Malcolm via Gcc
On Mon, 2023-12-04 at 10:09 -0500, Stan Srednyak wrote: > Hi David, thanks for your email. I really appreciate it. > > Your notes are certainly of help, but I also had a specific question: > how > to access the trees as they are being constructed by the front end. > Do you > have an answer to this

Re: Debugging the tree object constructed by cp_parser

2023-12-04 Thread Stan Srednyak via Gcc
Hi David, thanks for your email. I really appreciate it. Your notes are certainly of help, but I also had a specific question: how to access the trees as they are being constructed by the front end. Do you have an answer to this? I looked into GCC internals docs. The section on the front end (se

Re: Debugging the tree object constructed by cp_parser

2023-12-03 Thread David Malcolm via Gcc
On Sat, 2023-12-02 at 17:41 -0500, Stan Srednyak via Gcc wrote: > Dear GCC community, > > I am assigned the task to debug the trees as being produced by the > cp_parser. I was able to print some of the trees using the > debug_tree() > function. But I am still confused as to where is the tree objec