@@ -635,6 +635,8 @@ bool TClingLookupHelper::GetPartiallyDesugaredNameWithScopeHandling(const std::s
635
635
// TMetaUtils::GetNormalizedName, we just do the 'strip leading std' and fix
636
636
// white space.
637
637
clang::PrintingPolicy policy (fInterpreter ->getCI ()->getASTContext ().getPrintingPolicy ());
638
+ // For now we do not want the integral type suffixes in the normalized name.
639
+ policy.NeverIncludeTypeForTemplateArgument = true ;
638
640
policy.SuppressTagKeyword = true ; // Never get the class or struct keyword
639
641
policy.SuppressScope = true ; // Force the scope to be coming from a clang::ElaboratedType.
640
642
// The scope suppression is required for getting rid of the anonymous part of the name of a class defined in an anonymous namespace.
@@ -1411,6 +1413,8 @@ void ROOT::TMetaUtils::GetQualifiedName(std::string &qual_name, const clang::Nam
1411
1413
{
1412
1414
llvm::raw_string_ostream stream (qual_name);
1413
1415
clang::PrintingPolicy policy ( cl.getASTContext ().getPrintingPolicy () );
1416
+ // For now we do not want the integral type suffixes in the normalized name.
1417
+ policy.NeverIncludeTypeForTemplateArgument = true ;
1414
1418
policy.SuppressTagKeyword = true ; // Never get the class or struct keyword
1415
1419
policy.SuppressUnwrittenScope = true ; // Don't write the inline or anonymous namespace names.
1416
1420
@@ -4161,6 +4165,8 @@ void ROOT::TMetaUtils::GetNormalizedName(std::string &norm_name, const clang::Qu
4161
4165
4162
4166
clang::ASTContext &ctxt = interpreter.getCI ()->getASTContext ();
4163
4167
clang::PrintingPolicy policy (ctxt.getPrintingPolicy ());
4168
+ // For now we do not want the integral type suffixes in the normalized name.
4169
+ policy.NeverIncludeTypeForTemplateArgument = true ;
4164
4170
policy.SuppressTagKeyword = true ; // Never get the class or struct keyword
4165
4171
policy.SuppressScope = true ; // Force the scope to be coming from a clang::ElaboratedType.
4166
4172
policy.AnonymousTagLocations = false ; // Do not extract file name + line number for anonymous types.
0 commit comments