HomePhabricator

[AST] Extract ASTNodeTraverser class from ASTDumper

Authored by stephenkelly on Feb 3 2019, 6:06 AM.

Description

[AST] Extract ASTNodeTraverser class from ASTDumper

Summary:
This new traverser class allows clients to re-use the traversal logic
which was previously part of ASTDumper. This means that alternative
visit logic may be implemented, such as

  • Dump to alternative data formats such as JSON
  • Implement AST Matcher parent/child visitation matching AST dumps

Reviewers: aaron.ballman

Subscribers: jfb, cfe-commits

Differential Revision: https://reviews.llvm.org/D57472

llvm-svn: 352989

Details

Committed
stephenkellyFeb 3 2019, 6:06 AM
Differential Revision
D57472: [AST] Extract ASTDumpTraverser class from ASTDumper
Parents
rG00fcc74e502a: [CGP] refactor optimizeCmpExpression (NFCI)
Branches
Unknown
Tags
Unknown