Lines Matching defs:Found
477 bool hasSameVisibilityContext(T *Found, T *From);
987 bool ASTNodeImporter::hasSameVisibilityContext(T *Found, T *From) {
989 return Found->hasExternalFormalLinkage();
990 if (Importer.GetFromTU(Found) != From->getTranslationUnitDecl())
993 return Found->isInAnonymousNamespace();
995 return !Found->isInAnonymousNamespace() &&
996 !Found->hasExternalFormalLinkage();
1000 bool ASTNodeImporter::hasSameVisibilityContext(TypedefNameDecl *Found,
1002 if (From->isInAnonymousNamespace() && Found->isInAnonymousNamespace())
1003 return Importer.GetFromTU(Found) == From->getTranslationUnitDecl();
1004 return From->isInAnonymousNamespace() == Found->isInAnonymousNamespace();
2719 Decl *Found = FoundDecl;
2720 if (auto *Typedef = dyn_cast<TypedefNameDecl>(Found)) {
2722 Found = Tag->getDecl();
2725 if (auto *FoundRecord = dyn_cast<RecordDecl>(Found)) {
2837 for (NamedDecl *Found : D2CXX->noload_lookup(Name)) {
2838 auto *Record = dyn_cast<CXXRecordDecl>(Found);
5257 Decl *Found = FoundDecl;
5258 auto *FoundTemplate = dyn_cast<ClassTemplateDecl>(Found);
5327 "Found decl must have its templated decl set");
5556 Decl *Found = FoundDecl;
5557 if (VarTemplateDecl *FoundTemplate = dyn_cast<VarTemplateDecl>(Found)) {
5828 "Found decl must have its templated decl set");