[PATCH v2 8/9] Add a callback for recovering using a typo correction.

Kaelyn Takata rikka at google.com
Tue Jun 17 17:25:28 PDT 2014


Also make the typo correction returned by
TypoCorrectionConsumer::getNextCorrection a reference so that the
recovery callback can modify the TypoCorrection (e.g. changing the
set of decls associated with the correction).
---
 include/clang/AST/Expr.h            |  5 ++++-
 include/clang/Sema/Sema.h           |  3 ++-
 include/clang/Sema/SemaInternal.h   |  4 ++--
 include/clang/Sema/TypoCorrection.h | 12 ++++++++++--
 lib/Sema/SemaExprCXX.cpp            | 21 ++++++++++++++-------
 lib/Sema/SemaLookup.cpp             | 14 +++++++++-----
 6 files changed, 41 insertions(+), 18 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: v2-0008-Add-a-callback-for-recovering-using-a-typo-correc.patch
Type: text/x-patch
Size: 7055 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140617/f1cad21d/attachment.bin>


More information about the cfe-commits mailing list