[Lldb-commits] [PATCH] D104067: [lldb] Decouple ObjCLanguage from Symtab
Shafik Yaghmour via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Fri Jun 11 11:29:08 PDT 2021
shafik added inline comments.
================
Comment at: lldb/source/Plugins/Language/ObjC/ObjCLanguage.h:104
+ // We also return the FunctionNameType of each possible name.
+ std::vector<std::pair<ConstString, lldb::FunctionNameType>>
GetMethodNameVariants(ConstString method_name) const override;
----------------
teemperor wrote:
> Could we make this a custom struct? `first` `second` are always so non-descriptive and we might want to extend what we return from this function in a future patch.
>
> ```
> lang=c++
> class MethodNameVariant {
> ConstString m_name;
> lldb::FunctionNameType m_type;
> public:
> [...]
> }```
I second (pun intended?) this, if we can avoid using `std::pair` and instead use a custom struct we should.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D104067/new/
https://reviews.llvm.org/D104067
More information about the lldb-commits
mailing list