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)
commit49d84328d998ea17ba7563fa77db25cfd58f4d43
treefcc9b3660720a15e4b282d3e9dd730b1a0342c15
parent5c3dc4be0855edddd781d24948c5f06d1851bb5c
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.

llvm-svn: 221735
clang/include/clang/Sema/Sema.h
clang/lib/Sema/SemaExprCXX.cpp