Add simple command line tool to view the AST
This commit is contained in:
parent
d66d6d26af
commit
01b206d453
7 changed files with 358 additions and 60 deletions
|
|
@ -110,7 +110,7 @@ unsigned test_visit(const cppast::cpp_file& file, Func f, bool check_code = true
|
|||
{
|
||||
auto count = 0u;
|
||||
cppast::visit(file, [&](const cppast::cpp_entity& e, cppast::visitor_info info) {
|
||||
if (info == cppast::visitor_info::container_entity_exit)
|
||||
if (info.event == cppast::visitor_info::container_entity_exit)
|
||||
return true; // already handled
|
||||
|
||||
if (e.kind() == T::kind())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue