Ensure that, in type(), if type.constructor is set to true, then the cppName is the cppName of the class, whatever is in the infoMap.
This prevents, for instance, if we have class C, and an info about the constructorC::C in the info map, that the constructor
cppName is set to C::C after a call to context.qualify.
Similarly, in function(), only call context.qualify for normal functions, not constructors. The qualification work has
already been performed in type() and the constructor cppName should remain the type cppName.
Ensure that, in
type()
, iftype.constructor
is set to true, then thecppName
is thecppName
of the class, whatever is in the infoMap. This prevents, for instance, if we have classC
, and an info about the constructorC::C
in the info map, that the constructor cppName is set toC::C
after a call tocontext.qualify
.Similarly, in
function()
, only callcontext.qualify
for normal functions, not constructors. The qualification work has already been performed intype()
and the constructor cppName should remain the type cppName.Fixes part of #735.
Regression tests: no changes in existing presets.