[PATCH] D80733: [AST][RecoveryExpr] Build RecoveryExpr for "undef_var" cases.
Sam McCall via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu May 28 09:50:29 PDT 2020
sammccall accepted this revision.
sammccall added a comment.
This revision is now accepted and ready to land.
Nice!
================
Comment at: clang/lib/Sema/SemaExprCXX.cpp:8310
+ // to RecoveryExpr.
+ // FIXME: we lose source locations for RecoveryExpr, as TypoExpr doesn't
+ // track source locations.
----------------
This seems reasonably straightforward to fix - there shouldn't be a lot of TypoExprs so we can just add a member. Worth doing I think.
================
Comment at: clang/lib/Sema/SemaExprCXX.cpp:8314
+ using Base = TreeTransform<TyposReplace>;
+ TyposReplace(Sema &SemaRef) : Base(SemaRef) {}
+ ExprResult TransformTypoExpr(TypoExpr *E) {
----------------
Can't you just write this as `: TreeTransform(SemaRef) {}`, and drop the using?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D80733/new/
https://reviews.llvm.org/D80733
More information about the cfe-commits
mailing list