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 ...@@ -1324,10 +1324,14 @@ LookupScopePrivate *LookupScopePrivate::nestedType(const Name *name, LookupScope
// we found full specialization // we found full specialization
reference = cit->second; reference = cit->second;
} else { } else {
LookupScopePrivate *specializationWithPointer if (LookupScopePrivate *specialization =
= findSpecialization(templId, specializations, origin); findSpecialization(templId, specializations, origin)) {
if (specializationWithPointer) reference = specialization;
reference = specializationWithPointer; if (Q_UNLIKELY(debug)) {
Overview oo;
qDebug() << "picked specialization" << oo(specialization->_name);
}
}
} }
// let's instantiation be instantiation // let's instantiation be instantiation
nonConstTemplId->setIsSpecialization(false); 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