public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Debugging the tree object constructed by cp_parser
@ 2023-12-02 22:41 Stan Srednyak
  2023-12-03 18:00 ` David Malcolm
  0 siblings, 1 reply; 5+ messages in thread
From: Stan Srednyak @ 2023-12-02 22:41 UTC (permalink / raw)
  To: gcc

[-- Attachment #1: Type: text/plain, Size: 815 bytes --]

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 object that
corresponds to the translation unit being parsed. There is no such field in
cp_parser, and in the few tiers of functions calls starting from
parse_file() function that I followed so far, I was not able to find any
variable remotely similar to the AST of functions/structs etc. that must be
constructed by this great piece of software. I would very much appreciate
any explanation from the great experts in gcc on this mailing list. I
posted a thread at gcc-help, but apparently it is too obvious of a question
to be addressed there.

Thanks in advance,
sincerely yours,

Stan Srednyak

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-12-05 12:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-02 22:41 Debugging the tree object constructed by cp_parser Stan Srednyak
2023-12-03 18:00 ` David Malcolm
2023-12-04 15:09   ` Stan Srednyak
2023-12-04 15:45     ` David Malcolm
2023-12-05 12:25       ` Stan Srednyak

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).