[all-commits] [llvm/llvm-project] b22d8a: Use ASTDumper to dump the AST from clang-query
Stephen Kelly via All-commits
all-commits at lists.llvm.org
Fri Dec 6 15:41:25 PST 2019
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: b22d8ae7f436bfe63b28ceddea743071a6601eb1
https://github.com/llvm/llvm-project/commit/b22d8ae7f436bfe63b28ceddea743071a6601eb1
Author: Stephen Kelly <steveire at gmail.com>
Date: 2019-12-06 (Fri, 06 Dec 2019)
Changed paths:
M clang-tools-extra/clang-query/Query.cpp
Log Message:
-----------
Use ASTDumper to dump the AST from clang-query
Summary:
This way, the output is not limited by the various API differences
between the dump() member functions. For example, all dumps are now in
color, while that used to be the case only for Decls and Stmts, but not
Types.
Additionally, while DynTypedNode::dump (which was used up to now) was
limited to dumping only Decls, Stmts and Types, this makes clang-query
support everything ASTNodeTraverser supports.
Reviewers: aaron.ballman
Subscribers: cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D62056
More information about the All-commits
mailing list