[Lldb-commits] [PATCH] D103210: [lldb] Introduce Language::MethodNameInfo

Raphael Isemann via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu May 27 06:59:18 PDT 2021


teemperor added a comment.

+1 to not add any language-specific terms to the Language API.

Looking over the code, it seems what the code is doing its:

- Going over the symbol names.
- Creating a search index from the symbol names that is optionally grouped via the `FunctionNameType` cases (and there is a 'eFunctionNameTypeSelector' which isn't that nice but that's why we try to do selector-specific stuff).

So what about having an API that for a given symbol name gives us all the alternative names we should put into this search index (and optionally a `FunctionNameType` so we can put it into the right group)? I guess C++ could also benefit from the same API as it would just return the right basenames then?

If we make the different `m_*to_index` maps in Symtab into something two nested maps with the form `FunctionNameType -> name -> index`, then that would also remove quite a bit of copy-pasted code in Symtab.cpp


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D103210/new/

https://reviews.llvm.org/D103210



More information about the lldb-commits mailing list