]> granicus.if.org Git - clang/commit
When typo correction produces an overloaded result when looking up a member,
authorNick Lewycky <nicholas@mxc.ca>
Tue, 7 May 2013 22:14:37 +0000 (22:14 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Tue, 7 May 2013 22:14:37 +0000 (22:14 +0000)
commitd9de51f83d606ceab521e2cc17afc62e011c7cd8
tree862ea9e2bb2b0ffb3e2eec20aa6ca16666e37428
parent4c71b8cded575b0cfc133c5da4502ca613982094
When typo correction produces an overloaded result when looking up a member,
return all the overloads instead of just picking the first possible declaration.
This removes an invalid note (and on occasion other invalid diagnostics) and
also makes clang's parsing recovery behave as if the text from its fixit were
applied.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181370 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Sema/TypoCorrection.h
lib/Sema/SemaExprMember.cpp
test/SemaCXX/typo-correction.cpp