This revision was automatically updated to reflect the committed changes.
Closed by commit rG3a1a0d4957ec: [lldb] Add StringList::AppendString(const
Twine&) (NFC) (authored by kastiglione).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D116682/new/
https://reviews.llvm.org/D116682
Files:
lldb/include/lldb/Utility/StringList.h
lldb/source/Utility/StringList.cpp
Index: lldb/source/Utility/StringList.cpp
===================================================================
--- lldb/source/Utility/StringList.cpp
+++ lldb/source/Utility/StringList.cpp
@@ -55,6 +55,10 @@
m_strings.push_back(str.str());
}
+void StringList::AppendString(const llvm::Twine &str) {
+ m_strings.push_back(str.str());
+}
+
void StringList::AppendList(const char **strv, int strc) {
for (int i = 0; i < strc; ++i) {
if (strv[i])
Index: lldb/include/lldb/Utility/StringList.h
===================================================================
--- lldb/include/lldb/Utility/StringList.h
+++ lldb/include/lldb/Utility/StringList.h
@@ -10,6 +10,7 @@
#define LLDB_UTILITY_STRINGLIST_H
#include "llvm/ADT/StringRef.h"
+#include "llvm/ADT/Twine.h"
#include <cstddef>
#include <string>
@@ -44,6 +45,8 @@
void AppendString(llvm::StringRef str);
+ void AppendString(const llvm::Twine &str);
+
void AppendList(const char **strv, int strc);
void AppendList(StringList strings);
Index: lldb/source/Utility/StringList.cpp
===================================================================
--- lldb/source/Utility/StringList.cpp
+++ lldb/source/Utility/StringList.cpp
@@ -55,6 +55,10 @@
m_strings.push_back(str.str());
}
+void StringList::AppendString(const llvm::Twine &str) {
+ m_strings.push_back(str.str());
+}
+
void StringList::AppendList(const char **strv, int strc) {
for (int i = 0; i < strc; ++i) {
if (strv[i])
Index: lldb/include/lldb/Utility/StringList.h
===================================================================
--- lldb/include/lldb/Utility/StringList.h
+++ lldb/include/lldb/Utility/StringList.h
@@ -10,6 +10,7 @@
#define LLDB_UTILITY_STRINGLIST_H
#include "llvm/ADT/StringRef.h"
+#include "llvm/ADT/Twine.h"
#include <cstddef>
#include <string>
@@ -44,6 +45,8 @@
void AppendString(llvm::StringRef str);
+ void AppendString(const llvm::Twine &str);
+
void AppendList(const char **strv, int strc);
void AppendList(StringList strings);
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits