C++: Add some debug output for specialization choosing

Change-Id: I13082288a56f6f7fe58c69f01824c56294ca258d
Reviewed-by: Przemyslaw Gorszkowski <pgorszkowski@gmail.com>
This commit is contained in:
Orgad Shaneh
2015-06-05 17:07:37 +03:00
committed by Orgad Shaneh
parent e00aa54f4e
commit b365387f0d

View File

@@ -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);