Print 'a<b<c> >' rather than 'a<b<c>>' in ValuePrinter

See earlier commit for the Transform.C test.
This commit is contained in:
Jonas Hahnfeld 2022-05-13 13:59:08 +02:00 committed by jenkins
parent ae776451fc
commit b7aaa96719

View File

@ -116,6 +116,8 @@ static std::string printQualType(clang::ASTContext& Ctx, clang::QualType QT) {
PrintingPolicy Policy(Ctx.getPrintingPolicy());
// DefinitionShadower: do not prepend `__cling_N5xxx::` to qualified names
Policy.SuppressUnwrittenScope = true;
// Print 'a<b<c> >' rather than 'a<b<c>>'.
Policy.SplitTemplateClosers = true;
class LocalPrintingPolicyRAII {
public:
LocalPrintingPolicyRAII(ASTContext& Ctx, PrintingPolicy& PPol)