[PATCH v3 5/9] Start adding the infrastructure for handling TypoExprs.
Kaelyn Takata
rikka at google.com
Mon Jul 14 16:55:37 PDT 2014
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 | 25 ++++
include/clang/Sema/SemaInternal.h | 15 +-
lib/Sema/SemaExpr.cpp | 7 +
lib/Sema/SemaExprCXX.cpp | 109 ++++++++++++++
lib/Sema/SemaLookup.cpp | 291 ++++++++++++++++++++++++--------------
5 files changed, 340 insertions(+), 107 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: v3-0005-Start-adding-the-infrastructure-for-handling-Typo.patch
Type: text/x-patch
Size: 30161 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140714/38e203c8/attachment.bin>
More information about the cfe-commits
mailing list