[PATCH v4 5/8] Start adding the infrastructure for handling TypoExprs.
Kaelyn Takata
rikka at google.com
Thu Sep 25 14:00:34 PDT 2014
ping
On Tue, Aug 26, 2014 at 11:05 AM, Kaelyn Takata <rikka at google.com> wrote:
>
> +dblaikie
>
>
> On Thu, Jul 31, 2014 at 1:20 PM, Kaelyn Takata <rikka at google.com> 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(-)
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140925/02b2e288/attachment.html>
More information about the cfe-commits
mailing list