[Lldb-commits] [PATCH] D52461: [PDB] Introduce `PDBNameParser`
Hui Huang via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Sun Sep 30 08:58:35 PDT 2018
Hui added a comment.
In https://reviews.llvm.org/D52461#1249259, @aleksandr.urakov wrote:
> In https://reviews.llvm.org/D52461#1245058, @clayborg wrote:
> > Try to use and extend CPlusPlusLanguage::MethodName as needed. I believe it was recently backed by a new clang parser that knows how to chop up C++ demangled names
> It seems that `CPlusPlusLanguage::MethodName` is backed by LLDB `CPlusPlusNameParser`, which can't parse demangled names... Can you tell me, please, how is called a new Clang parser you have mentioned? May be I'll use it directly instead of `PDBNameParser`, or will back `PDBNameParser` by it (if the interface will be not very convenient)?
Maybe you can try RichManglingContext::FromCxxMethodName(the_demangled_name). Parse it wtih RichManglingContext::ParseFunctionBaseName and extract the full/base name or function decl context (NS) if any with related methods.
No need to introduce a new one.
More information about the lldb-commits