@@ -859,6 +859,7 @@ int STLContainerStreamer(const clang::FieldDecl &m,
859859 if (!tmplt_specialization) return 0 ;
860860
861861 string stlType (ROOT::TMetaUtils::ShortTypeName (mTypename .c_str ()));
862+ stlType = TClassEdit::InsertStd (stlType.c_str ());
862863 string stlName;
863864 stlName = ROOT::TMetaUtils::ShortTypeName (m.getName ().str ().c_str ());
864865
@@ -1171,6 +1172,8 @@ void WriteClassFunctions(const clang::CXXRecordDecl *cl, std::ostream &dictStrea
11711172 enclSpaceNesting = ROOT::TMetaUtils::WriteNamespaceHeader (dictStream, cl);
11721173 }
11731174
1175+ clsname = TClassEdit::InsertStd (clsname.c_str ());
1176+
11741177 if (autoLoad)
11751178 dictStream << " #include \" TInterpreter.h\"\n " ;
11761179
@@ -1189,16 +1192,22 @@ void WriteClassFunctions(const clang::CXXRecordDecl *cl, std::ostream &dictStrea
11891192 dictStream << " //_______________________________________"
11901193 << " _______________________________________" << std::endl;
11911194 if (add_template_keyword) dictStream << " template <> " ;
1192- dictStream << " const char *" << clsname << " ::ImplFileName()" << std::endl << " {" << std::endl
1193- << " return ::ROOT::GenerateInitInstanceLocal((const ::" << fullname
1194- << " *)nullptr)->GetImplFileName();" << std::endl << " }" << std::endl << std::endl
1195+ dictStream << " const char *" << clsname << " ::ImplFileName()" << std::endl
1196+ << " {" << std::endl
1197+ << " return ::ROOT::GenerateInitInstanceLocal((const ::" << clsname << " *)nullptr)->GetImplFileName();"
1198+ << std::endl
1199+ << " }" << std::endl
1200+ << std::endl
11951201
11961202 << " //_______________________________________"
11971203 << " _______________________________________" << std::endl;
11981204 if (add_template_keyword) dictStream << " template <> " ;
1199- dictStream << " int " << clsname << " ::ImplFileLine()" << std::endl << " {" << std::endl
1200- << " return ::ROOT::GenerateInitInstanceLocal((const ::" << fullname
1201- << " *)nullptr)->GetImplFileLine();" << std::endl << " }" << std::endl << std::endl
1205+ dictStream << " int " << clsname << " ::ImplFileLine()" << std::endl
1206+ << " {" << std::endl
1207+ << " return ::ROOT::GenerateInitInstanceLocal((const ::" << clsname << " *)nullptr)->GetImplFileLine();"
1208+ << std::endl
1209+ << " }" << std::endl
1210+ << std::endl
12021211
12031212 << " //_______________________________________"
12041213 << " _______________________________________" << std::endl;
@@ -1208,20 +1217,21 @@ void WriteClassFunctions(const clang::CXXRecordDecl *cl, std::ostream &dictStrea
12081217 // Trigger autoloading if dictionary is split
12091218 if (autoLoad)
12101219 dictStream << " gInterpreter->AutoLoad(\" " << fullname << " \" );\n " ;
1211- dictStream << " fgIsA = ::ROOT::GenerateInitInstanceLocal((const ::" << fullname
1212- << " *)nullptr)->GetClass();" << std::endl
1213- << " return fgIsA;\n "
1214- << " }" << std::endl << std::endl
1220+ dictStream << " fgIsA = ::ROOT::GenerateInitInstanceLocal((const ::" << clsname << " *)nullptr)->GetClass();"
1221+ << std::endl
1222+ << " return fgIsA;\n "
1223+ << " }" << std::endl
1224+ << std::endl
12151225
1216- << " //_______________________________________"
1217- << " _______________________________________" << std::endl;
1226+ << " //_______________________________________"
1227+ << " _______________________________________" << std::endl;
12181228 if (add_template_keyword) dictStream << " template <> " ;
12191229 dictStream << " TClass *" << clsname << " ::Class()" << std::endl << " {" << std::endl;
12201230 if (autoLoad) {
12211231 dictStream << " Dictionary();\n " ;
12221232 } else {
12231233 dictStream << " if (!fgIsA.load()) { R__LOCKGUARD(gInterpreterMutex); fgIsA = ::ROOT::GenerateInitInstanceLocal((const ::" ;
1224- dictStream << fullname << " *)nullptr)->GetClass(); }" << std::endl;
1234+ dictStream << clsname << " *)nullptr)->GetClass(); }" << std::endl;
12251235 }
12261236 dictStream << " return fgIsA;" << std::endl
12271237 << " }" << std::endl << std::endl;
@@ -1386,6 +1396,7 @@ void WriteStreamer(const ROOT::TMetaUtils::AnnotatedRecordDecl &cl,
13861396 if (ROOT::TMetaUtils::GetNameWithinNamespace (fullname, clsname, nsname, clxx)) {
13871397 enclSpaceNesting = ROOT::TMetaUtils::WriteNamespaceHeader (dictStream, cl);
13881398 }
1399+ clsname = TClassEdit::InsertStd (clsname.c_str ());
13891400
13901401 dictStream << " //_______________________________________"
13911402 << " _______________________________________" << std::endl;
@@ -1788,19 +1799,22 @@ void WriteAutoStreamer(const ROOT::TMetaUtils::AnnotatedRecordDecl &cl,
17881799 if (ROOT::TMetaUtils::GetNameWithinNamespace (fullname, clsname, nsname, clxx)) {
17891800 enclSpaceNesting = ROOT::TMetaUtils::WriteNamespaceHeader (dictStream, cl);
17901801 }
1802+ clsname = TClassEdit::InsertStd (clsname.c_str ());
17911803
17921804 dictStream << " //_______________________________________"
17931805 << " _______________________________________" << std::endl;
17941806 if (add_template_keyword) dictStream << " template <> " ;
17951807 dictStream << " void " << clsname << " ::Streamer(TBuffer &R__b)" << std::endl
17961808 << " {" << std::endl
1797- << " // Stream an object of class " << fullname << " ." << std::endl << std::endl
1809+ << " // Stream an object of class " << fullname << " ." << std::endl
1810+ << std::endl
17981811 << " if (R__b.IsReading()) {" << std::endl
1799- << " R__b.ReadClassBuffer(" << fullname << " ::Class(),this);" << std::endl
1812+ << " R__b.ReadClassBuffer(" << clsname << " ::Class(),this);" << std::endl
18001813 << " } else {" << std::endl
1801- << " R__b.WriteClassBuffer(" << fullname << " ::Class(),this);" << std::endl
1814+ << " R__b.WriteClassBuffer(" << clsname << " ::Class(),this);" << std::endl
18021815 << " }" << std::endl
1803- << " }" << std::endl << std::endl;
1816+ << " }" << std::endl
1817+ << std::endl;
18041818
18051819 while (enclSpaceNesting) {
18061820 dictStream << " } // namespace " << nsname << std::endl;
0 commit comments