[all-commits] [llvm/llvm-project] cabee8: [lldb] Reference STL types in import-std-module tests

Raphael Isemann via All-commits all-commits at lists.llvm.org
Mon Sep 28 01:37:38 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: cabee89bed69ce37c9e588f9190ed9c33f6bfdee
      https://github.com/llvm/llvm-project/commit/cabee89bed69ce37c9e588f9190ed9c33f6bfdee
  Author: Raphael Isemann <teemperor at gmail.com>
  Date:   2020-09-28 (Mon, 28 Sep 2020)

  Changed paths:
    M lldb/test/API/commands/expression/import-std-module/basic/TestImportStdModule.py
    M lldb/test/API/commands/expression/import-std-module/conflicts/TestStdModuleWithConflicts.py
    M lldb/test/API/commands/expression/import-std-module/deque-basic/TestDequeFromStdModule.py
    M lldb/test/API/commands/expression/import-std-module/deque-dbg-info-content/TestDbgInfoContentDequeFromStdModule.py
    M lldb/test/API/commands/expression/import-std-module/empty-module/TestEmptyStdModule.py
    M lldb/test/API/commands/expression/import-std-module/forward_decl_from_module/TestForwardDeclFromStdModule.py
    M lldb/test/API/commands/expression/import-std-module/forward_list-dbg-info-content/TestDbgInfoContentForwardListFromStdModule.py
    M lldb/test/API/commands/expression/import-std-module/forward_list/TestForwardListFromStdModule.py
    M lldb/test/API/commands/expression/import-std-module/list-dbg-info-content/TestDbgInfoContentListFromStdModule.py
    M lldb/test/API/commands/expression/import-std-module/list/TestListFromStdModule.py
    M lldb/test/API/commands/expression/import-std-module/no-std-module/TestMissingStdModule.py
    M lldb/test/API/commands/expression/import-std-module/pair/TestPairFromStdModule.py
    M lldb/test/API/commands/expression/import-std-module/queue/TestQueueFromStdModule.py
    M lldb/test/API/commands/expression/import-std-module/shared_ptr-dbg-info-content/TestSharedPtrDbgInfoContentFromStdModule.py
    M lldb/test/API/commands/expression/import-std-module/shared_ptr/TestSharedPtrFromStdModule.py
    M lldb/test/API/commands/expression/import-std-module/sysroot/TestStdModuleSysroot.py
    M lldb/test/API/commands/expression/import-std-module/unique_ptr-dbg-info-content/TestUniquePtrDbgInfoContent.py
    M lldb/test/API/commands/expression/import-std-module/unique_ptr-dbg-info-content/main.cpp
    M lldb/test/API/commands/expression/import-std-module/unique_ptr/TestUniquePtrFromStdModule.py
    M lldb/test/API/commands/expression/import-std-module/unique_ptr/main.cpp
    M lldb/test/API/commands/expression/import-std-module/vector-bool/TestVectorBoolFromStdModule.py
    M lldb/test/API/commands/expression/import-std-module/vector-dbg-info-content/TestDbgInfoContentVectorFromStdModule.py
    M lldb/test/API/commands/expression/import-std-module/vector-of-vectors/TestVectorOfVectorsFromStdModule.py
    M lldb/test/API/commands/expression/import-std-module/vector/TestVectorFromStdModule.py
    M lldb/test/API/commands/expression/import-std-module/weak_ptr-dbg-info-content/TestDbgInfoContentWeakPtrFromStdModule.py
    M lldb/test/API/commands/expression/import-std-module/weak_ptr/TestWeakPtrFromStdModule.py

  Log Message:
  -----------
  [lldb] Reference STL types in import-std-module tests

With the recent patches to the ASTImporter that improve template type importing
(D87444), most of the import-std-module tests can now finally import the
type of the STL container they are testing. This patch removes most of the casts
that were added to simplify types to something the ASTImporter can import
(for example, std::vector<int>::size_type was casted to `size_t` until now).
Also adds the missing tests that require referencing the container type (for
example simply printing the whole container) as here we couldn't use a casting
workaround.

The only casts that remain are in the forward_list tests that reference
the iterator and the stack test. Both tests are still failing to import the
respective container type correctly (or crash while trying to import).




More information about the All-commits mailing list