================
@@ -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";
----------------
mizvekov wrote:
This is reasonably tested. The deduced-as-pack case is pretty hard to come by
naturally as you would somehow have to dump the type of a capture of a lambda
using an init-capture-pack, and I don't think you can do that from just an
ast-dump invocation, you would have to be debugging it.
https://github.com/llvm/llvm-project/pull/186727
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits