Commit b365387f authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh
Browse files

C++: Add some debug output for specialization choosing



Change-Id: I13082288a56f6f7fe58c69f01824c56294ca258d
Reviewed-by: default avatarPrzemyslaw Gorszkowski <pgorszkowski@gmail.com>
parent e00aa54f
......@@ -1324,10 +1324,14 @@ LookupScopePrivate *LookupScopePrivate::nestedType(const Name *name, LookupScope
// we found full specialization
reference = cit->second;
} else {
LookupScopePrivate *specializationWithPointer
= findSpecialization(templId, specializations, origin);
if (specializationWithPointer)
reference = specializationWithPointer;
if (LookupScopePrivate *specialization =
findSpecialization(templId, specializations, origin)) {
reference = specialization;
if (Q_UNLIKELY(debug)) {
Overview oo;
qDebug() << "picked specialization" << oo(specialization->_name);
}
}
}
// let's instantiation be instantiation
nonConstTemplId->setIsSpecialization(false);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment