Sema: correct typo correction for ivars in @implementation
authorSaleem Abdulrasool <compnerd@compnerd.org>
Thu, 17 Nov 2016 17:10:54 +0000 (17:10 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Thu, 17 Nov 2016 17:10:54 +0000 (17:10 +0000)
commit765a2194314279fb4941a46c893c162033b0932d
tree54dd5b0a23fc8eb457bfbd77cf44ee677d20e4cd
parent7ee38e00a56d9cb8320353a259bb5d66b8107ca8
Sema: correct typo correction for ivars in @implementation

The previous typo correction handling assumed that ivars are only declared in
the interface declaration rather than as a private ivar in the implementation.
Adjust the handling to permit both interfaces.  Assert earlier that the
interface has been acquired to ensure that we can identify when both possible
casts have failed.

Addresses PR31040!

llvm-svn: 287238
clang/lib/Sema/SemaExprMember.cpp
clang/test/SemaObjC/typo-correction.m