Propagate isAddressOfMember into typo correction so that we don't correct &qualified...
authorNick Lewycky <nicholas@mxc.ca>
Mon, 23 Jun 2014 22:57:51 +0000 (22:57 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Mon, 23 Jun 2014 22:57:51 +0000 (22:57 +0000)
commit9ea8efaf92570d708494ea352d3e5c21f0fe0ea7
treee1d57e75b20e5c93edefef1f32adce3d9ccf1812
parent4377656e1236c0f29a453c3bbeb6abed51eb0d52
Propagate isAddressOfMember into typo correction so that we don't correct &qualified-id into &unqualified-id. Also make sure to set the naming class when we find the qualified-id in a different class than the nested name specifier specified so far. Fixes PR19681!

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