[PATCH v3 6/9] Add simple way for a CorrectionCandidateCallback to reject exact matches of the typo.
Kaelyn Takata
rikka at google.com
Mon Jul 14 16:55:38 PDT 2014
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.
---
include/clang/Sema/TypoCorrection.h | 24 +++++++--
lib/Sema/SemaLookup.cpp | 100 +++++++++++++++++++-----------------
2 files changed, 74 insertions(+), 50 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: v3-0006-Add-simple-way-for-a-CorrectionCandidateCallback-.patch
Type: text/x-patch
Size: 7359 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140714/f1d2ed2b/attachment.bin>
More information about the cfe-commits
mailing list