]> granicus.if.org Git - clang/commit
Do not use typo correction that is unaccessible.
authorSerge Pavlov <sepavloff@gmail.com>
Mon, 14 Oct 2013 14:05:48 +0000 (14:05 +0000)
committerSerge Pavlov <sepavloff@gmail.com>
Mon, 14 Oct 2013 14:05:48 +0000 (14:05 +0000)
commit81e34b1c137ffaa9b9c7d488744bdaa0cee8e845
tree93a7c5946856f7b99f81e15580829e34a78d2dfc
parent74ecbd5babae58907e6338a5f79ec4eb4401c0dc
Do not use typo correction that is unaccessible.
This patch fixes PR17019. When doing typo correction, Sema::CorrectTypo uses
correction already seen for the same typo. This causes problems if that
correction is from another scope and cannot be accessed in the current.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192594 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaLookup.cpp
test/SemaCXX/typo-correction-pt2.cpp
test/SemaObjC/bad-property-synthesis-crash.m
test/SemaObjC/error-outof-scope-property-use.m