Move enum attributes after "enum class X: int" (ROOT-9114).
With the attribute after "enum" and before the name, the name itself gets annotated and subsequent lookups fail to identify the front-end token. By moving the attribute behind the decl, the identifier is unmodified.
This commit is contained in:
parent
1193463c6f
commit
9168e7d9ab
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user