[lldb] Enable std::pair in CxxModuleHandler
authorRaphael Isemann <teemperor@gmail.com>
Wed, 9 Sep 2020 08:35:56 +0000 (10:35 +0200)
committerRaphael Isemann <teemperor@gmail.com>
Wed, 9 Sep 2020 08:49:53 +0000 (10:49 +0200)
commitb85222520f861a1812f991d6bd65950dda22f31b
tree2f09fd39e606198ea9648fd7dba962d560edd0bb
parent37a7c0a00773f135d909eb9eba7f82547aee1e89
[lldb] Enable std::pair in CxxModuleHandler

This adds support for substituting std::pair instantiations with enabled
import-std-module.

With the fixes in parent revisions we can currently substitute a single pair
(however, a result that returns a second pair currently causes LLDB to crash
while importing the second template instantiation).

Reviewed By: aprantl

Differential Revision: https://reviews.llvm.org/D85141
lldb/source/Plugins/ExpressionParser/Clang/CxxModuleHandler.cpp
lldb/test/API/commands/expression/import-std-module/pair/Makefile [new file with mode: 0644]
lldb/test/API/commands/expression/import-std-module/pair/TestPairFromStdModule.py [new file with mode: 0644]
lldb/test/API/commands/expression/import-std-module/pair/main.cpp [new file with mode: 0644]