[all-commits] [llvm/llvm-project] 681466: Allow lldb-test to combine -find with -dump-clang-ast

adrian-prantl via All-commits all-commits at lists.llvm.org
Fri Apr 17 11:02:39 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 681466f5e6412350a0b066791450e72325c2c074
      https://github.com/llvm/llvm-project/commit/681466f5e6412350a0b066791450e72325c2c074
  Author: Adrian Prantl <aprantl at apple.com>
  Date:   2020-04-17 (Fri, 17 Apr 2020)

  Changed paths:
    M lldb/include/lldb/Symbol/CompilerType.h
    M lldb/include/lldb/Symbol/Type.h
    M lldb/include/lldb/Symbol/TypeMap.h
    M lldb/include/lldb/Symbol/TypeSystem.h
    M lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp
    M lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.h
    M lldb/source/Symbol/CompilerType.cpp
    M lldb/source/Symbol/Type.cpp
    M lldb/source/Symbol/TypeMap.cpp
    M lldb/test/Shell/SymbolFile/DWARF/Inputs/ModuleOwnership/A.h
    M lldb/test/Shell/SymbolFile/DWARF/module-ownership.mm
    M lldb/tools/lldb-test/lldb-test.cpp

  Log Message:
  -----------
  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




More information about the All-commits mailing list