]> granicus.if.org Git - clang/commit
Add simple way for a CorrectionCandidateCallback to reject exact
authorKaelyn Takata <rikka@google.com>
Mon, 27 Oct 2014 18:07:40 +0000 (18:07 +0000)
committerKaelyn Takata <rikka@google.com>
Mon, 27 Oct 2014 18:07:40 +0000 (18:07 +0000)
commit1fc4384db372355024f4864f9da3058bd23d0712
treee83380d6f36e51a274caeac239eda055f7d1c95a
parent4a3c68bb85aa70525f30ad2970272b908bf8359d
Add simple way for a CorrectionCandidateCallback to reject exact
matches of the typo.

Also be more proactive about checking a correction's visibility so that
a correction requiring a module import can be distinguished from the
original typo even if it looks identical. Otherwise the correction will
be excluded and the diagnostic about needing the module import won't be
emitted.

Note that no change was made to checkCorrectionVisibility other than
moving where it is at in SemaLookup.cpp.

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