]> granicus.if.org Git - clang/commit
Convert SemaDecl.cpp to pass callback objects to CorrectTypo.
authorKaelyn Uhrain <rikka@google.com>
Wed, 18 Jan 2012 21:41:41 +0000 (21:41 +0000)
committerKaelyn Uhrain <rikka@google.com>
Wed, 18 Jan 2012 21:41:41 +0000 (21:41 +0000)
commit43e875d2610afcf9e7017b71f46116dc86624fd9
tree320ac8512e2ddf96882495066d85e0a1a7af19a8
parent057df20b3107cef764052d271c89b8591b98b3ce
Convert SemaDecl.cpp to pass callback objects to CorrectTypo.

Includes tests highlighting the cases where accuracy has improved
(there is one call that does no filtering beyond selecting the set
of allowed keywords, and one call that only triggers for ObjC code
for which a test by someone who knows ObjC would be welcome). Also
fixes a small typo in one of the suggestion messages, and drops a
malformed "expected-note" for a suggestion that did not occur even
when the malformed note was committed as r145930.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148420 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaDecl.cpp
test/Sema/implicit-decl.c
test/SemaCXX/typo-correction.cpp