]> granicus.if.org Git - clang/commit
Teach typo correction not to return the same keyword that matches a
authorDouglas Gregor <dgregor@apple.com>
Tue, 26 Oct 2010 17:18:00 +0000 (17:18 +0000)
committerDouglas Gregor <dgregor@apple.com>
Tue, 26 Oct 2010 17:18:00 +0000 (17:18 +0000)
commit53e4b55d2c534cfd59021ff18349ac58979ce43f
tree07535f12c88eee35b89dd74e81e392c72b618b04
parent8e6285af719adc6f86d6faa235d22a08eb68ee3a
Teach typo correction not to return the same keyword that matches a
typo. This can happen with context-sensitive keywords like "super",
when typo correction didn't know that "super" wasn't permitted in this
context.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@117372 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaLookup.cpp
test/FixIt/typo.m