================
@@ -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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits