[PATCH v2 2/6] Create two helpers for running the typo-correction tree transform.

Kaelyn Takata rikka at google.com
Wed Oct 29 12:49:29 PDT 2014


One takes an Expr* and the other is a simple wrapper that takes an
ExprResult instead, and handles checking whether the ExprResult is
invalid.

Additionally, allow an optional callback that is run on the full result
of the tree transform, for filtering potential corrections based on the
characteristics of the resulting expression once all of the typos have
been replaced.
---
 include/clang/Sema/Sema.h | 13 +++++++++++++
 lib/Sema/SemaExprCXX.cpp  | 44 ++++++++++++++++++++++++++++----------------
 2 files changed, 41 insertions(+), 16 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: v2-0002-Create-two-helpers-for-running-the-typo-correctio.patch
Type: text/x-patch
Size: 4465 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20141029/6cda1deb/attachment.bin>


More information about the cfe-commits mailing list