[Lldb-commits] [lldb] [lldb] optionally match the `__debug` namespace for libstdc++ containers. (PR #140727)

Michael Buch via lldb-commits lldb-commits at lists.llvm.org
Wed May 21 01:50:24 PDT 2025


================
@@ -1731,8 +1737,11 @@ lldb::TypeCategoryImplSP CPlusPlusLanguage::GetFormatters() {
     DataVisualization::Categories::GetCategory(ConstString(GetPluginName()),
                                                g_category);
     if (g_category) {
-      LoadLibStdcppFormatters(g_category);
+      // NOTE: the libstdcpp formatters are loaded after libcxx formatters
+      // because of a conflict matching the `__debug`namespace in libstdcpp.
----------------
Michael137 wrote:

```suggestion
      // because we don't want to the libcxx formatters to match the potential `__debug` inline namespace that libstdcpp may use.
```

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


More information about the lldb-commits mailing list