Try harder about not suggesting methods as corrections when they
authorKaelyn Takata <rikka@google.com>
Fri, 4 Apr 2014 22:16:30 +0000 (22:16 +0000)
committerKaelyn Takata <rikka@google.com>
Fri, 4 Apr 2014 22:16:30 +0000 (22:16 +0000)
commitfb271f0cabbeb2d44772dcd7f07d2df6b9cec772
tree0badcf3c62017d841b22d72c608044f817201017
parent99ed6dfa00fc1182efef430c53d1eadd519ef5c7
Try harder about not suggesting methods as corrections when they
obviously won't work. Specifically, don't suggest methods (static or
not) from unrelated classes when the expression is a method call
through a specific object.

llvm-svn: 205653
clang/include/clang/Sema/TypoCorrection.h
clang/lib/Sema/SemaExpr.cpp
clang/lib/Sema/SemaLookup.cpp
clang/lib/Sema/SemaOverload.cpp
clang/test/SemaCXX/typo-correction-pt2.cpp