[Lldb-commits] [PATCH] D152324: [lldb][NFCI] Change return type of PersistentExpressionState::GetNextPersistentVariableName
Jonas Devlieghere via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Wed Jun 7 22:57:32 PDT 2023
JDevlieghere accepted this revision.
JDevlieghere added a comment.
This revision is now accepted and ready to land.
LGTM
================
Comment at: lldb/source/Plugins/ExpressionParser/Clang/ClangPersistentVariables.cpp:129-134
llvm::SmallString<64> name;
{
llvm::raw_svector_ostream os(name);
os << GetPersistentVariablePrefix(is_error)
<< m_next_persistent_variable_id++;
}
----------------
If we're going to return a `std::string`, we might as well use a `raw_string_ostream` and simplify this function.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D152324/new/
https://reviews.llvm.org/D152324
More information about the lldb-commits
mailing list