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 | 9be87f878588e7ed414dbfa29805883cc9cbb885 (patch) | |
tree | 1ce960127f08105e2ab290221b1106441d34d757 /lib/Sema/SemaExprObjC.cpp | |
parent | 0f0e18f77f5ceaee634653c3a80f79298d7b7407 (diff) | |
download | clang-9be87f878588e7ed414dbfa29805883cc9cbb885.tar.gz clang-9be87f878588e7ed414dbfa29805883cc9cbb885.tar.bz2 clang-9be87f878588e7ed414dbfa29805883cc9cbb885.tar.xz |
Initial implementation of -modules-earch-all option, for searching for symbols in non-imported modules.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@206977 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaExprObjC.cpp')
-rw-r--r-- | lib/Sema/SemaExprObjC.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Sema/SemaExprObjC.cpp b/lib/Sema/SemaExprObjC.cpp index d316c13f94..7b0db1cfc1 100644 --- a/lib/Sema/SemaExprObjC.cpp +++ b/lib/Sema/SemaExprObjC.cpp @@ -1669,7 +1669,7 @@ HandleExprPropertyRefExpr(const ObjCObjectPointerType *OPT, DeclFilterCCC<ObjCPropertyDecl> Validator; if (TypoCorrection Corrected = CorrectTypo( DeclarationNameInfo(MemberName, MemberLoc), LookupOrdinaryName, NULL, - NULL, Validator, IFace, false, OPT)) { + NULL, Validator, CTK_ErrorRecovery, IFace, false, OPT)) { diagnoseTypo(Corrected, PDiag(diag::err_property_not_found_suggest) << MemberName << QualType(OPT, 0)); DeclarationName TypoResult = Corrected.getCorrection(); @@ -1901,7 +1901,8 @@ Sema::ObjCMessageKind Sema::getObjCMessageKind(Scope *S, ObjCInterfaceOrSuperCCC Validator(getCurMethodDecl()); if (TypoCorrection Corrected = CorrectTypo(Result.getLookupNameInfo(), Result.getLookupKind(), S, - NULL, Validator, NULL, false, NULL, false)) { + NULL, Validator, CTK_ErrorRecovery, NULL, false, NULL, + false)) { if (Corrected.isKeyword()) { // If we've found the keyword "super" (the only keyword that would be // returned by CorrectTypo), this is a send to super. |