From: Axel Naumann Date: Wed, 24 Sep 2014 08:35:15 +0000 (+0200) Subject: Use cling fwd decl for typedefs for consistency (ROOT-6595). X-Git-Tag: v6-02-00-rc1~17 X-Git-Url: https://root.cern.ch/gitweb?p=root.git;a=commitdiff_plain;h=40dbc7c4c2dec8ca780885027095e0db77f698e3 Use cling fwd decl for typedefs for consistency (ROOT-6595). --- diff --git a/core/utils/src/rootcling.cxx b/core/utils/src/rootcling.cxx index 699015f..31f90de 100644 --- a/core/utils/src/rootcling.cxx +++ b/core/utils/src/rootcling.cxx @@ -3449,22 +3449,13 @@ std::string GenerateFwdDeclString(const RScanner &scan, selectedDecls.begin(), [](const ROOT::TMetaUtils::AnnotatedRecordDecl& rcd){return rcd.GetRecordDecl();}); + for (auto* TD: scan.fSelectedTypedefs) + selectedDecls.push_back(TD); + fwdDeclString += "R\"DICTFWDDCLS(\n"; fwdDeclString += Decls2FwdDecls(selectedDecls,interp); fwdDeclString += ")DICTFWDDCLS\""; - // Typedefs - for (auto const & tdNameDeclPtr : scan.fSelectedTypedefs) { - buffer = ""; - int retCode = FwdDeclFromTypeDefNameDecl(*tdNameDeclPtr, - interp, - buffer, - &fwdDecls); - if (retCode == 0 && fwdDecls.insert(buffer).second) { - fwdDeclString += "\nR\"FWDDECL(" + buffer + ")FWDDECL\""; - } - } - // Functions // for (auto const& fcnDeclPtr : scan.fSelectedFunctions){ // int retCode = FwdDeclFromFcnDecl(*fcnDeclPtr, interp, buffer);