[Lldb-commits] [lldb] [lldb][NFCI] Remove use of ConstString from FilterRule in StructuredDataDarwinLog (PR #68347)
Alex Langford via lldb-commits
lldb-commits at lists.llvm.org
Mon Oct 9 15:07:25 PDT 2023
================
@@ -252,7 +253,8 @@ class FilterRule {
const bool m_accept;
const size_t m_attribute_index;
- const ConstString m_operation;
+ // The lifetime of m_operation should be static.
----------------
bulbazord wrote:
Ah, yeah it is a little confusing now that I look at it. I wanted to convey that the lifetime of the StringRef should be as long as the lifetime of the program (since it's backed by a static string literal right now). Maybe something like:
"m_operation is backed by a static string literal, so lifetime should not be a concern"
https://github.com/llvm/llvm-project/pull/68347
More information about the lldb-commits
mailing list