[PATCH 5/8] Add simple way for a CorrectionCandidateCallback to reject exact matches of the typo.

Kaelyn Takata rikka at google.com
Tue Jun 17 14:14:36 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 the only change to checkCorrectionVisibility other than moving
where it is at in SemaLookup.cpp is to remove a parameter that was never
used within the function.
---
 include/clang/Sema/TypoCorrection.h |  26 +++++++--
 lib/Sema/SemaLookup.cpp             | 103 +++++++++++++++++++-----------------
 2 files changed, 76 insertions(+), 53 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-Add-simple-way-for-a-CorrectionCandidateCallback-to-.patch
Type: text/x-patch
Size: 7855 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140617/b84e9b07/attachment.bin>


More information about the cfe-commits mailing list