Skip to content

Commit

Permalink
Clang-format cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich Newman committed Apr 11, 2023
1 parent fc24142 commit e87f6e1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions include/tao/pegtl/contrib/parse_tree.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ namespace tao::pegtl::parse_tree
{
state.emplace_back();
state.back()->template start< Rule >( in, st... );
auto &n = state.back()->children.back();
auto& n = state.back()->children.back();
Control< Rule >::start( in, n, st... );
}

Expand All @@ -306,7 +306,8 @@ namespace tao::pegtl::parse_tree
if( n ) {
state.back()->emplace_back( std::move( n ), st... );
Control< Rule >::success( in, state.back()->children.back(), st... );
} else {
}
else {
auto null_child = std::make_unique<Node>();
Control< Rule >::success( in, null_child, st... );
}
Expand Down

0 comments on commit e87f6e1

Please sign in to comment.