[Lldb-commits] [lldb] [lldb] Add SBType::FindNestedType() function (PR #68705)
Vlad Serebrennikov via lldb-commits
lldb-commits at lists.llvm.org
Thu Oct 12 04:47:19 PDT 2023
================
@@ -186,6 +186,11 @@ std::optional<llvm::json::Value> TypeSystem::ReportStatistics() {
return std::nullopt;
}
+CompilerDeclContext
----------------
Endilll wrote:
> Could add a brief oxygen docstring saying: "Returns the direct parent context of specified type".
I'd be happy to do that as long as Jim is not opposed to the direction of `FindDirectNestedType`.
> Also, what happens if no such context exists (if that can happen)?
Half an hour ago I discovered that this can happen, and updated this patch.
See https://github.com/llvm/llvm-project/blob/434b8a30804a433526e80eb97f15dafa1815f936/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp#L2672-L2696
https://github.com/llvm/llvm-project/pull/68705
More information about the lldb-commits
mailing list