return false;
}
D = ED->getDefinition();
- } else if (auto *FD = dyn_cast<FunctionDecl>(D)) {
- if (auto *Pattern = FD->getTemplateInstantiationPattern())
- FD = Pattern;
- D = FD->getDefinition();
}
assert(D && "missing definition for pattern of instantiated definition");
if (isVisible(D))
return true;
- // The external source may have additional definitions of this entity that are
+ // The external source may have additional definitions of this type that are
// visible, so complete the redeclaration chain now and ask again.
if (auto *Source = Context.getExternalSource()) {
Source->CompleteRedeclChain(D);