Skip to content

Commit

Permalink
Refactor tree printing in AST dumping.
Browse files Browse the repository at this point in the history
Instead of manually maintaining a flag indicating whether we're about to print
out the last child of the parent node (to determine whether we print "`" or
"|"), capture a callable to print that child and defer printing it until we
either see a next child or finish the parent.

No functionality change intended.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@220930 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
zygoloid committed Oct 30, 2014
1 parent 845eee3 commit 1f064ca
Show file tree
Hide file tree
Showing 3 changed files with 351 additions and 569 deletions.
Loading

0 comments on commit 1f064ca

Please sign in to comment.