+  TypoCorrection &getNextCorrection();
+
+  /// \brief Get the last correction returned by getNextCorrection().
+  TypoCorrection &getCurrentCorrection() {

Since the TypoCorrections are now intended to be reused, it would seem wise
to return them either by value or by const reference.

On Mon, Jul 14, 2014 at 4:55 PM, Kaelyn Takata <[email protected]> wrote:

>
> 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(-)
>
>
> _______________________________________________
> cfe-commits mailing list
> [email protected]
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
>
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to