================
@@ -797,6 +797,10 @@ void Module::LookupInfo::Prune(SymbolContextList &sc_list,
     while (i < sc_list.GetSize()) {
       if (!sc_list.GetContextAtIndex(i, sc))
         break;
+      if (!lldb_private::Language::LanguageIsCFamily(sc.GetLanguage())) {
----------------
walter-erquinigo wrote:

What you say makes sense.
@jimingham , what about me moving the implementation of this second part of the 
Prune method (line 790 onwards) to Language plugins? I could then create the 
method 
```SymbolLookupPruneHook(SymbolContextList &sc_list, size_t start_idx, 
Module::LookupInfo &lookup_info, Module &module)```

That would be very convenient because I could implement this in my own language 
plugin for further refinements.

What do you think?

https://github.com/llvm/llvm-project/pull/110543
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to