Move Autoload annotation after scope keyword

Otherwise tests/Autoloading/AutoForwarding.C complains that "an
attribute list cannot appear here".
This commit is contained in:
Jonas Hahnfeld 2022-05-09 10:14:34 +02:00 committed by jenkins
parent 106e1771aa
commit ae776451fc

View File

@ -357,13 +357,13 @@ namespace cling {
if (!m_Policy.SuppressSpecifiers && D->isModulePrivate())
Out() << "__module_private__ ";
Out() << "enum ";
prettyPrintAttributes(D);
if (D->isScoped()) {
if (D->isScopedUsingClassTag())
Out() << "class ";
else
Out() << "struct ";
}
prettyPrintAttributes(D);
Out() << *D;
// if (D->isFixed())