[PATCH] D57472: [AST] Extract ASTDumpTraverser class from ASTDumper

Stephen Kelly via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 30 13:49:52 PST 2019


steveire created this revision.
steveire added a reviewer: aaron.ballman.
Herald added subscribers: cfe-commits, jfb.

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


Repository:
  rC Clang

https://reviews.llvm.org/D57472

Files:
  include/clang/AST/ASTDumpTraverser.h
  lib/AST/ASTDumper.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57472.184362.patch
Type: text/x-patch
Size: 39941 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190130/589f99bf/attachment-0001.bin>


More information about the cfe-commits mailing list