]> granicus.if.org Git - clang/commit
Add initial callback object support to Sema::CorrectTypo.
authorKaelyn Uhrain <rikka@google.com>
Wed, 11 Jan 2012 19:37:46 +0000 (19:37 +0000)
committerKaelyn Uhrain <rikka@google.com>
Wed, 11 Jan 2012 19:37:46 +0000 (19:37 +0000)
commit7d5e6948e6a4e04ee67b607f931d90d3063579f2
tree2077c5a6bf530e42d29f39b133b29f5ae05d5236
parent015f608042a1d247899866849e69a4e9a1aff6a8
Add initial callback object support to Sema::CorrectTypo.

Also includes two examples of the callback: a wrapper/replacement for
the CorrectTypoContext enum, and a conversion of the two calls to
CorrectTypo in SemaDeclCXX.cpp (one of which provides verifiable
improvement to the typo correction, as demonstrated in the added test).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147962 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Sema/Sema.h
include/clang/Sema/TypoCorrection.h
lib/Sema/SemaDeclCXX.cpp
lib/Sema/SemaLookup.cpp
test/SemaCXX/typo-correction.cpp