forked from qt-creator/qt-creator
C++: Add some debug output for specialization choosing
Change-Id: I13082288a56f6f7fe58c69f01824c56294ca258d Reviewed-by: Przemyslaw Gorszkowski <pgorszkowski@gmail.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
e00aa54f4e
commit
b365387f0d
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user