[Lldb-commits] [lldb] [lldb] Support alternatives for scope format entries (PR #137751)
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Wed Apr 30 09:12:51 PDT 2025
================
@@ -8,16 +8,36 @@
#include "lldb/Core/FormatEntity.h"
#include "lldb/Utility/Status.h"
-
+#include "lldb/Utility/StreamString.h"
#include "llvm/ADT/StringRef.h"
+#include "llvm/Support/Error.h"
+#include "llvm/Testing/Support/Error.h"
#include "gtest/gtest.h"
using namespace lldb_private;
+using namespace llvm;
using Definition = FormatEntity::Entry::Definition;
using Entry = FormatEntity::Entry;
-TEST(FormatEntityTest, DefinitionConstructionNameAndType) {
+namespace {
+class FormatEntityTest : public ::testing::Test {
+public:
+ Expected<std::string> Format(StringRef format_str) {
----------------
JDevlieghere wrote:
Sounds good. Originally I had an `ASSERT` in there but I went with the expected approach so the failure is attributed to the correct line.
https://github.com/llvm/llvm-project/pull/137751
More information about the lldb-commits
mailing list