[Lldb-commits] [clang] [lldb] [clang] DeducedTypes deduction kind fix and improvement (PR #186727)

Shafik Yaghmour via lldb-commits lldb-commits at lists.llvm.org
Thu Apr 2 19:09:21 PDT 2026


================
@@ -2227,17 +2227,33 @@ void TextNodeDumper::VisitSubstTemplateTypeParmPackType(
   VisitTemplateTypeParmDecl(T->getReplacedParameter());
 }
 
-void TextNodeDumper::VisitAutoType(const AutoType *T) {
-  if (T->isDecltypeAuto())
-    OS << " decltype(auto)";
-  if (!T->isDeduced())
+void TextNodeDumper::VisitDeducedType(const DeducedType *T) {
+  switch (T->getDeducedKind()) {
+  case DeducedKind::Undeduced:
     OS << " undeduced";
+    break;
+  case DeducedKind::Deduced:
+    break;
+  case DeducedKind::DeducedAsDependent:
+    OS << " deduced-as-dependent";
+    break;
+  case DeducedKind::DeducedAsPack:
+    OS << " deduced-as-pack";
----------------
shafik wrote:

It does not look like this is tested at all.

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


More information about the lldb-commits mailing list