Clang import; in AstNode::dumpAst print <<<<NULL>>>>

This commit is contained in:
Daniel Marjamäki 2020-01-09 11:04:30 +01:00
parent 3d2d4c5cbd
commit 1be41cb8fb
1 changed files with 2 additions and 0 deletions

View File

@ -239,6 +239,8 @@ void clangastdump::AstNode::dumpAst(int num, int indent) const
for (int c = 0; c < children.size(); ++c) {
if (children[c])
children[c]->dumpAst(c, indent + 2);
else
std::cout << std::string(indent + 2, ' ') << "<<<<NULL>>>>>" << std::endl;
}
}