================ @@ -1189,6 +1189,16 @@ void DeclPrinter::printTemplateParameters(const TemplateParameterList *Params, Out << '>'; if (!OmitTemplateKW) Out << ' '; + + if (const Expr *RequiresClause = Params->getRequiresClause()) { ---------------- hokein wrote:
If I read the code correctly, looks like we can move this code to Line 1190 (just immediately before the above `if (!OmitTemplateKW)`)? Then we can get rid of all the `OmitTemplateKw` logic inside this if branch. https://github.com/llvm/llvm-project/pull/96864 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits