[clang] [AST] Print the "aggregate" for aggregate deduction guide decl. (PR #84018)

Haojian Wu via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 28 01:12:30 PDT 2024


================
@@ -1990,6 +1990,18 @@ void TextNodeDumper::VisitFunctionDecl(const FunctionDecl *D) {
   }
 }
 
+void TextNodeDumper::VisitCXXDeductionGuideDecl(const CXXDeductionGuideDecl *D) {
+  VisitFunctionDecl(D);
+  switch (D->getDeductionCandidateKind()) {
+  case DeductionCandidate::Normal:
+  case DeductionCandidate::Copy:
----------------
hokein wrote:

Maybe, but I don't have this business need for the "copy" case at the moment, so I'm inclined to leave it as is for now.

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


More information about the cfe-commits mailing list