diff options
author | John Thompson <John.Thompson.JTSoftware@gmail.com> | 2014-04-23 12:57:01 +0000 |
---|---|---|
committer | John Thompson <John.Thompson.JTSoftware@gmail.com> | 2014-04-23 12:57:01 +0000 |
commit | 2255f2ce90777f5a614e98840e57250816743b15 (patch) | |
tree | f9f16f7e2370ff6ee3e9633d654e19cdf2ebe80b /clang/lib/Sema/SemaDeclObjC.cpp | |
parent | 433790a69c8d038ebd22dab9cd2fedc6473ea5f7 (diff) | |
download | bcm5719-llvm-2255f2ce90777f5a614e98840e57250816743b15.tar.gz bcm5719-llvm-2255f2ce90777f5a614e98840e57250816743b15.zip |
Initial implementation of -modules-earch-all option, for searching for symbols in non-imported modules.
llvm-svn: 206977
Diffstat (limited to 'clang/lib/Sema/SemaDeclObjC.cpp')
-rw-r--r-- | clang/lib/Sema/SemaDeclObjC.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/clang/lib/Sema/SemaDeclObjC.cpp b/clang/lib/Sema/SemaDeclObjC.cpp index d59dd8b9950..7fbca6aadb3 100644 --- a/clang/lib/Sema/SemaDeclObjC.cpp +++ b/clang/lib/Sema/SemaDeclObjC.cpp @@ -524,7 +524,7 @@ ActOnStartClassInterface(SourceLocation AtInterfaceLoc, ObjCInterfaceValidatorCCC Validator(IDecl); if (TypoCorrection Corrected = CorrectTypo( DeclarationNameInfo(SuperName, SuperLoc), LookupOrdinaryName, TUScope, - NULL, Validator)) { + NULL, Validator, CTK_ErrorRecovery)) { diagnoseTypo(Corrected, PDiag(diag::err_undef_superclass_suggest) << SuperName << ClassName); PrevDecl = Corrected.getCorrectionDeclAs<ObjCInterfaceDecl>(); @@ -794,7 +794,7 @@ Sema::FindProtocolDeclaration(bool WarnOnDeclarations, DeclFilterCCC<ObjCProtocolDecl> Validator; TypoCorrection Corrected = CorrectTypo( DeclarationNameInfo(ProtocolId[i].first, ProtocolId[i].second), - LookupObjCProtocolName, TUScope, NULL, Validator); + LookupObjCProtocolName, TUScope, NULL, Validator, CTK_ErrorRecovery); if ((PDecl = Corrected.getCorrectionDeclAs<ObjCProtocolDecl>())) diagnoseTypo(Corrected, PDiag(diag::err_undeclared_protocol_suggest) << ProtocolId[i].first); @@ -1034,7 +1034,8 @@ Decl *Sema::ActOnStartClassImplementation( ObjCInterfaceValidatorCCC Validator; TypoCorrection Corrected = CorrectTypo(DeclarationNameInfo(ClassName, ClassLoc), - LookupOrdinaryName, TUScope, NULL, Validator); + LookupOrdinaryName, TUScope, NULL, Validator, + CTK_NonError); if (Corrected.getCorrectionDeclAs<ObjCInterfaceDecl>()) { // Suggest the (potentially) correct interface name. Don't provide a // code-modification hint or use the typo name for recovery, because |