Lines Matching refs:ToDeclOrErr
1362 Expected<TypedefNameDecl *> ToDeclOrErr = import(T->getDecl()); in VisitTypedefType() local
1363 if (!ToDeclOrErr) in VisitTypedefType()
1364 return ToDeclOrErr.takeError(); in VisitTypedefType()
1366 return Importer.getToContext().getTypeDeclType(*ToDeclOrErr); in VisitTypedefType()
1463 Expected<CXXRecordDecl *> ToDeclOrErr = import(T->getDecl()); in VisitInjectedClassNameType() local
1464 if (!ToDeclOrErr) in VisitInjectedClassNameType()
1465 return ToDeclOrErr.takeError(); in VisitInjectedClassNameType()
1480 InjectedClassNameType(*ToDeclOrErr, *ToInjTypeOrErr), 0); in VisitInjectedClassNameType()
1484 Expected<RecordDecl *> ToDeclOrErr = import(T->getDecl()); in VisitRecordType() local
1485 if (!ToDeclOrErr) in VisitRecordType()
1486 return ToDeclOrErr.takeError(); in VisitRecordType()
1488 return Importer.getToContext().getTagDeclType(*ToDeclOrErr); in VisitRecordType()
1492 Expected<EnumDecl *> ToDeclOrErr = import(T->getDecl()); in VisitEnumType() local
1493 if (!ToDeclOrErr) in VisitEnumType()
1494 return ToDeclOrErr.takeError(); in VisitEnumType()
1496 return Importer.getToContext().getTagDeclType(*ToDeclOrErr); in VisitEnumType()
1513 Expected<TemplateTypeParmDecl *> ToDeclOrErr = import(T->getDecl()); in VisitTemplateTypeParmType() local
1514 if (!ToDeclOrErr) in VisitTemplateTypeParmType()
1515 return ToDeclOrErr.takeError(); in VisitTemplateTypeParmType()
1518 T->getDepth(), T->getIndex(), T->isParameterPack(), *ToDeclOrErr); in VisitTemplateTypeParmType()
1648 Expected<ObjCInterfaceDecl *> ToDeclOrErr = import(T->getDecl()); in VisitObjCInterfaceType() local
1649 if (!ToDeclOrErr) in VisitObjCInterfaceType()
1650 return ToDeclOrErr.takeError(); in VisitObjCInterfaceType()
1652 return Importer.getToContext().getObjCInterfaceType(*ToDeclOrErr); in VisitObjCInterfaceType()