[PATCH v2 5/9] Start adding the infrastructure for handling TypoExprs.

Kaelyn Takata rikka at google.com
Tue Jun 17 17:29:25 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 |   5 +-
 lib/Sema/SemaExpr.cpp             |   7 +
 lib/Sema/SemaExprCXX.cpp          |  77 ++++++++++
 lib/Sema/SemaLookup.cpp           | 291 ++++++++++++++++++++++++--------------
 5 files changed, 299 insertions(+), 106 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: v2-0005-Start-adding-the-infrastructure-for-handling-Typo.patch
Type: text/x-patch
Size: 28338 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140617/816be3c2/attachment.bin>


More information about the cfe-commits mailing list