Factor out the default recovery handling.
authorKaelyn Takata <rikka@google.com>
Thu, 20 Nov 2014 22:06:30 +0000 (22:06 +0000)
committerKaelyn Takata <rikka@google.com>
Thu, 20 Nov 2014 22:06:30 +0000 (22:06 +0000)
commit3f9794f288d89d33fe42e89cdf57371784bf0258
treef813c8dfbd6d2cd9d0874f123f7fb7f66007b3b1
parent6fc91a9d5e7d151890c7fc344e1999b8b11f34c2
Factor out the default recovery handling.

The default handling is extended to properly create member expressions
and Objective-C ivar references.

Also detect and reject cases where multiple corrections have identical
correction distances and are valid, instead of suggesting the first one
that is found.

llvm-svn: 222462
clang/lib/Sema/SemaExprCXX.cpp