[Lldb-commits] [lldb] [lldb] Add SBType::FindNestedType() function (PR #68705)

Vlad Serebrennikov via lldb-commits lldb-commits at lists.llvm.org
Wed Oct 11 10:35:15 PDT 2023


Endilll wrote:

> find A::B::C which is a match, note max_matches == 1 and return

Looking at `DeclContextIsContainedInLookup`, `A::B::C` is not a match, because it's `DeclContext` is not `DeclContext` of `A`. This is of course is not future-proof against changes to `DeclContextIsContainedInLookup` that can make it smarter in this regard, but we can have something along the lines `TypeSystem::DeclContextIsDirectlyContainedInLookup` if we deem it necessary.

For the context, this is the first check search algorithm performs while determining a match:
https://github.com/llvm/llvm-project/blob/d5444ab26743115e42e4abb3782bbefb0e8912d0/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp#L2600
https://github.com/llvm/llvm-project/blob/d5444ab26743115e42e4abb3782bbefb0e8912d0/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp#L2440


https://github.com/llvm/llvm-project/pull/68705


More information about the lldb-commits mailing list