diff --git a/lib/Interpreter/ForwardDeclPrinter.cpp b/lib/Interpreter/ForwardDeclPrinter.cpp index 6815898f..2d5da391 100644 --- a/lib/Interpreter/ForwardDeclPrinter.cpp +++ b/lib/Interpreter/ForwardDeclPrinter.cpp @@ -342,7 +342,6 @@ namespace cling { if (!m_Policy.SuppressSpecifiers && D->isModulePrivate()) Out() << "__module_private__ "; Out() << "enum "; - prettyPrintAttributes(D); if (D->isScoped()) { if (D->isScopedUsingClassTag()) Out() << "class "; @@ -352,8 +351,9 @@ namespace cling { Out() << *D; // if (D->isFixed()) - Out() << " : " << D->getIntegerType().stream(m_Policy) - << ';' << closeBraces << '\n'; + Out() << " : " << D->getIntegerType().stream(m_Policy); + prettyPrintAttributes(D); + Out() << ';' << closeBraces << '\n'; } void ForwardDeclPrinter::VisitRecordDecl(RecordDecl *D) {