[Lldb-commits] [lldb] [lldb] Add libstdcpp atomic data formatters (PR #174218)

Michael Buch via lldb-commits lldb-commits at lists.llvm.org
Fri Jan 2 07:54:07 PST 2026


================
@@ -0,0 +1,122 @@
+//===---------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#include "LibStdcpp.h"
+
+#include "lldb/DataFormatters/TypeSynthetic.h"
+#include "lldb/Utility/ConstString.h"
+#include "lldb/ValueObject/ValueObject.h"
+#include "lldb/lldb-enumerations.h"
+
+using namespace lldb;
+
+namespace lldb_private::formatters {
+
+class LibStdcppAtomicSyntheticFrontEnd : public SyntheticChildrenFrontEnd {
+public:
+  explicit LibStdcppAtomicSyntheticFrontEnd(const ValueObjectSP &valobj_sp)
----------------
Michael137 wrote:

Probably can just pass `valobj_sp` as a `const ValueObject&`?

https://github.com/llvm/llvm-project/pull/174218


More information about the lldb-commits mailing list