Skip to content
Merged
Prev Previous commit
Next Next commit
Move declaration next to use
  • Loading branch information
pcanal committed Sep 6, 2019
commit 1d98c55cd6a3e34c37a3b1a4563bf8effd09c08e
2 changes: 1 addition & 1 deletion core/metacling/src/TCling.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -6485,14 +6485,14 @@ void TCling::UpdateClassInfoWithDecl(const void* vTD)
// Ignore declaration within a function.
return;
}
clang::QualType type( td->getTypeForDecl(), 0 );

auto declName=ND->getNameAsString();
if (!TClass::HasNoInfoOrEmuOrFwdDeclaredDecl(declName.c_str())){
// printf ("Impossible to find a TClassEntry in kNoInfo or kEmulated the decl of which would be called %s. Skip w/o building the normalized name.\n",declName );
return;
}

clang::QualType type( td->getTypeForDecl(), 0 );
ROOT::TMetaUtils::GetNormalizedName(name, type, *fInterpreter, *fNormalizedCtxt);
} else {
name = ND->getNameAsString();
Expand Down