[cfe-dev] Initial tokens

david raila raila at illinois.edu
Thu Oct 22 11:25:53 PDT 2009


If I parse an empty file with a few breakpoints set to watch what's going on
I see that there must be something predefined to give 25 calls to  
ConsumeToken for
example.  What are they and where are these pushed in?
Thanks,
dkr


(gdb) inf br
Num     Type           Disp Enb Address            What
1       breakpoint     keep y   0x00000000008e4d67 in 
clang::Parser::ParseDeclarator(clang::Declarator&) at ParseDecl.cpp:2087
         breakpoint already hit 6 times
2       breakpoint     keep y   0x00000000008df779 in 
clang::Parser::ParseDeclarationAfterDeclarator(clang::Declarator&, 
clang::Parser::ParsedTemplateInfo const&) at ParseDecl.cpp:402
         breakpoint already hit 2 times
3       breakpoint     keep y   0x00000000008dc169 in 
clang::Parser::ConsumeToken() at 
/home/raila/dpc++/clang/llvm/tools/clang/lib/Parse/../../include/clang/Parse/Parser.h:212
         breakpoint already hit 25 times




More information about the cfe-dev mailing list