+dblaikie

On Thu, Jul 31, 2014 at 1:20 PM, Kaelyn Takata <[email protected]> wrote:

>
> Part of the infrastructure is a map from a TypoExpr to the Sema-specific
> state needed to correct it, along with helpers to ease dealing with the
> state.
>
> The the typo count is propagated up the stack of
> ExpressionEvaluationContextRecords when one is popped off of to
> avoid accidentally dropping TypoExprs on the floor. For example,
> the attempted correction of g() in test/CXX/class/class.mem/p5-0x.cpp
> happens with an ExpressionEvaluationContextRecord that is popped off
> the stack prior to ActOnFinishFullExpr being called and the tree
> transform for TypoExprs being run.
> ---
>  include/clang/Sema/Sema.h           |  44 +++++
>  include/clang/Sema/SemaInternal.h   |  15 +-
>  include/clang/Sema/TypoCorrection.h |   2 +-
>  lib/Sema/SemaExpr.cpp               |   7 +
>  lib/Sema/SemaExprCXX.cpp            | 108 ++++++++++++
>  lib/Sema/SemaLookup.cpp             | 316
> ++++++++++++++++++++++++------------
>  6 files changed, 384 insertions(+), 108 deletions(-)
>
>
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to