]> granicus.if.org Git - clang/commit
Have TypoCorrectionConsumer remember the TypoCorrections it returned.
authorKaelyn Takata <rikka@google.com>
Mon, 27 Oct 2014 18:07:34 +0000 (18:07 +0000)
committerKaelyn Takata <rikka@google.com>
Mon, 27 Oct 2014 18:07:34 +0000 (18:07 +0000)
commitcd318ced609f3e2e2aab80a1904d59df32a97271
tree8f66603a1309b170721428dfac48a87dfefaca60
parent07ccb0381ae81807ab0900d090dc7179b7440589
Have TypoCorrectionConsumer remember the TypoCorrections it returned.

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.

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