[Lldb-commits] [PATCH] D122426: [lldb/Utility] Make `StructuredData::Dictionary::GetKeys` return an `Array`
Med Ismail Bennani via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Fri Mar 25 15:00:41 PDT 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rG29f363611dd4: [lldb/Utility] Make StructuredData::Dictionary::GetKeys return an Array (authored by mib).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D122426/new/
https://reviews.llvm.org/D122426
Files:
lldb/include/lldb/Utility/StructuredData.h
Index: lldb/include/lldb/Utility/StructuredData.h
===================================================================
--- lldb/include/lldb/Utility/StructuredData.h
+++ lldb/include/lldb/Utility/StructuredData.h
@@ -375,15 +375,15 @@
}
}
- ObjectSP GetKeys() const {
- auto object_sp = std::make_shared<Array>();
+ ArraySP GetKeys() const {
+ auto array_sp = std::make_shared<Array>();
collection::const_iterator iter;
for (iter = m_dict.begin(); iter != m_dict.end(); ++iter) {
auto key_object_sp = std::make_shared<String>();
key_object_sp->SetValue(iter->first.AsCString());
- object_sp->Push(key_object_sp);
+ array_sp->Push(key_object_sp);
}
- return object_sp;
+ return array_sp;
}
ObjectSP GetValueForKey(llvm::StringRef key) const {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122426.418333.patch
Type: text/x-patch
Size: 846 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20220325/7f9437c4/attachment.bin>
More information about the lldb-commits
mailing list