Allow lldb-test to combine -find with -dump-clang-ast
authorAdrian Prantl <aprantl@apple.com>
Thu, 16 Apr 2020 21:10:23 +0000 (14:10 -0700)
committerAdrian Prantl <aprantl@apple.com>
Fri, 17 Apr 2020 18:01:20 +0000 (11:01 -0700)
commit681466f5e6412350a0b066791450e72325c2c074
treef39e6a113b6358fc1c3b54304bd4d4b32d48502a
parentdd24fb388ba82fec4bf610b19e9cf3d1e3535a16
Allow lldb-test to combine -find with -dump-clang-ast

This patch threads an lldb::DescriptionLevel through the typesystem to
allow dumping the full Clang AST (level=verbose) of any lldb::Type in
addition to the human-readable source description (default
level=full). This type dumping interface is currently not exposed
through the SBAPI.

The application is to let lldb-test dump the clang AST of search
results. I need this to test lazy type completion of clang types in
subsequent patches.

Differential Revision: https://reviews.llvm.org/D78329
12 files changed:
lldb/include/lldb/Symbol/CompilerType.h
lldb/include/lldb/Symbol/Type.h
lldb/include/lldb/Symbol/TypeMap.h
lldb/include/lldb/Symbol/TypeSystem.h
lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp
lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.h
lldb/source/Symbol/CompilerType.cpp
lldb/source/Symbol/Type.cpp
lldb/source/Symbol/TypeMap.cpp
lldb/test/Shell/SymbolFile/DWARF/Inputs/ModuleOwnership/A.h
lldb/test/Shell/SymbolFile/DWARF/module-ownership.mm
lldb/tools/lldb-test/lldb-test.cpp