]> granicus.if.org Git - clang/commit
Create two helpers for running the typo-correction tree transform.
authorKaelyn Takata <rikka@google.com>
Tue, 11 Nov 2014 23:26:56 +0000 (23:26 +0000)
committerKaelyn Takata <rikka@google.com>
Tue, 11 Nov 2014 23:26:56 +0000 (23:26 +0000)
commit1fb78b742be35cea97512b7e5e1233e57b8d1434
tree00f745c8945c96ec221e8b981cd510d7f3c07d68
parentb58dc0d6929701b64803054cf7f089f173993f6e
Create two helpers for running the typo-correction tree transform.

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.

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