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

Vlad Serebrennikov via lldb-commits lldb-commits at lists.llvm.org
Tue Oct 10 09:57:53 PDT 2023


Endilll wrote:

> Is FindNestedType guaranteed to have a single return?

Yes, because search is not recursive, i.e. doesn't search inside nested types.
I'm intentionally specifying `FindNestedType` this way, because I'd like it to not do too much to remain fast by design, and I'm yet to see a use case when I'd be interested in type `NN`, buried inside arbitrary number of intervening nested types. Even if there is such use case, `SBTarget::FindFirstType` could be a better fit to address it.

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


More information about the lldb-commits mailing list