[lldb] Remove lldb's own ASTDumper
authorRaphael Isemann <teemperor@gmail.com>
Mon, 25 Nov 2019 12:27:51 +0000 (13:27 +0100)
committerRaphael Isemann <teemperor@gmail.com>
Mon, 25 Nov 2019 12:27:51 +0000 (13:27 +0100)
commit7a6588abf8bac99d716188608adfbfb4928714db
treee01f7292457a5d954480421350e8ecf76380ad72
parent6fc3e6f2eb962cb215029995d7aff6278863a4a7
[lldb] Remove lldb's own ASTDumper

Summary:
LLDB's ASTDumper is just a clone of Clang's ASTDumper but with some scary code and
some unrelated functionality (like dumping name/attributes of types). This removes LLDB's ASTDumper
and replaces its uses with the `ClangUtils::DumpDecl` method that just calls Clang's ASTDumper
and returns the result as a string.

The few uses where we just want a textual representation of a type (which will print their name/attributes but not
dump any AST) are now also in ClangUtil under a `ToString` name until we find a better home for them.

Reviewers: labath

Reviewed By: labath

Subscribers: mgorny, JDevlieghere, lldb-commits

Tags: #lldb

Differential Revision: https://reviews.llvm.org/D70663
lldb/include/lldb/Symbol/ClangUtil.h
lldb/source/Plugins/ExpressionParser/Clang/ASTDumper.cpp [deleted file]
lldb/source/Plugins/ExpressionParser/Clang/ASTDumper.h [deleted file]
lldb/source/Plugins/ExpressionParser/Clang/CMakeLists.txt
lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp
lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.cpp
lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCDeclVendor.cpp
lldb/source/Symbol/ClangUtil.cpp