Skip to content
Snippets Groups Projects
Commit 86ee58d9 authored by Philippe Canal's avatar Philippe Canal
Browse files

White space

parent 23f1a45a
No related branches found
No related tags found
No related merge requests found
...@@ -2612,23 +2612,23 @@ clang::QualType ROOT::TMetaUtils::AddDefaultParameters(clang::QualType instanceT ...@@ -2612,23 +2612,23 @@ clang::QualType ROOT::TMetaUtils::AddDefaultParameters(clang::QualType instanceT
clang::sema::HackForDefaultTemplateArg raii; clang::sema::HackForDefaultTemplateArg raii;
bool HasDefaultArgs; bool HasDefaultArgs;
clang::TemplateArgumentLoc ArgType = S.SubstDefaultTemplateArgumentIfAvailable( clang::TemplateArgumentLoc ArgType = S.SubstDefaultTemplateArgumentIfAvailable(
Template, Template,
TemplateLoc, TemplateLoc,
RAngleLoc, RAngleLoc,
TTP, TTP,
desArgs, desArgs,
HasDefaultArgs); HasDefaultArgs);
// The substition can fail, in which case there would have been compilation // The substition can fail, in which case there would have been compilation
// error printed on the screen. // error printed on the screen.
if (ArgType.getArgument().isNull() if (ArgType.getArgument().isNull()
|| ArgType.getArgument().getKind() != clang::TemplateArgument::Type) { || ArgType.getArgument().getKind() != clang::TemplateArgument::Type) {
ROOT::TMetaUtils::Error("ROOT::TMetaUtils::AddDefaultParameters", ROOT::TMetaUtils::Error("ROOT::TMetaUtils::AddDefaultParameters",
"Template parameter substitution failed for %s around %s", "Template parameter substitution failed for %s around %s",
instanceType.getAsString().c_str(), instanceType.getAsString().c_str(),
SubTy.getAsString().c_str() SubTy.getAsString().c_str()
); );
break; break;
} }
clang::QualType BetterSubTy = ArgType.getArgument().getAsType(); clang::QualType BetterSubTy = ArgType.getArgument().getAsType();
SubTy = cling::utils::Transform::GetPartiallyDesugaredType(Ctx,BetterSubTy,normCtxt.GetConfig(),/*fullyQualified=*/ true); SubTy = cling::utils::Transform::GetPartiallyDesugaredType(Ctx,BetterSubTy,normCtxt.GetConfig(),/*fullyQualified=*/ true);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment