[Lldb-commits] [PATCH] D150804: [lldb] Guarantee the lifetimes of all strings returned from SBAPI
Alex Langford via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Thu May 18 14:49:19 PDT 2023
bulbazord marked an inline comment as done.
bulbazord added inline comments.
================
Comment at: lldb/source/API/SBFunction.cpp:181
+
+ return variable_sp->GetName().GetCString();
}
----------------
mib wrote:
> nit: This threw me off, I thought you forgot to create a `ConsString` but it seems that `ConstString` has both a `AsCString` and a `GetCString` method. It would be good to stay consistent.
Yeah, maybe we should try to remove either `GetCString` or `AsCString` and be uniform everywhere. Let's plan on doing that later though.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D150804/new/
https://reviews.llvm.org/D150804
More information about the lldb-commits
mailing list