@@ -565,7 +565,7 @@ void SemaObjC::ActOnSuperClassOfClassInterface(
565565 ObjCInterfaceValidatorCCC CCC (IDecl);
566566 if (TypoCorrection Corrected = SemaRef.CorrectTypo (
567567 DeclarationNameInfo (SuperName, SuperLoc), Sema::LookupOrdinaryName,
568- SemaRef.TUScope , nullptr , CCC, Sema::CTK_ErrorRecovery )) {
568+ SemaRef.TUScope , nullptr , CCC, CorrectTypoKind::ErrorRecovery )) {
569569 SemaRef.diagnoseTypo (Corrected, PDiag (diag::err_undef_superclass_suggest)
570570 << SuperName << ClassName);
571571 PrevDecl = Corrected.getCorrectionDeclAs <ObjCInterfaceDecl>();
@@ -1320,7 +1320,7 @@ void SemaObjC::FindProtocolDeclaration(bool WarnOnDeclarations,
13201320 TypoCorrection Corrected = SemaRef.CorrectTypo (
13211321 DeclarationNameInfo (Pair.getIdentifierInfo (), Pair.getLoc ()),
13221322 Sema::LookupObjCProtocolName, SemaRef.TUScope , nullptr , CCC,
1323- Sema::CTK_ErrorRecovery );
1323+ CorrectTypoKind::ErrorRecovery );
13241324 if ((PDecl = Corrected.getCorrectionDeclAs <ObjCProtocolDecl>()))
13251325 SemaRef.diagnoseTypo (Corrected,
13261326 PDiag (diag::err_undeclared_protocol_suggest)
@@ -1701,7 +1701,7 @@ void SemaObjC::actOnObjCTypeArgsOrProtocolQualifiers(
17011701 ObjCTypeArgOrProtocolValidatorCCC CCC (Context, lookupKind);
17021702 TypoCorrection corrected = SemaRef.CorrectTypo (
17031703 DeclarationNameInfo (identifiers[i], identifierLocs[i]), lookupKind, S,
1704- nullptr , CCC, Sema::CTK_ErrorRecovery );
1704+ nullptr , CCC, CorrectTypoKind::ErrorRecovery );
17051705 if (corrected) {
17061706 // Did we find a protocol?
17071707 if (auto proto = corrected.getCorrectionDeclAs <ObjCProtocolDecl>()) {
@@ -2005,7 +2005,7 @@ ObjCImplementationDecl *SemaObjC::ActOnStartClassImplementation(
20052005 ObjCInterfaceValidatorCCC CCC{};
20062006 TypoCorrection Corrected = SemaRef.CorrectTypo (
20072007 DeclarationNameInfo (ClassName, ClassLoc), Sema::LookupOrdinaryName,
2008- SemaRef.TUScope , nullptr , CCC, Sema::CTK_NonError );
2008+ SemaRef.TUScope , nullptr , CCC, CorrectTypoKind::NonError );
20092009 if (Corrected.getCorrectionDeclAs <ObjCInterfaceDecl>()) {
20102010 // Suggest the (potentially) correct interface name. Don't provide a
20112011 // code-modification hint or use the typo name for recovery, because
@@ -5439,7 +5439,7 @@ ObjCInterfaceDecl *SemaObjC::getObjCInterfaceDecl(const IdentifierInfo *&Id,
54395439 DeclFilterCCC<ObjCInterfaceDecl> CCC{};
54405440 if (TypoCorrection C = SemaRef.CorrectTypo (
54415441 DeclarationNameInfo (Id, IdLoc), Sema::LookupOrdinaryName,
5442- SemaRef.TUScope , nullptr , CCC, Sema::CTK_ErrorRecovery )) {
5442+ SemaRef.TUScope , nullptr , CCC, CorrectTypoKind::ErrorRecovery )) {
54435443 SemaRef.diagnoseTypo (C, PDiag (diag::err_undef_interface_suggest) << Id);
54445444 IDecl = C.getCorrectionDeclAs <ObjCInterfaceDecl>();
54455445 Id = IDecl->getIdentifier ();
0 commit comments