[PATCH v4 4/8] Have TypoCorrectionConsumer remember the TypoCorrections it returned.

Kaelyn Takata rikka at google.com
Thu Jul 31 13:20:28 PDT 2014


Two additional methods are provided: one to return the current
correction (the last correction returned by getNextCorrection), and one
to "reset" the state so that getNextCorrection will return the previous
corrections before returning any new corrections.

Also ensure that all TypoCorrections have valid source ranges.
---
 include/clang/Sema/SemaInternal.h   | 31 ++++++++++++++++++++++++++-----
 include/clang/Sema/TypoCorrection.h |  2 +-
 lib/Sema/SemaLookup.cpp             | 16 ++++++++++++----
 3 files changed, 39 insertions(+), 10 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: v4-0004-Have-TypoCorrectionConsumer-remember-the-TypoCorr.patch
Type: text/x-patch
Size: 4966 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140731/455331d6/attachment.bin>


More information about the cfe-commits mailing list