During typo correction, check for an exact match in an unimported module. If we
authorRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 20 Aug 2013 20:35:18 +0000 (20:35 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 20 Aug 2013 20:35:18 +0000 (20:35 +0000)
commite156254d4c366b2e6d2323e92c8df73cd0dd6c90
treec03619d9de5d77d5f77bd67cb0f01c5ade1cb763
parentd2cd2a4e1e9daf87a7754dc8f50fec48b3370e6f
During typo correction, check for an exact match in an unimported module. If we
find one, then report the error as a missing import instead of as a typo.

llvm-svn: 188821
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/include/clang/Sema/Lookup.h
clang/include/clang/Sema/TypoCorrection.h
clang/lib/Sema/SemaLookup.cpp
clang/test/Modules/auto-module-import.m
clang/test/Modules/decldef.m
clang/test/Modules/decldef.mm
clang/test/Modules/normal-module-map.cpp
clang/test/Modules/subframeworks.m
clang/test/Modules/submodules.cpp