]> granicus.if.org Git - clang/commit
[AST] Extract ASTNodeTraverser class from ASTDumper
authorStephen Kelly <steveire@gmail.com>
Sun, 3 Feb 2019 14:06:54 +0000 (14:06 +0000)
committerStephen Kelly <steveire@gmail.com>
Sun, 3 Feb 2019 14:06:54 +0000 (14:06 +0000)
commit9661f6a09e991178265af143618088e8ece3ae9c
tree061efae98248d25dcae0701ba307b81c5bd7fd1c
parent57b4f8bee618ea4b76e57476f039e196e1df5787
[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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@352989 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/ASTNodeTraverser.h [new file with mode: 0644]
lib/AST/ASTDumper.cpp