[Lldb-commits] [lldb] [lldb] Extend FindTypes to optionally search by mangled type name (PR #113007)
Michael Buch via lldb-commits
lldb-commits at lists.llvm.org
Sat Oct 19 02:32:06 PDT 2024
================
@@ -1032,10 +1032,16 @@ void SymbolFileCTF::FindTypes(const lldb_private::TypeQuery &match,
ConstString name = match.GetTypeBasename();
for (TypeSP type_sp : GetTypeList().Types()) {
- if (type_sp && type_sp->GetName() == name) {
- results.InsertUnique(type_sp);
- if (results.Done(match))
- return;
+ if (type_sp) {
----------------
Michael137 wrote:
If you're already rewriting this, lets do:
```
if (!type_sp)
continue;
```
(same applies to the `type_name == name` condition below)
https://github.com/llvm/llvm-project/pull/113007
More information about the lldb-commits
mailing list