[lldb] Fix import-std-module tests after libc++ got a new __memory subdirectory
authorRaphael Isemann <teemperor@gmail.com>
Tue, 15 Dec 2020 15:13:17 +0000 (16:13 +0100)
committerRaphael Isemann <teemperor@gmail.com>
Tue, 15 Dec 2020 15:16:00 +0000 (16:16 +0100)
commit2b09dedac4c824c51bc0a8934b33c0f50ce0e126
tree8d2e367224ae5e981214e146f5b201f17991cca3
parent7ea3932ab1def0f5e86ac745bef0d3de09e8845f
[lldb] Fix import-std-module tests after libc++ got a new __memory subdirectory

7ad49aec125b3c1205b164331d0aa954d773f890 added a __memory subdirectory to libc++
but the code we use to find libc++ from the debug info support files wasn't
prepared to encounter unknown subdirectories within libc++. The import-std-module
tests automatically fell back to not importing the std module which caused
them to fail.

This patch removes our hardcoded exception for the 'experimental' subdirectory
and instead just ignores all subdirectories of c++/vX/ when searching the
support files.
lldb/source/Plugins/ExpressionParser/Clang/CppModuleConfiguration.cpp