[clang] [Clang][AST] Let DeclPrinter print trailing requires expressions for template parameters (PR #96864)

Younan Zhang via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 27 01:55:27 PDT 2024


================
@@ -1189,6 +1189,16 @@ void DeclPrinter::printTemplateParameters(const TemplateParameterList *Params,
   Out << '>';
   if (!OmitTemplateKW)
     Out << ' ';
+
+  if (const Expr *RequiresClause = Params->getRequiresClause()) {
----------------
zyn0217 wrote:

Yeah, you're right, will do that shortly.

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


More information about the cfe-commits mailing list