[Lldb-commits] [PATCH] D150804: [lldb] Guarantee the lifetimes of all strings returned from SBAPI
Med Ismail Bennani via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Thu May 18 14:44:25 PDT 2023
mib accepted this revision.
mib added a comment.
This revision is now accepted and ready to land.
LGTM with nit.
================
Comment at: lldb/source/API/SBFunction.cpp:181
+
+ return variable_sp->GetName().GetCString();
}
----------------
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.
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