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

Med Ismail Bennani via lldb-commits lldb-commits at lists.llvm.org
Tue Oct 10 22:47:55 PDT 2023


================
@@ -586,6 +586,15 @@ lldb::TemplateArgumentKind SBType::GetTemplateArgumentKind(uint32_t idx) {
   return eTemplateArgumentKindNull;
 }
 
+SBType SBType::FindNestedType(const char *name) {
+  LLDB_INSTRUMENT_VA(this);
+
+  if (!IsValid())
+    return SBType();
+  auto ret = SBType(m_opaque_sp->FindNestedType(ConstString(name)));
----------------
medismailben wrote:

It would be nice if we could avoid creating the `ConstString` this early.

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


More information about the lldb-commits mailing list