Address ROOT-9114 (Issues with dictionary's enum forward decl)

For now, do not decorate enums, this leads to some errors, likely
due to incorrect merging.  See https://sft.its.cern.ch/jira/browse/ROOT-9114

Note: that passing the set of forward declare and then actual declaration
to clang (both official and ROOT's custom version), there is no problem
seen.
This commit is contained in:
Philippe Canal 2017-11-18 00:12:34 +01:00 committed by sftnight
parent c513776350
commit 8ca438b0d1

View File

@ -342,7 +342,9 @@ namespace cling {
if (!m_Policy.SuppressSpecifiers && D->isModulePrivate())
Out() << "__module_private__ ";
Out() << "enum ";
prettyPrintAttributes(D);
// For now, do not decorate enums, this leads to some errors, likely
// due to incorrect merging. See https://sft.its.cern.ch/jira/browse/ROOT-9114
// prettyPrintAttributes(D);
if (D->isScoped()) {
if (D->isScopedUsingClassTag())
Out() << "class ";