[cfe-dev] Quenstion about ParseAST()

Journeyer J. Joh oosaprogrammer at gmail.com
Sun Aug 19 00:42:51 PDT 2012


Hello list,

http://www.opencpp.kr/ParseAST.jpg

I made a diagram about the global function ParseAST() in ParseAST.cpp

Could someone explain about the 1,2,3,4 above?

In my investigation, 2,3 loops for each top level declarations.
And the AST Parse Tree is completed before number 4 starts.
And Constants folding occurs in 3.

Expecially I wonder why CodeGenAction works before the complete AST is built.

Thank you very much in advance.

Journeyer J. Joh




-- 
----------------------------------------
Journeyer J. Joh
o o s a p r o g r a m m e r
a t
g m a i l  d o t  c o m
----------------------------------------



More information about the cfe-dev mailing list